Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How do you add a reverse dns entry using cpanel?

Discussion in 'Bind/DNS/Nameserver' started by Dommi, Jul 9, 2004.

  1. Dommi

    Dommi Registered

    Joined:
    Jun 27, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    New York City
    It may or may not be obvious but I havent found the answer yet.

    Anyone know?

    -Dommi
     
  2. GOT

    GOT Get Proactive!
    PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,049
    Likes Received:
    46
    Trophy Points:
    178
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    You don't. You need to talk to the NOC that is providing your server.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Well, if they've delegated it down to you, you can. You have to setup an in-addr.arpa zone for the IP address and then create a PTR address for the IP in that zone. It can all be done through WHM, but it's a bit tricky.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. zentity

    zentity Well-Known Member

    Joined:
    Jun 16, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    156
    An example, its not that hard if you have command line access, you can do it with whm I guess if you follow this example as a guide.

    Say you IP you want to set up reverse for is 123.124.125.126

    OK,

    vi /var/named/125.124.123.in-addr.arpa

    Enter:

    $ORIGIN 125.124.123.in-addr.arpa.
    $TTL 86400
    @ IN SOA ns1.nameserver.com. email.nameserver.com. (
    2004071301 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
    IN NS ns1.nameserver.com.
    126 IN PTR some.server.com.

    now if you wanted to also add the PTR for 123.124.125.127 - You would simply add 127 to the same dns zone

    $ORIGIN 125.124.123.in-addr.arpa.
    $TTL 86400
    @ IN SOA ns1.nameserver.com. email.nameserver.com. (
    2004071301 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
    IN NS ns1.nameserver.com.
    126 IN PTR some.server.com.
    127 IN PTR someother.server.com.

    The add to /etc/named.conf

    zone "125.124.123.in-addr.arpa" in {
    type master ;
    file "/var/named/125.124.123.in-addr.arpa" ;
    } ;

    rndc reload or restart named - Thats if the IP is delegated to you, which most providers don't do - buts thats how it could be done. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice