reverse DNS in LINUX

Posted on 2007-10-01
Last Modified: 2012-05-05
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 ;(

Question by:valleytech
    LVL 14

    Accepted Solution

    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.
    LVL 19

    Assisted Solution

    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.

    Author Comment

    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?

    LVL 14

    Expert Comment

    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.

    Author Comment

    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

    Author Comment

    thanks again!! it finally works

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now