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.

DNS Issues After Move

Discussion in 'Bind / DNS / Nameserver Issues' started by Camiikaze, Mar 28, 2007.

  1. Camiikaze

    Camiikaze Registered

    Joined:
    May 1, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    We're having an issue with DNS on accounts after moving them to a new server in the same network. Both old and new server are using the same master DNS servers.

    Problem is, once the transfer is done, if you view the DNS entry for the site on the new server, the IP's have all been updated. The master NS however are still using the old record.

    Viewing each record and hitting save solves the problem, which is OK for single moves, but not so good when it's a mass move :(

    Any ideas?

    Thanks!
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Have you updated the IP address for the nameservers at your registrar?

    This is the basic procedure in a nutshell ...

    1. Setup new server

    2. Copy accounts from old server to new server

    3. If necessary, update IP's in /var/named/*.db on new server

    Code:
    replace "x.x.x.x" "y.y.y.y" -- *.db
    4. Go to your registrar for the DNS server domain and update the IPs on the DNS servers

    5. After about 72 hours, you can start deleting accounts from the old server


    Doing things this way, the transfer from your old server to the new server will be
    pretty much seamless for your customers with no downtime and you don't have
    much to update from an administrator perspective.

    The only issue to note that any account changes during the 72 hour window will
    likely be undone so it is a good idea to warn your customers not to be uploading
    or deleting any files from their hosting accounts during the transfer period.



    PS: The reason you have been having been having to open and save DNS is because
    the serial number for the zone is probably newer on the old server and when you
    open and save the zone file, you are updating the serial number if you want
    to know the technical reasons why that is working that way.
     
    #2 Spiral, Mar 28, 2007
    Last edited: Mar 28, 2007
  3. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    posted this above this thread --- but this should help

    In many of the forums - I have read " make sure to update your serial number after making a mass update to DSN"

    the question is How?

    first Make sure your in the directory /var/named

    SEE BELOW FOR BACKUP DIRECTIONS FIRST !!!!

    using the sed command you can do this very easily

    After the 200 add the year, month,day and then add 1 each time you make a change
    this is for April 6 2007 change # 10 for the day

    Code:
    sed -i 's/200[0-9]\{7\}/2007040610/g' *.db*
    -----------------

    Now lets say you want to update that pesky 3600000 TTL for SOA --- as shown in DNS stuff...
    from cli run:

    Code:
     /usr/bin/replace '3600000' '1209600' -- /var/named/*.db
    To replace that pesky little 86400 TTL for SOA as shown in DNSstuff.com ... from cli run:

    Code:
     /usr/bin/replace '86400' '1200' -- /var/named/*.db
    
    If you need to change from an old nameserver name to a new one for all domain zones - from cli run:

    Code:
     /usr/bin/replace 'ns.oldname.com' 'ns.newdnsname.com' -- /var/named/*.db
    (changing oldname.com and newdnsname.com to what yours were / are...

    run that for ns2, ns3, etc... as needed.


    Hope that helps

    PS - it is wise to first copy into a backup

    to do this

    Code:
    mkdir /var/named/backup
    
    cp /var/named/*.db /var/named/backup/
    
    
     
    #3 hostmedic, Apr 5, 2007
    Last edited: Apr 5, 2007
  4. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    ps spiral ... like yours as well

    duplicate -
     
    #4 hostmedic, Apr 5, 2007
    Last edited: Apr 5, 2007
  5. MN-Robert

    MN-Robert Well-Known Member

    Joined:
    Feb 19, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    It's a bug I reported it a year ago
     
  6. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    We have seen this for about a year and cPanel has yet to correct it. This is a big issue, especially for larger providers that need to transfer accounts often.

     
Loading...

Share This Page