DNS mit bind9: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 9: | Zeile 9: | ||
*/etc/bind/named.conf.default-zones | */etc/bind/named.conf.default-zones | ||
Man kann aber nach belieben auch nur die hauptdatei '''named.conf''' benutzen. | Man kann aber nach belieben auch nur die hauptdatei '''named.conf''' benutzen. | ||
options { | |||
directory "/var/lib/bind"; | |||
// forwarders { 0.0.0.0; }; | |||
auth-nxdomain no; # conform to RFC1035 | |||
listen-on { any; }; | |||
}; | |||
// prime the server with knowledge of the root servers | |||
zone "." { | |||
type hint; | |||
file "/etc/bind/db.root"; | |||
}; | |||
// be authoritative for the localhost forward and reverse zones, and for | |||
// broadcast zones as per RFC 1912 | |||
zone "localhost" { | |||
type master; | |||
file "/etc/bind/db.local"; | |||
}; | |||
zone "127.in-addr.arpa" { | |||
type master; | |||
file "/etc/bind/db.127"; | |||
}; | |||
zone "0.in-addr.arpa" { | |||
type master; | |||
file "/etc/bind/db.0"; | |||
}; | |||
zone "255.in-addr.arpa" { | |||
type master; | |||
file "/etc/bind/db.255"; | |||
}; | |||
zone "int" { | |||
type master; | |||
file "vulkan"; | |||
notify no; | |||
}; | |||
Version vom 2. September 2011, 10:41 Uhr
Installation
aptitude install bind9
Konfiguration von bind9
Standardmäßig sind die Konfigurationsdateien von bind9 auf mehrere aufgeteilt:
- /etc/bind/named.conf
- /etc/bind/named.conf.locale
- /etc/bind/named.conf.options
- /etc/bind/named.conf.default-zones
Man kann aber nach belieben auch nur die hauptdatei named.conf benutzen.
options {
directory "/var/lib/bind";
// forwarders { 0.0.0.0; };
auth-nxdomain no; # conform to RFC1035
listen-on { any; };
};
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone "int" {
type master;
file "vulkan";
notify no;
};