reverse DNS in LINUX

I was having problem with setting up reverse DNS entries for my IP address.
the IP provider has agreed to relay their reverse query to 2 nameserver and

these 2 name servers are INITIALLY located at 1 IP, However, I recently changed them to other locations: --> ip1, and --> ip2. I also have 2 dns servers at those 2 ips, running BIND.

What should I configure for BIND in order to handle reverse look up?
here is my zone file: IN      SOA (

                                                               1999040701 ;Serial number
                                                               10800      ;Refresh
                                                               3600       ;Retry
                                                               604800     ;Expire
                                                               86400)     ;Minimum TTL
@                       IN      NS
@                       IN      NS
xxx                      IN      PTR

are those looking correct?. Because, PTR looking still fails at this time ;(

Who is Participating?
arrkerr1024Connect With a Mentor Commented:
That looks right except for the @ sign in the email should be a period, I don't think the @ sign is supported.

When you start bind or reload the zone does it say that it loaded correctly?  If yes, can you do an nslookup on the IP against the your new servers directly with "nslookup" and does that return the correct information?

If all of that checks out then contact your ISP.  Reversing less than a class-c is not supported and there are various ways to handle it - I would think that they would be slaving to a specific IP address and you moved your name servers from one location to another - just changing the name isn't enough, they'll need the new IPs.

Hope that helps - post the output from your bind log when you start it up or reload the zone if you can't figure it out.
alextoftConnect With a Mentor Commented:
Correct, use a . in the admin email, not a @

If the zone loads cleanly and everything looks ok at the server end, try using the reverse lookup feature on  - it's quite useful and shows the whole trace. Good for fault-finding.
valleytechAuthor Commented:
after using "nslookup" (right at the DNS itself), i got this       name =

the bind returns ok
Oct  3 15:10:04 ns1 named[2373]: no IPv6 interfaces found
Oct  3 15:10:04 ns1 named: named reload succeeded

i'd like have reverse record for I've requested the PROVIDER for that IP to point their PTR query to where my dns resides (technically, another IP provider). Will it work that way?

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Thats really a question that only your ISP can answer.  Do they support classless reverse delegation?  If so, just ask them to delegate the reverse to your dns servers.
valleytechAuthor Commented:
the dnsstuff reverse query still showed that the ns1.domain,net still resides that the old IP which is not correct because I have made changes days before.
Is it problem caused by DNS cache? it's been 48 hours already
valleytechAuthor Commented:
thanks again!! it finally works
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.