Skip to main content

Changing DNS. Oh what a mess I make

Comments

13 comments

  • LostNerd
    That sounds right to me... Nameservers are simply records pointing to a server... For example:
    ns1.domain.com > 1.2.3.4 ns2.domain.com > 4.3.2.1
    As long as those IP's are pointing to your Amazon service, the domains will resolve to the DNS server on said service. Remember that the domains also must have their respective A records pointing to the service.
    0
  • stevethemusicma
    That sounds right to me... Nameservers are simply records pointing to a server... For example:
    ns1.domain.com > 1.2.3.4 ns2.domain.com > 4.3.2.1
    As long as those IP's are pointing to your Amazon service, the domains will resolve to the DNS server on said service. Remember that the domains also must have their respective A records pointing to the service.

    The A records will change automatically when I transfer their site over to AWS using WHM/cPanel right? thanks, Steve
    0
  • stevethemusicma
    And thank you so much for you answer :) Steve
    0
  • LostNerd
    The A records will change automatically when I transfer their site over to AWS using WHM/cPanel right?

    Nope, that's not quite right. The Nameservers point to DNS servers. The DNS servers are what hold the A record... If the Nameservers are pointing to your Amazon service, you will then need a DNS server with zone files for each domain. An example A record for domain.com and a CNAME to make www.domain.com work:
    domain.com 14400 IN A 1.2.3.4 www 14400 IN CNAME domain.com
    0
  • cPanelMichael
    Hello, Yes, the steps you provided are accurate, but you must also adjust the "A" records as mentioned in the previous post. Thank you.
    0
  • LostNerd
    I've just read your last again. If you are using the cPanel transfer tools, it should make the relevant changes in the DNS zone files for you. But it's always best to check after!
    0
  • stevethemusicma
    Nope, that's not quite right. The Nameservers point to DNS servers. The DNS servers are what hold the A record... If the Nameservers are pointing to your Amazon service, you will then need a DNS server with zone files for each domain. An example A record for domain.com and a CNAME to make www.domain.com work:
    domain.com 14400 IN A 1.2.3.4 www 14400 IN CNAME domain.com

    I'm pretty sure I understand. I just have to make sure that the SOA has the right domain.com in it the CNAME's must have the right domain name and all the A records except for localhost should have the new IP. I'm pretty sure when I transferred some of them it came in automatically but I could be brain dead and I actually might have changed them. The ones I transferred when I first got the AWS have the right zones in the zone file. I believe that the only one I changed manually was the domain on AWS that I used as the new DNS server. for the first move all I did in the registrar's host entries is to change the original IP's to the new Godaddy IP's and create the new host (DNS on the AWS) with the AWS IP. I hope I'm saying this right but I'm pretty sure I understand. This thread of mine sounds like who's on first, what's on second etc :) Thanks, Steve
    0
  • LostNerd
    Hi Steve, This is exactly what the forums are for! As long as in all zone files (/var/named/) have had the old IP replaced with the new one and the nameservers point to your new server, you should be all set in respect to DNS :)
    0
  • stevethemusicma
    thanks so much for your help. Steve
    0
  • stevethemusicma
    I did the transfer yesterday and then changed the hostname DNS's for the older DNS servers and within a few minutes everything resolved OK. Of course this is on Comcast's network. I'm going to give it another 3 days until I shut down the old server but first suspending the sites for a day and then actually shutting it down. Thanks for your support, Steve
    0
  • LostNerd
    Glad to hear everything is going great, Steve! I'll keep an eye on this thread in case of any more DNS questions.
    0
  • stevethemusicma
    I do have one other question please. All the domains that were transferred have a TXT entry in /var/named of domainname.com. IN TXT "v=spf1 ip4:NewIP.NewIP.NewIP.NewIP+a +mx +ip4:OldIP.OldIP.OldIP.OldIP~all" Should the old ip's be removed through the DNS Editor in WHM? Thanks, Steve
    0
  • LostNerd
    Yep. Use the DNS editor to edit these SPF records if they were not automatically done. :)
    0

Please sign in to leave a comment.