1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to setup nameserver

Discussion in 'Web Hosting' started by newyorkpride, Apr 1, 2011.

  1. newyorkpride

    newyorkpride Junior Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    Hi,
    So I decided I want to add domainkeys/spf record to one of my VPS's. I have always had my domains be on the registrar's name server but now and I found out that I need to have the nameserver on my vps to setup domainkeys/spf. So how can I do this? I have done research but so far its been confusing(I have cpanel/whm)

    So far I have found that I need a second IP, which I have ordered. Then what? Can someoen give me a step by step from scratch?
    Lets say my domain name is mydomain.com and my original ip is 1.1.1.1 (and my second one will be 1.1.1.2)

    So far this is what I did and it didnt work...
    1.Went into domain registrar and did "new nameserver" and made a new one pointing to 1.1.1.1 and the hostname setup in whm(server.mydomain.com).
    2.went and changed the dns primary nameserver to the server.mydomain.com
    I tried this and it did nothing. So then I dug deeper and found in cpanel advance DNS zone editor, all the things were going to some other ip, not of my server. So I changed all those to 1.1.1.1 .
    Still nothing happened or changed, and I was unable to acess ftp and such. SO I did more research and found I might need a second ip. But still havent figured out what to do exactly or how to set it up. So I put everything back to stock.

    Can anyone give me step by step directions, or a link to a site that does. Thanks in advance
     
    Last edited: Apr 1, 2011
  2. newyorkpride

    newyorkpride Junior Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    Support replied back and said that I only need 2 ips if I want to have two seperate nameservers. so Its possible to do with 1. So now just waiting on anyone with experience to shed some light.
     
  3. roamer

    roamer Power Member

    Joined:
    Dec 2, 2008
    Messages:
    500
    Likes Received:
    480
    Occupation:
    Gfx designer, vfx and mgfx
    Location:
    plɹoʍ ǝɥʇ punoɹɐ ƃuıɯɐoɹ
    Once you have the two required IPs, add them from WHM and assign usage as nameservers. Take note of the IPs; go to your domain registrar and register two nameservers. Don't confuse this step with changing the nameservers for your domain; ie. Your domain is newyorkpride.com, it has assigned nameservers to point to your server, like ns1.vpsaddress.com and ns2.vpsaddress.com - those you leave alone. What you do is register nameservers under your domain, like so:

    ns1.newyorkpride.com (IP no. 1)
    ns2.newyorkpride.com (IP no. 2)

    click ok or next, etc. Wait a little, I usually give it at least 12 hours to be on the safe side, and then I change switch my domain nameservers (in this case ns1 and ns2 vpsaddress.com ) to mine (ns1.newyorkpride.com, ns2...). Also, after you have your own nameservers, ask your provider to do a rdns for those IPs, so they resolve to the name by IP .

    Hope this helps, I'm sorry if I'm not-so-clear, but I have cramps and they're killing me. :(
     
    • Thanks Thanks x 1
  4. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    Nvm, roamer beat me to it, slow writing :)
     
    • Thanks Thanks x 2
  5. newyorkpride

    newyorkpride Junior Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    I might have figured it out at the same time as you wrote this. I THINK I did what you told me to do. Please tell me if I did something wrong

    1. Went into my WHM and changed the following in basic cpanel/whm setup
    Main Shared Virtual Host IP: to my ip
    nameserver1:ns1.mydomain.com
    Did add an A entry right beside the nameserver option, and added the ip to it. Then clicked save.

    Then I went into my registrar(moniker) and used the "new name server" tab to make ns1.mydomain.com. Then I changed the dns 1 to ns1.mydomain.com.


    I left the ns2 as it was, and will change it when I get a second IP. But for now it should work from my understanding, as the first nameserver is used unless its down.

    So I did this but when I go into cpanel and look at domainkeys/spf it still says warning your domain doesnt use this server as its nameserver.


    Is this just because everything hasnt propogated yet, or did I not follow your directions correctly?

    Thanks again for the response.
     
  6. newyorkpride

    newyorkpride Junior Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    ok and actually did same thing and added the NS2 to same ip, I will change the ip later when I get a second. Also I had the isp reverse dns setup. Currently it resolved to
    myip,static.midphase.com Top Level Domain: "midphase.com".

    Im guessing it takes 24 hours or so to start resolving to my actual domain(midphase is the isp i think). Or is this correct, and its supposed to resolve to them.
     
  7. roamer

    roamer Power Member

    Joined:
    Dec 2, 2008
    Messages:
    500
    Likes Received:
    480
    Occupation:
    Gfx designer, vfx and mgfx
    Location:
    plɹoʍ ǝɥʇ punoɹɐ ƃuıɯɐoɹ
    Give it a little more time so it resolves properly; it should work after it has propagated. :)
     
    • Thanks Thanks x 1
  8. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    Works now? It should :)
    I only learned to do it right after 3-4 different servers, you can mess it up easily
     
    • Thanks Thanks x 1
  9. newyorkpride

    newyorkpride Junior Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    Well not yet. Whois is still my old nameservers though, so im guessing takes time to propogate just like he said, because in the registrar its changed to the new nameservers.

    Yea its deffinitly a steep learning curve. Ive been working with a bunch of vps's in last couple months and everytime I end up needing another feature, so have to learn something new. And it seems that with servers once you have done it once and know how to do it, everything is SUPER easy. But if you have never done it, its the hardest thing ever to try and figure it out. All the write ups online are basically garbage for someone that doesnt specialize in this. They all either say the wrong/outdated info, or they base their articles thinking you have been working on servers for years. Its like websters dictionary all over again with the tutorials.... you look up A and it says SEE B, you look at B and it says see A lol
     
  10. newyorkpride

    newyorkpride Junior Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    when I check domaintools the whois is the old one, when I check verisign whois its the new nameservers. I am able to login to cpanel and ftp using the domain(isntead of ip) but when I upload things to ftp I do not see them using my browser http. Also domainkeys still doesnt recognize the server as being the nameserver. Did I do it wrong?

    I have no problem waiting if its really just an issue of propogation, but Ive noticed that these days propogation happens within an hour(confirmed by the fact that verisign has my correct whois). So I am led to believe I left something out.
     
  11. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    whats the nameserver of your nameserver domain?
     
  12. newyorkpride

    newyorkpride Junior Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    Now you got me confused :)

    The nameserver domain is the same domain that i am attaching to the vps. So I have only one domain. Do I need a second domain, one to be the nameserver?

    So I created nameserver on mydomain.com of ns1.mydomain.com and under dns of mydomain.com I have ns1.mydomain.com
     
  13. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    no, you did good lol. if you go into WHM and click on the 'nameserver IPs', both of your nameserver with ips showing up?
     
  14. newyorkpride

    newyorkpride Junior Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    Only one is showing up (but regardless, isnt only one even needed to work). When I try to go into setup to add a record for second, it says it already exists.
     
  15. ExtraWinner

    ExtraWinner BANNED BANNED

    Joined:
    Jun 18, 2010
    Messages:
    2,346
    Likes Received:
    3,463
    In WHM.

    Go to DNS Functions -> Add a DNS Zone

    In "IP" field put your first nameservers IP. In domain put: ns1.yourdomain.com - where yourdomain.com is your domain url.

    After you are done repeat this with second nameserver, using different IP and using: ns2.yourdomain.com

    You just created 2 nameservers.

    Good Luck!
     
  16. newyorkpride

    newyorkpride Junior Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    when I went into edit dns zone I already had ns1 and ns2 there. I edited the mydomain.com zone though and it had somethings pointing to my hosts nameservers. I took that out and pointed them to my ns1 and ns2. Domainkeys feature still doesnt recognize domain nameserver being on the server. Should I not have changed the mydomain.com zone?
     
  17. ExtraWinner

    ExtraWinner BANNED BANNED

    Joined:
    Jun 18, 2010
    Messages:
    2,346
    Likes Received:
    3,463
    Did you created nameservers in your registrar too?

    What is your registrar by the way?
     
  18. newyorkpride

    newyorkpride Junior Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    my registrar is moniker.
    Yes. I did the 'create a nameserver' feature, and added ns1 and ns2.mydomain.com . Then I changed the dns zone to ns1 and ns2.mydomain.com.
     
  19. ExtraWinner

    ExtraWinner BANNED BANNED

    Joined:
    Jun 18, 2010
    Messages:
    2,346
    Likes Received:
    3,463
    Maybe you need to wait for them to propagate (up to 48 hours in some cases).

    Just run Live Chat with support and ask them if domains are propagated.
     
  20. newyorkpride

    newyorkpride Junior Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    Its been two days and still nothing. My domain keys still doesn't recognize my website as having the nameservers on it. And my http end doesnt work. What could I be doing wrong?
    I'm reinstalling the vps to start from scratch and resetting moniker domain info. Anyone have any suggestions. Or more eact steps , that I can follow exactly, that should work. 'Roamer' Gave me some steps, but seems like thats what I did but it didnt work.

    Also, in my dns zone management for my domain, I was supposed to change the ip's to my server IP correct? Thats the only step that I did, that wasnt mentioned here.
     
    Last edited: Apr 3, 2011