Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Modifying all DNS records

Discussion in 'Bind/DNS/Nameserver' started by zeromtrx, Oct 25, 2003.

  1. zeromtrx

    zeromtrx Member

    Joined:
    Jun 7, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    I will be moving clients from an old server to a new server this week and I want to update all the DNS records after I move the data so the customers will "see" the new server in 4 hours instead of 24-72 hours. Is there an easy way to do this? I thought I could just search and replace the bind config but alas all the zone entries are separate files. I will do them all by hand if I must but certainly there must be an easier way to accomplish this.

    Thanks in advance!
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    166
    Be sure to make backups & also be sure that the last octet in your customers' IPs remain the same.

    Once the above is completed, you can use something like this to modify all zone files:
    Code:
    replace 10.10.10 20.20.20 -- /var/named/namedb/*
    Note that 10.10.10 is the IP your clients currently have & 20.20.20 is the IP they should have. Again, the last octet of their IP address should remain the same between allocations in order to facilitate this renumbering process.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. zeromtrx

    zeromtrx Member

    Joined:
    Jun 7, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    Actually all these accounts are sharing one IP so I won't have to bother with trying to match up old IPs to new IPs.

    Thanks for the help!
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice