meine Raspi ip: 192.168.178.9
meine router ip: 192.168.178.1
db.home.lan
Code: Alles auswählen
; Use semicolons to add comments.
; Host-to-IP Address DNS Pointers for home.lan
; Note: The extra "." at the end of the domain names are important.
; The following parameters set when DNS records will expire, etc.
; Importantly, the serial number must always be iterated upward to prevent
; undesirable consequences. A good format to use is YYYYMMDDII where
; the II index is in case you make more that one change in the same day.
home.lan. IN SOA raspberry.home.lan. hostmaster.home.lan. (
2013120101 ; serial
8H ; refresh
4H ; retry
4W ; expire
1D ; minimum
)
; NS indicates that raspberry is the name server on home.lan
; MX indicates that raspberry is (also) the mail server on home.lan
home.lan. IN NS raspberry.home.lan.
home.lan. IN MX 10 raspberry.home.lan.
; Set the address for localhost.home.lan
localhost IN A 127.0.0.1
; Set the hostnames in alphabetical order
raspberry IN A 192.168.178.9
router IN A 192.168.178.1
Code: Alles auswählen
; IP Address-to-Host DNS Pointers for the 192.168.178 subnet
@ IN SOA raspberry.home.lan. hostmaster.home.lan. (
2013120101 ; serial
8H ; refresh
4H ; retry
4W ; expire
1D ; minimum
)
; define the authoritative name server
IN NS raspberry.home.lan.
; our hosts, in numeric order
1 IN PTR router.home.lan.
9 IN PTR raspberry.home.lan.
Code: Alles auswählen
forwarders {
208.67.222.222;
208.67.220.220;
}
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
;
Code: Alles auswählen
zone "home.lan" IN {
type master;
file "/etc/bind/db.home.lan";
};
zone "178.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.rev.178.168.192.in-addr.arpa";
};