Hallo,
Ich kämpfe gerade damit, Bind zum laufen zu bringen. (Ist mein erster Kontakt mit einem DNS-Server, wird sich also vermutlich um einen N00b-Fehler handeln )
Ich versuche dies auf einem Ubuntu 7.04 System.
die Fehlermeldung im Syslog lautet:
---------------------------------------------------------------------------------------------------------
Jun 22 19:02:17 dope named[21871]: starting BIND 9.3.4 -u bind
Jun 22 19:02:17 dope named[21871]: found 2 CPUs, using 2 worker threads
Jun 22 19:02:17 dope named[21871]: loading configuration from '/etc/bind/named.conf'
Jun 22 19:02:17 dope named[21871]: listening on IPv6 interfaces, port 53
Jun 22 19:02:17 dope named[21871]: listening on IPv4 interface lo, 127.0.0.1#53
Jun 22 19:02:17 dope named[21871]: listening on IPv4 interface eth1, 192.168.0.2#53
Jun 22 19:02:17 dope named[21871]: command channel listening on 127.0.0.1#953
Jun 22 19:02:17 dope named[21871]: command channel listening on ::1#953
Jun 22 19:02:17 dope named[21871]: zone 0.in-addr.arpa/IN: loaded serial 1
Jun 22 19:02:17 dope named[21871]: zone 127.in-addr.arpa/IN: loaded serial 1
Jun 22 19:02:17 dope named[21871]: dns_rdata_fromtext: /etc/bind/db.0.168.192:6: near '8H': not a valid number
Jun 22 19:02:17 dope named[21871]: zone 0.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.0.168.192: not a valid number
Jun 22 19:02:17 dope named[21871]: zone 255.in-addr.arpa/IN: loaded serial 1
Jun 22 19:02:17 dope named[21871]: zone localhost/IN: loaded serial 1
Jun 22 19:02:17 dope named[21871]: dns_rdata_fromtext: /etc/bind/db.zope:6: near '8H': not a valid number
Jun 22 19:02:17 dope named[21871]: zone zope/IN: loading master file /etc/bind/db.zope: not a valid number
Jun 22 19:02:17 dope named[21871]: running
---------------------------------------------------------------------------------------------------------
und dig bringt:
meine db.0.168.192:
wie ich die Fehlermeldung verstehe, gibt es ein Problem mit der Zeile:
8H ; Refresh
da ich diese jedoch 1:1 aus einem Tutorial übernommen habe, ist es mir ein Rätsel, was daran falsch sein soll
hier die restlichen Files (ohne Kommentare), die ich verändert habe:
Ich kämpfe gerade damit, Bind zum laufen zu bringen. (Ist mein erster Kontakt mit einem DNS-Server, wird sich also vermutlich um einen N00b-Fehler handeln )
Ich versuche dies auf einem Ubuntu 7.04 System.
die Fehlermeldung im Syslog lautet:
---------------------------------------------------------------------------------------------------------
Jun 22 19:02:17 dope named[21871]: starting BIND 9.3.4 -u bind
Jun 22 19:02:17 dope named[21871]: found 2 CPUs, using 2 worker threads
Jun 22 19:02:17 dope named[21871]: loading configuration from '/etc/bind/named.conf'
Jun 22 19:02:17 dope named[21871]: listening on IPv6 interfaces, port 53
Jun 22 19:02:17 dope named[21871]: listening on IPv4 interface lo, 127.0.0.1#53
Jun 22 19:02:17 dope named[21871]: listening on IPv4 interface eth1, 192.168.0.2#53
Jun 22 19:02:17 dope named[21871]: command channel listening on 127.0.0.1#953
Jun 22 19:02:17 dope named[21871]: command channel listening on ::1#953
Jun 22 19:02:17 dope named[21871]: zone 0.in-addr.arpa/IN: loaded serial 1
Jun 22 19:02:17 dope named[21871]: zone 127.in-addr.arpa/IN: loaded serial 1
Jun 22 19:02:17 dope named[21871]: dns_rdata_fromtext: /etc/bind/db.0.168.192:6: near '8H': not a valid number
Jun 22 19:02:17 dope named[21871]: zone 0.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.0.168.192: not a valid number
Jun 22 19:02:17 dope named[21871]: zone 255.in-addr.arpa/IN: loaded serial 1
Jun 22 19:02:17 dope named[21871]: zone localhost/IN: loaded serial 1
Jun 22 19:02:17 dope named[21871]: dns_rdata_fromtext: /etc/bind/db.zope:6: near '8H': not a valid number
Jun 22 19:02:17 dope named[21871]: zone zope/IN: loading master file /etc/bind/db.zope: not a valid number
Jun 22 19:02:17 dope named[21871]: running
---------------------------------------------------------------------------------------------------------
und dig bringt:
Code:
; <<>> DiG 9.3.4 <<>> @127.0.0.1 dope.zone
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 40239
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;dope.zone. IN A
;; AUTHORITY SECTION:
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2007062200 1800 900 604800 86400
;; Query time: 167 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Jun 22 19:04:01 2007
;; MSG SIZE rcvd: 102
meine db.0.168.192:
Code:
;; db.0.168.192
;; Reverselookupzone für domainname
;;
$TTL 2D
@ IN SOA dope.zope. (
2007062201 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
2D ) ; TTL Negative Cache
@ IN NS dope.zope.
2 IN PTR dope.zope.
16 IN PTR hope.zope.
17 IN PTR nope.zope.
wie ich die Fehlermeldung verstehe, gibt es ein Problem mit der Zeile:
8H ; Refresh
da ich diese jedoch 1:1 aus einem Tutorial übernommen habe, ist es mir ein Rätsel, was daran falsch sein soll
hier die restlichen Files (ohne Kommentare), die ich verändert habe:
Code:
root@dope:/etc/bind# cat named.conf.local
zone "zope" {
type master;
file "/etc/bind/db.zope";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.0.168.192";
};
root@dope:/etc/bind#
Code:
root@dope:/etc/bind# cat db.zope
;; db.zope
;; Forwardlookupzone für domainname
;;
$TTL 2D
@ IN SOA dope.zope. (
2007062201 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
2D ) ; TTL Negativ Cache
@ IN NS rechnername.domainname.
dope IN A 192.168.0.2
localhost IN A 127.0.0.1
hope IN A 192.168.0.16
nope IN A 192.168.0.17
root@dope:/etc/bind#
Code:
root@dope:/etc/bind# cat named.conf.options
options {
directory "/var/cache/bind";
listen-on { 127.0.0.1; 192.168.0.2; };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
allow-recursion { localnets; };
};
root@dope:/etc/bind#