The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do you add a reverse dns entry using cpanel?

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

  1. Dommi

    Dommi Registered

    Joined:
    Jun 27, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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!

    Joined:
    Apr 8, 2003
    Messages:
    900
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Norfolk, VA
    cPanel Access Level:
    DataCenter Provider
    You don't. You need to talk to the NOC that is providing your server.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
  4. zentity

    zentity Well-Known Member

    Joined:
    Jun 16, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    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. :)
     
Loading...

Share This Page