Change IP address in DNS for all at once

Discussion in 'Installation/Configuration' started by czdavid, Jan 31, 2014.

  1. czdavid

    czdavid Member

    Hello,

    I have to migrate server to new provider and I will have new IPs.
    Is possible by some way change all IP adresses at once?
    For example in MySQL or by some script in zone files?

    I have hundreds of DNS record with that IP address. :(


    For example: I need change from IP 94.23.xx.xx to IP 87.52.xx.xx

    Thank you very much.
     
  2. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    Run this for each changed IP

    Code:
    UPDATE dbispconfig.dns_rr SET data = '87.52.xx.yy' WHERE dns_rr.data ='94.23.xx.yy';
    Afterwards user the resync-tool for the dns-zones.
     
  3. czdavid

    czdavid Member

    Thank you very much!

    How can I run DNS reset tool - what is exact command?
     
  4. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    tools -> resync
     
  5. czdavid

    czdavid Member

    Ok, I understand now.

    Thank you!
     

Share This Page