Why isn't my Bind server answering this query

Harshith Mulky harshith.mulky at outlook.com
Wed Jun 8 09:55:27 UTC 2016


I have bind Running on following Version:

bind-9.8.2-0.17.rc1.el6.x86_64


I have /etc/named.conf configured as

zone "e164.arpa" IN {
     type master;
     allow-query {any;};
     file "e164.arpa.zone";
};

zone "test1.com" IN {
     type master;
     allow-query {any;};
     file "test1.zone";
};

test1.zone has following set of records,

$TTL 1D

@ IN SOA denver.test1.com.  root.test1.com. (
2016060701 ; Serial number (yyyymmdd-num)
8H ; Refresh
2M ; Retry
4W ; Expire
1D ) ; Minimum
     IN NS denver

as.ipv4                   A                         0.0.0.0

as.ipv6                   AAAA                      0::0

denver                   A                         10.54.108.7

test1 IN NAPTR   22   32   "u"        "SIP+D2U"       ""      _sip._udp.test1.com.
_sip._udp               IN  SRV       0        40      7700 alice1.test1.com.
alice1.test1.com.  IN A    10.54.80.136
test1.com.         IN A    10.54.80.136
test1.com.          IN AAAA   fd00:10:6b50:4500::88

-----------------------------------------------------------------------------------------------------------

When i run the dig command on the bind server:

[root at denver named]# dig test1.com. NAPTR

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> test1.com NAPTR
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48213
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;test1.com.                        IN      NAPTR

;; AUTHORITY SECTION:
test1.com.         86400   IN      SOA     denver.test1.com. root.test1.com. 2016060701 28800 120 2419200 86400

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jun  8 15:24:09 2016
;; MSG SIZE  rcvd: 85

--------------------------------------------------------------------------------------------------------

But for other records, it works fine

[root at denvernamed]# dig test1.com. A

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> test1.com. A
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18098
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;test1.com.                        IN      A

;; ANSWER SECTION:
test1.com.         86400   IN      A       10.54.80.136

;; AUTHORITY SECTION:
test1.com.         86400   IN      NS      denver.test1.com.

;; ADDITIONAL SECTION:
denver.test1.com. 86400 IN    A       10.54.108.7

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jun  8 15:26:16 2016
;; MSG SIZE  rcvd: 90

and



[root at denvernamed]# dig _sip._udp.test1.com. SRV

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> _sip._udp.test1.com. SRV
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45349
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; QUESTION SECTION:
;_sip._udp.test1.com.      IN      SRV

;; ANSWER SECTION:
_sip._udp.test1.com. 86400 IN      SRV     0 40 7700 alice1.test1.com.

;; AUTHORITY SECTION:
test1.com.         86400   IN      NS      denver.test1.com.

;; ADDITIONAL SECTION:
alice1.test1.com.  86400   IN      A       10.54.80.136
denver.test1.com.  86400 IN    A       10.54.78.7

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jun  8 15:27:47 2016
;; MSG SIZE  rcvd: 141


What might I be doing wrong with NAPTR dig command or the records in test1.zone?


Regards

Harshith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20160608/84b8bbff/attachment.html>


More information about the bind-users mailing list