BIND: Zone Debugging

$TTL 300
$ORIGIN ch.
zhaw                    SOA     dns1.zhaw.ch. root.srv-lab-t-668.zhaw.ch. (2013081601 1800 1800 1800 1800)
                        NS      dns1.zhaw.ch.
                        NS      dns2.zhaw.ch.

$ORIGIN zhaw.ch.
srv-lab-t-668           A       160.85.23.67

;; RECORDS: naptr
srv-lab-t-668           NAPTR   2 0 "s" "SIP+D2U" "" _sip._udp.srv-lab-t-668.zhaw.ch.
srv-lab-t-668.          NAPTR   2 0 "s" "SIP+D2T" "" _sip._tcp.srv-lab-t-668.zhaw.ch.

$ORIGIN srv-lab-t-668.zhaw.ch.

;; RECORDS: proxy
_sip._udp               SRV     10 10 5060  srv-lab-t-668.zhaw.ch.
_sip._tcp               SRV     10 10 5060  srv-lab-t-668.zhaw.ch.
_sips._tcp              SRV     10 10 5061  srv-lab-t-668.zhaw.ch.
_sip._tls               SRV     10 10 5061  srv-lab-t-668.zhaw.ch.

;; RECORDS: rr
_sip._tcp.mwi           SRV     10 10 5110  srv-lab-t-668.zhaw.ch.
_sip._tcp.vm            SRV     10 10 15060 srv-lab-t-668.zhaw.ch.
_sip._tcp.rr            SRV     10 10 5070  srv-lab-t-668.zhaw.ch.

;; RECORDS: im
;; RECORDS: a
# named-checkzone srv-lab-t-668.zhaw.ch srv-lab-t-668.zhaw.ch.zone
srv-lab-t-668.zhaw.ch.zone:6: ignoring out-of-zone data (zhaw.ch)
srv-lab-t-668.zhaw.ch.zone:15: ignoring out-of-zone data (srv-lab-t-668)
zone srv-lab-t-668.zhaw.ch/IN: has 0 SOA records
zone srv-lab-t-668.zhaw.ch/IN: has no NS records
zone srv-lab-t-668.zhaw.ch/IN: not loaded due to errors.

Problem

  • ‘zhaw.ch’ is outside the loaded zone ‘srv-lab-t-668.zhaw.ch’
  • Typo in second NAPTR record: no ‘.’!
$TTL 300

$ORIGIN zhaw.ch.
srv-lab-t-668           A       160.85.23.67
                        SOA     dns1.zhaw.ch. root.srv-lab-t-668.zhaw.ch. (2013081601 1800 1800 1800 1800)
                        NS      dns1.zhaw.ch.
                        NS      dns2.zhaw.ch.

;; RECORDS: naptr
srv-lab-t-668           NAPTR   2 0 "s" "SIP+D2U" "" _sip._udp.srv-lab-t-668.zhaw.ch.
srv-lab-t-668           NAPTR   2 0 "s" "SIP+D2T" "" _sip._tcp.srv-lab-t-668.zhaw.ch.

$ORIGIN srv-lab-t-668.zhaw.ch.

;; RECORDS: proxy
_sip._udp               SRV     10 10 5060  srv-lab-t-668.zhaw.ch.
_sip._tcp               SRV     10 10 5060  srv-lab-t-668.zhaw.ch.
_sips._tcp              SRV     10 10 5061  srv-lab-t-668.zhaw.ch.
_sip._tls               SRV     10 10 5061  srv-lab-t-668.zhaw.ch.

;; RECORDS: rr
_sip._tcp.mwi           SRV     10 10 5110  srv-lab-t-668.zhaw.ch.
_sip._tcp.vm            SRV     10 10 15060 srv-lab-t-668.zhaw.ch.
_sip._tcp.rr            SRV     10 10 5070  srv-lab-t-668.zhaw.ch.

;; RECORDS: im
;; RECORDS: a
 named-checkzone srv-lab-t-668.zhaw.ch srv-lab-t-668.zhaw.ch.zone
zone srv-lab-t-668.zhaw.ch/IN: loaded serial 2013081601
OK

ignoring out-of-zone data in my DNS file

Leave a Reply

Your email address will not be published.