Scripting IP Change for an A Record

Discussion in 'DNS Server' started by K, Oct 27, 2009.

  1. K

    K Guest

    Is it possible to script an IP change on an A record?

    I operate the nameservers for my companies public domain name and we have a
    failover solution for our leased line. However, we operate a web server for
    staff and when the line switches in failover the IP address is different.

    My TTL is set very low so that will not be a problem, but the manual process
    of changing the A record is because if the failure happens out of hours we
    won't have staff on site to make the change.

    Thanks
     
    K, Oct 27, 2009
    #1
    1. Advertisements

  2. How will you trigger the new web server to run the script? I would think
    once you knew the new server needed to be registered, you should be able to
    do a simple command from inside a *.cmd file from the new web server.

    ipconfig /registerdns



    --
    Paul Bergson
    MVP - Directory Services
    MCTS, MCT, MCSE, MCSA, Security+, BS CSci
    2008, 2003, 2000 (Early Achiever), NT4
    Microsoft's Thrive IT Pro of the Month - June 2009

    http://www.pbbergs.com

    Please no e-mails, any questions should be posted in the NewsGroup This
    posting is provided "AS IS" with no warranties, and confers no rights.
     
    Paul Bergson [MVP-DS], Oct 27, 2009
    #2
    1. Advertisements

  3. K

    K Guest

    Doing a /registerdns will not work for us for reasons I won't spend time
    going into.

    We don't yet have an automatic way of trigering a command based on the
    trip-over, but are workin gon that part. Just need this part ready for when
    that is sorted. Something as simple as a batch file which pings every
    minute and if it fails it calls a batch file to change the A records would
    probablydo it.

    I do need to script A record IP changes though for it to work.
     
    K, Oct 28, 2009
    #3
  4. pretty hard to help w/o understanding but here is a site with plenty of
    script help. You should be able to find what you need here.

    This is page three, check out "Change DNS the DNS Server Settings on a
    Computer"
    http://gallery.technet.microsoft.co...&f[1].Text=Client-Side Management&pageIndex=3

    --
    Paul Bergson
    MVP - Directory Services
    MCTS, MCT, MCSE, MCSA, Security+, BS CSci
    2008, 2003, 2000 (Early Achiever), NT4
    Microsoft's Thrive IT Pro of the Month - June 2009

    http://www.pbbergs.com

    Please no e-mails, any questions should be posted in the NewsGroup This
    posting is provided "AS IS" with no warranties, and confers no rights.
     
    Paul Bergson [MVP-DS], Oct 28, 2009
    #4


  5. Or even just using the DNSCMD utility?


    --
    Ace

    This posting is provided "AS-IS" with no warranties or guarantees and
    confers no rights.

    Please reply back to the newsgroup or forum for collaboration benefit among
    responding engineers, and to help others benefit from your resolution.

    Ace Fekay, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE & MCSA
    2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer

    For urgent issues, please contact Microsoft PSS directly. Please check
    http://support.microsoft.com for regional support phone numbers.
     
    Ace Fekay [MCT], Oct 28, 2009
    #5
  6. K

    K Guest

    I didn't think DNSCMD could change A record IP addresses?
     
    K, Nov 3, 2009
    #6
  7. Ace Fekay [MCT], Nov 3, 2009
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.