Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    61

    Default HOW:~ Own Name Servers (DNS)

    Hi All.
    Just had Cpanel installed on one of my servers and not knowing a lot about it. I need to find out how to setup my own nameservers.

    I have on setup added the nameservers details to primary & secondary parts in WHM as ns1 & ns2 etc. But how do I attach the IP's to them?

    Can someone explain how to do it from start to finish or post a how to please.

    Kind regards,

    Brian

    ServerIntelligence.com

  2. #2
    Member SprintSlash's Avatar
    Join Date
    Jan 2003
    Posts
    165

    Default

    Go to &Manage Nameservers& in WHM and you'll see the IP associated with each NS..
    Join other cpanel users on IRC.. #cpanel @ EFnet

  3. #3
    Member
    Join Date
    Feb 2003
    Posts
    61

    Default

    Thanks.

    Looking.

    regards,

    Brian

  4. #4
    Member
    Join Date
    Feb 2003
    Posts
    61

    Default

    Ok.

    I see the following:~


    Updating records for ip 64.XX.XXX.X52..... Done
    IP Nameserver
    64.XX.XX.X50 ns1.XXXXXX.com Red X
    64.XX.XX.X51 ns2.XXXXXX.com Red X
    64.XX.XX.X53 64.XX.XX.X53 Red X
    64.XX.XX.X54 64.XX.XX.X54 Red X

    The main server IP is 64.XX.XX.X50 and its being used for NS1. IP 64.XX.XX.X51 is using the NS2 NS.

    I did not want the main server IP being used and need the 2 spare IP's of 64.XX.XX.X53 & X54 to be used for NS1 & NS2.

    How can I change it over or is it ok to use the main IP issued for one of the NS1 and another spare IP for NS2.

    Thanks,

    Brian

    PS.

    Hope this makes any sence.

  5. #5
    Member
    Join Date
    Mar 2002
    Location
    Alberta, Canada
    Posts
    1,509

    Default

    Always best to think of your two lowest IP's as the two to be used for Nameservers -- for that Server. Entries shown for .53 & .54 are incorrect and should be removed. You can do this be manually editting [b:1feccc7354]# /etc/nameserverips[/b:1feccc7354] and removing them -- should say: =0 not the IP address. This will put those two IP's back into availability status. File is [readonly] BTW so you need to change it then change it back when finished.
    Helping people Host, Create, and Maintain their Web Site
    Also providing Server Admin Services - setup / troubleshooting

    http://potentproducts.com/

  6. #6
    Member
    Join Date
    Feb 2003
    Posts
    61

    Default

    I have deleted the 2 IP's from the # /etc/nameserverips file and made them =0

    When I go back into Manage Nameserver IPs in WHM it still shows them as before?

    Any ideas?

    Regards,

    Brian

  7. #7
    Member
    Join Date
    Mar 2002
    Location
    Alberta, Canada
    Posts
    1,509

    Default

    I would use: WHM & Ip Functions & Rebuild the IP Address Pool
    or just Restart Bind.
    Helping people Host, Create, and Maintain their Web Site
    Also providing Server Admin Services - setup / troubleshooting

    http://potentproducts.com/

  8. #8
    Member
    Join Date
    Feb 2003
    Posts
    61

    Default

    Thanks, I'll try it now.

    Regards,

    Brian

  9. #9
    Member
    Join Date
    Feb 2003
    Posts
    61

    Default

    I edited the nameserverips file but the IP's keep on returning. What is the command so I can find out what the chmod is for the file so I can edited it.

    Regards,

    Brian

  10. #10
    Member
    Join Date
    Mar 2002
    Location
    Alberta, Canada
    Posts
    1,509

    Default

    Ahh, you re-read my earlier post I see.

    The file is 444 (or -r--r--r--) by defualt so you need to first:

    # chmod 755 /etc/nameserverips

    # vi /etc/nameserverips

    make changes and save

    # chmod 444 /etc/nameserverips


    I'm suprized though, because if you use Vi and when you first opened the file, it would have stated at the bottom it was a readonly file. Handy thing that is.
    Helping people Host, Create, and Maintain their Web Site
    Also providing Server Admin Services - setup / troubleshooting

    http://potentproducts.com/

  11. #11
    Member
    Join Date
    Feb 2003
    Posts
    61

    Default

    Well I chmod 755 /etc/nameserverips edited the file using Pico to read the following:

    64.XXX.XX.X50=ns1.serverintelligence.com
    64.XXX.XX.X51=ns2.serverintelligence.com
    64.XXX.XX.X52=0
    64.XXX.XX.X53=0
    64.XXX.XX.X54=0

    Then chmod 444 /etc/nameserverips and run Rebuild the IP Address Pool.

    It still stated the 2 IP's with in Manage Nameserver IPs and I went back into /etc/nameserverips file and they were put back in?


    Now Im lost?????

    Regards,

    Brian

  12. #12
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Hey, Website_Rob,
    Is it possible for me to edit the file and put say:

    12.345.67.8 ns1.mydomain.com
    12.345.67.9 ns2.mydomain.com
    12.345.67.8 ns1.otherdomain.com
    12.345.67.9 ns2.otherdomain.com

    Or will that cause problems?

  13. #13
    Member
    Join Date
    Mar 2002
    Location
    Alberta, Canada
    Posts
    1,509

    Default

    Don't forget the equal sign and I wouldn't use the same IP for two different host names. There is lots I don't know about DNS, but using the same IP for two different host names is not something I am familiar with.

    Something I forgot to mention in my earlier posts is that the nameserverips file may also be readonly. As I use Vi (I used to use Pico) it tells me whenever the file is read only. So, if, after making changes you re-open the file and nothing has changed, you know the file is readonly.

    chattr -i allows changes to be made

    chattr +i makes the file readonly
    Helping people Host, Create, and Maintain their Web Site
    Also providing Server Admin Services - setup / troubleshooting

    http://potentproducts.com/

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 01-18-2010, 11:11 PM
  2. New DNS servers
    By nowiresltd in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-12-2009, 04:52 AM
  3. dns servers
    By txn in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-15-2004, 01:22 PM
  4. DNS/Name servers
    By tlp in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-04-2003, 09:09 AM
  5. 2 servers / 3 DNS
    By H2Hosting.com in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-06-2002, 05:48 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube