Thread: problem with sub-domain using bind9
i'm trying set sub-domain within private network , i'm using bind9 on authoritative dns server zone. believe working think there's issue uncovered in preliminary testing... sub-domain i'm trying control of still can't found.
output dig -x 127.0.0.1 on name server looks ok:
; <<>> dig 9.7.0-p1 <<>> -x 127.0.0.1
;; global options: +cmd
;; got answer:
;; ->>header<<- opcode: query, status: noerror, id: 18185
;; flags: qr aa rd ra; query: 1, answer: 1, authority: 1, additional: 2
;; question section:
;1.0.0.127.in-addr.arpa. in ptr
;; answer section:
1.0.0.127.in-addr.arpa. 604800 in ptr localhost.
;; authority section:
127.in-addr.arpa. 604800 in ns localhost.
;; additional section:
localhost. 604800 in 127.0.0.1
localhost. 604800 in aaaa ::1
;; query time: 0 msec
;; server: 192.168.2.99#53(192.168.2.99)
;; msg size rcvd: 121
when use dig query dns name server seems right me:
; <<>> dig 9.7.0-p1 <<>> ns.dev.example.org
;; global options: +cmd
;; got answer:
;; ->>header<<- opcode: query, status: noerror, id: 45149
;; flags: qr aa rd ra; query: 1, answer: 1, authority: 1, additional: 0
;; question section:
;ns.dev.example.org. in a
;; answer section:
ns.dev.example.org. 604800 in 192.168.2.99
;; authority section:
dev.example.org. 604800 in ns ns.dev.example.org.
;; query time: 0 msec
;; server: 192.168.2.99#53(192.168.2.99)
;; msg size rcvd: 73
however, when use dig query actual sub-domain there no answer section , see line:
;; flags: qr aa rd ra; query: 1, answer: 0, authority: 1, additional: 0
using dig query different name server host ns.dev.example.org turns same thing.
also, if use nslookup sub-domain returns:
** server can't find dev.example.org: nxdomain
zone file:
$ttl 604800
dev.example.org. in soa ns.dev.example.org. admin.dev.example.org. (
16 ; serial
604800 ; refresh - 7 days
86400 ; retry - 24 hours
2419200 ; expire - 28 days
604800 ) ; negative cache ttl
;
in ns ns.dev.example.org.
dev.example.org in 192.168.2.99
ns in 192.168.2.99
desktop in 192.168.2.74
i'm not expert on bind9, zone file doesn't right me. try this:
code:$ttl 604800 @ in soa dev.example.org. admin.dev.example.org. ( 17 ; serial 604800 ; refresh - 7 days 86400 ; retry - 24 hours 2419200 ; expire - 28 days 604800 ) ; negative cache ttl in 192.168.2.99 ; @ in ns ns.dev.example.org. ns in 192.168.2.99 desktop in 192.168.2.74
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] problem with sub-domain using bind9
Ubuntu
Comments
Post a Comment