$ cat /etc/bind/named.conf
acl internals { 127.0.0.0/8; ::1; };
options {
directory "/var/cache/bind";
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
listen-on { none; };
allow-transfer {"none";};
allow-recursion { localhost; ::1; };
};
include "/etc/bind/rndc.key";
controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1; };
};
include "/etc/bind/zones.conf";
$ cat /etc/bind/zones.conf
zone "oshahn.de" {
type master;
file "/var/lib/bind/oshahn.de.db";
allow-update { key rndc.key; };
};
// 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";
};
$ sudo cat /etc/bind/rndc.key
key "oshahn-de_rndc-key" {
algorithm hmac-md5;
secret "DasGlaubstDuDochSelbstNicht";
};
$ cat /var/lib/bind/oshahn.de.db
$TTL 3600
@ IN SOA oshahn.de. mail.oshahn.de. (
2007010401 ; Serial
3600 ; Refresh [1h]
600 ; Retry [10m]
86400 ; Expire [1d]
600 ) ; Negative Cache TTL [1h]
;
@ IN NS oshahn.de.
@ IN MX 10 mail.oshahn.de.
oshahn.de. IN A 83.246.72.216