I can't properly resolve my reverse name. In my configs, I replaced my IP address by X1.X2.X3.X4
, and my domain name by domainname
. I have been following this tutorial, in which it first resolves the inverse before continue configuring.
I'm stuck in such a way that I don't know how to continue. One thing that I noticed is that he is using a local IP, and I'm using a internet IP.
Any pointers on how to debug this thing would be appreciated.
Here is my /etc/bind/named.conf.local
:
logging {
channel query.log {
file "/var/log/query.log";
severity debug 3;
};
category queries { query.log; };
};
zone "X3.X2.X1.in-addr.arpa" {
type master;
file "zones/ptr/X3.X2.X1.db";
};
include "/etc/bind/zones.rfc1918";
And my "/etc/bind/zones/ptr/X3.X2.X1.db";
$TTL 3D
@ IN SOA ns.domainname.com. admin.domainame.com. (
1 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS ns.domainname.com.
49 PTR localhost.
This is the dig output, note how it is missing the answer section.
root@hostname:/etc/bind# dig -x X1.X2.X3.X4 @localhost
; <<>> DiG 9.8.1-P1 <<>> -x X1.X2.X3.X4 @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 47451
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;X4.X3.X2.X1.in-addr.arpa. IN PTR
;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Thu Mar 27 18:26:06 2014
;; MSG SIZE rcvd: 44
On the query.log
, I have the following:
client ::1#49304: query: X4.X3.X2.X1.in-addr.arpa IN PTR + (::1)
SERVFAIL
, which probably means there's something useful in one ofbind
's logs. Could you find it and add it to your question? – Flup Mar 27 '14 at 14:37zone
on /var/log only returns daemon and syslog – fotanus Mar 27 '14 at 14:41logging
section in yournamed.conf
(ornamed.conf.local
) or, failing that, try in/var/log/named
. – Flup Mar 27 '14 at 14:43