LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Reverse DNS on Bind9 (https://www.linuxquestions.org/questions/linux-networking-3/reverse-dns-on-bind9-766620/)

Taleya 11-03-2009 05:41 PM

Reverse DNS on Bind9
 
Hi guys,

Having another one of those days - got a reverse DNS that's driving me nuts. It's probably pure pebkac, but any help appreciated.


Named.conf has the following entry:

zone "18.185.218.in-addr.arpa" {
type master;
file "/etc/bind/db.18.000.000";
};


Contents of db.18.000.000:

; BIND reverse data file for Student Mail
;
$ORIGIN 18.000.000.in-addr.arpa.
$TTL 604800

@ IN SOA ns1.notmydomain.org.au. (
1 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns2.notmynameserver.net.au
@ IN NS n4.notmynameserver.net.au

178 IN PTR gw-notmy.domainhere.org.au.

Bind takes it, but won't issue a reverse DNS lookup. No errors in logs.

any hints as to what I'm doing wrong? Can't concentrate in the slightest atm, the monkeys are agitated behind me >.<


====================

Ok, resolved that issue...now I have a bizarre "REFUSED" error when attempting an NSlookup.

Dig -x works fine

Have checked IPtables, and UDP 53 is open on the firewall

MensaWater 11-04-2009 11:39 AM

In arpa zones where you have:

@ IN NS ns2.notmynameserver.net.au
@ IN NS n4.notmynameserver.net.au

I don't have the @ for the name servers so it would only be:

IN NS ns2.notmynameserver.net.au
IN NS n4.notmynameserver.net.au

P.S. You might want to set your serial number to something like 2009110401 instead of just 1. It doesn't matter really so long as you increment each time you update it (e.g. 2009110402 or just 2) but it does let you and others know when you last updated this zone.


All times are GMT -5. The time now is 07:00 AM.