Raspberrypi.dns: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→Rechte) |
|||
Zeile 53: | Zeile 53: | ||
listen-on-v6 { any; }; | listen-on-v6 { any; }; | ||
}; | }; | ||
== /etc/bind/named.conf.local == | |||
// | |||
// Do any local configuration here | |||
// | |||
zone "lummerland" in { | |||
type master; | |||
file "/etc/bind/db.lummerland"; | |||
}; | |||
zone "115.168.192.in-addr.arpa" in { | |||
type master; | |||
file "/etc/bind/db.115.168.192"; | |||
}; | |||
zone "orgamon.org." { | |||
type master; | |||
file "/etc/bind/db.orgamon.org"; | |||
}; | |||
zone "orgamon.de." { | |||
type master; | |||
file "/etc/bind/db.orgamon.de"; | |||
}; | |||
zone "orgamon.net." { | |||
type master; | |||
file "/etc/bind/db.orgamon.net"; | |||
}; | |||
zone "orgamon.eu." { | |||
type master; | |||
file "/etc/bind/db.orgamon.eu"; | |||
}; | |||
// Consider adding the 1918 zones here, if they are not used in your | |||
// organization | |||
//include "/etc/bind/zones.rfc1918"; | |||
== Rechte == | == Rechte == | ||
Zeile 58: | Zeile 102: | ||
chmod 644 db.* | chmod 644 db.* | ||
systemctl start bind9 | systemctl start bind9 | ||
== Test == | == Test == |
Version vom 28. September 2018, 21:40 Uhr
apt-get install bind9-doc bind9 dnsutils
/etc/resolv.conf
# Generated by resolvconf domain lummerland #nameserver 192.168.115.25 nameserver 192.168.115.46
/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto eth0 iface eth0 inet static address 192.168.115.46 netmask 255.255.255.0 gateway 192.168.115.115
/etc/bind/named.conf.options
options { directory "/var/cache/bind"; // If there is a firewall between you and nameservers you want // to talk to, you may need to fix the firewall to allow multiple // ports to talk. See http://www.kb.cert.org/vuls/id/800113 // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { 192.168.115.115; 192.168.115.116; }; notify no; //======================================================================== // 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 // zone "lummerland" in { type master; file "/etc/bind/db.lummerland"; }; zone "115.168.192.in-addr.arpa" in { type master; file "/etc/bind/db.115.168.192"; }; zone "orgamon.org." { type master; file "/etc/bind/db.orgamon.org"; }; zone "orgamon.de." { type master; file "/etc/bind/db.orgamon.de"; }; zone "orgamon.net." { type master; file "/etc/bind/db.orgamon.net"; }; zone "orgamon.eu." { type master; file "/etc/bind/db.orgamon.eu"; }; // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918";
Rechte
chmod 644 db.* systemctl start bind9
Test
resolvconf -l
dig @pi3x00 orgamon.org