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.

Setting up NameServer with WHM

Discussion in 'Bind / DNS / Nameserver Issues' started by amoloo7, Feb 22, 2013.

  1. amoloo7

    amoloo7 Member

    Joined:
    Jan 17, 2013
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Hello cpanel Gang's I got a dedicated server

    And what i am trying to do is register and configure name server to my server so that the domain i provide with the nameserver get easily pointed to my server...

    I mean to say...
    I have domain name example.com.i provided my branded name server like ns1.domain.com to this domain...
    Now its not getting pointed because nothing is mention in my server about branded name server i was following this tutorial

    . Setup Nameservers In WHM
    Go into WHM (Web Host Manager) and select Edit Setup from the Server Setup menu on the left. Enter ns1.newdomain.com in the Primary Nameserver field. Hit 'Assign IP Address' (write the IP down or remember it for the next step). Then hit 'Add an A Entry for this nameserver'.

    Repeat this process for the Secondary Nameserver field.


    2. Register Nameservers
    Go to your domain registrar and register ns1.yourdomain.com (111.111.111.111) and ns2.yourdomain.com (222.222.222.222) as nameservers. 111.111.111.111 being the primary nameserver IP from step 1 and 222.222.222.222 being the secondary.

    These registrations may take a few days to propagate (often as many as 3 days).


    3. Reverse DNS
    You may need your host to enter a reverse DNS pointer (PTR Record) for your nameservers. You'll need to let them know each nameserver and its IP address. Sometimes you can suffer non-delivery of mail if you don't so this. Reverse DNS pointers can take a while to propagate. Send an email to support@burst.net with the following...

    To:
    From: <Your Address>
    Subject: PTR Request

    Please create the following PTR records.
    123.123.123.123 - server.mydomain.com (Main Server IP)
    111.111.111.111 - ns1.mydomain.com (This of course being your info)
    222.222.222.222 - ns2.mydomain.com


    4. Tidy Up Junk Nameservers
    Go into WHM (Web Host Manager) and select Manage Nameserver IPs from the Server Setup menu on the left. Remove any nameservers you don't recognise. This is just a tidy up exercise in case anyone's set anything up on the box before you.


    5. Initial Nameserver Setup
    Go into WHM (Web Host Manager) and select Initial NameServer Setup from the Server Setup menu on the left.


    6. Restart BIND
    Restart BIND from SSH with (step 5 restarts BIND, but sometimes needs a proper stop and start for it to work):

    service named stop
    service named start


    7. Manual Checks
    This process doesn't always work, so there are some things you can check manually via SSH.

    pico /etc/wwwacct.conf
    Check that the nameservers are correctly specified on NS1, NS2 etc.

    pico /etc/resolv.conf
    Check that there are nameserver entries for each IP. There may also be one for 127.0.0.1 - this is okay.

    Should read as follows:

    domain maindomain.com
    search maindomain.com
    nameserver 127.0.0.1
    nameserver 111.111.111.111
    nameserver 222.222.222.222

    Where 'maindomain.com' is the main domain of my server, and '111.111.111.111' and '222.222.222.222' are the IP addresses of my primary and secondary nameservers.


    pico /etc/nameserverips
    Check that there are entries for each IP acting as a nameserver.



    Now i stuck at Reverse DNS i provided the nameserver and ip to my host but my host sed that this ant there ip address.. I am confused now...... any one can help

    Thanks For Reading this.....
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    To anyone reading this thread: DO NOT try to follow these instructions, they will not work!
     
  3. amoloo7

    amoloo7 Member

    Joined:
    Jan 17, 2013
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    So which one will work ? according to you ?????????
     
  4. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    The instructions in your 1st post are from 2004. Many things in cPanel/WHM have changed since then.

    But actually the biggest mistake is in here:
    The /etc/resolv.conf file should not contain your IP addresses.

    Read more in this thread:
    http://forums.cpanel.net/f185/ipche...ame-hostnamesomekindofaddress-com-233542.html
     
Loading...

Share This Page