Reverse lookup of local computer's external IP fails
I am running a DNS server with Named, which, apart from one thing, works fine.
That one thing is that a reverse lookup of my server's IP fails. I have purchased a domain (which I shall refer to as mydomain.com), and when I remotely or locally do a 'dig' on it then I get my server's IP address, which is what I want. But then, when I remotely do a 'dig -x' on my server's IP address (which I shall refer to as 123.123.456.123) it doesn't return mydomain.com but the domain my ISP has given to my IP addres. So I decided to set up the reverse zone DNS information for my IP on my server, and get my domain comany to make it the nameserver for mydomain.com . When all the reverse zone information was set up, I locally (on the server; locally to the server) can dig mydomain.com and it returns the server's IP address, the same one returned when dug locally. But when I do a reverse dig on 123.123.456.123 it doesn't return an answer section; only this: Code:
; <<>> DiG 9.2.5 <<>> -x 123.123.456.123 But it's probably something I have no idea about so here are my config files: named.conf: Code:
options Code:
$TTL 3D Code:
$TTL 3D And yes; all the files are set up in the correct directory. Everything works apart from the local reverse lookup of 123.456.123.123. resolv.conf is setup correctly also, as in: Code:
search mydomain.com Anyone got any ideas? |
Unless the network address you've been given also gives you the ability to do reverse lookups on it, it won't work.
Chances are good your ISP hasn't given you the authority to do this, that's why it won't work. |
I know it won't work remotely, but why not when I do it on the server whos only nameserver is itself, why shouldn't it? As I said, remotely it does get an answer, the one my ISP gives me, but locally it doesn't get an answer at all. If it wouldn't work because of my ISP not letting me then wouldn't it just return the same thing that it returned remotely?
|
Try using only the first 3 octets of your IP address in the zone name, such as:
456.123.123.in-addr.arpa |
Nope, still doesn't get an answer.
Thanks though. |
ichi
Based on IP 123.123.456.456 Code:
$TTL 3D Pete |
:D Thanks lots and lots Pete! That solved it!
I didn't realize the numbers at the beginning of the PTR RR line meant anything...:p |
ichi
I suspect that may be a genuine IP so I have edited my post if I'm correct I suggest you do the same No problem with the help, pleased you got it working, DNS is sometimes a Bind ? Pete |
All times are GMT -5. The time now is 10:46 AM. |