Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /etc/network/interfaces file-ban:
- auto enp0s3
- iface enp0s3 inet dhcp
- dns-nameservers 8.8.8.8
- auto enp0s8
- iface enp0s8 inet static
- address 192.168.1.254
- netmask 255.255.255.0
- dns-search peldasuli.local
- a tűzfalbeállításnál 53 UDP port engedélyezése
- $IPTABLES -A INPUT -p udp -m multiport --ports 53 -j ACCEPT
- Itt a többit nem másoltam bele mert ez valószínűleg jó mert a sima névfeloldás megy.
- /etc/bind/named.conf.options
- options {
- directory "/var/cache/bind";
- // If there is a firewall between you and nameservers you want
- forwarders {
- 8.8.8.8;
- };
- //=====================================================================$
- // If BIND logs error messages about the root key being expired,
- // you will need to update your keys. See https://www.isc.org/bind-keys
- //=====================================================================$
- dnssec-validation auto;
- auth-nxdomain no; # conform to RFC1035
- listen-on-v6 { any; };
- };
- /etc/bind/named.conf.local:
- //
- // Do any local configuration here
- //
- // Consider adding the 1918 zones here, if they are not used in your
- // organization
- //include "/etc/bind/zones.rfc1918";
- zone "peldasuli.local" {
- type master ;
- file "/var/lib/bind/peldasuli.local";
- };
- zone "168.192.in-addr.arpa" {
- type master ;
- file "var/lib/bind/168.192";
- };
- /var/lib/bind/peldasuli.local
- $TTL 600
- peldasuli.local. IN SOA gw.peldasuli.local. root.gw.peldasuli.loc$
- 2 ; Serial
- 604800 ; Refresh
- 86400 ; Retry
- 2419200 ; Expire
- 604800 ) ; Negative Cache TTL
- ;
- @ IN NS gw.peldasuli.local.
- gw.peldasuli.local. IN A 192.168.1.254
- /var/lib/bind/168.192 fájl-ban :
- $TTL 600
- 168.192.in-addr.arpa. IN SOA gw.peldasuli.local. root.gw.peldasuli.loca$
- 2 ; Serial
- 604800 ; Refresh
- 86400 ; Retry
- 2419200 ; Expire
- 604800 ) ; Negative Cache TTL
- ;
- @ IN NS gw.peldasuli.local.
- 254.1 IN PTR gw.peldasuli.local.
Advertisement
Add Comment
Please, Sign In to add comment