Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > DNS Server > Scripting IP Change for an A Record

Reply
Thread Tools Display Modes

Scripting IP Change for an A Record

 
 
K
Guest
Posts: n/a

 
      10-27-2009

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


 
Reply With Quote
 
 
 
 
Paul Bergson [MVP-DS]
Guest
Posts: n/a

 
      10-27-2009
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.

"K" <> wrote in message
news:...
> 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
>



 
Reply With Quote
 
K
Guest
Posts: n/a

 
      10-28-2009
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.



"Paul Bergson [MVP-DS]" <pbbergs@no_spammsn.com> wrote in message
news:eDCcQ%...
> 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.
>
> "K" <> wrote in message
> news:...
>> 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
>>

>
>



 
Reply With Quote
 
Paul Bergson [MVP-DS]
Guest
Posts: n/a

 
      10-28-2009
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.com...nt&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.

"K" <> wrote in message
news:...
> 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.
>
>
>
> "Paul Bergson [MVP-DS]" <pbbergs@no_spammsn.com> wrote in message
> news:eDCcQ%...
>> 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.
>>
>> "K" <> wrote in message
>> news:...
>>> 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
>>>

>>
>>

>
>



 
Reply With Quote
 
Ace Fekay [MCT]
Guest
Posts: n/a

 
      10-28-2009

"Paul Bergson [MVP-DS]" <pbbergs@no_spammsn.com> wrote in message
news:%23%...
> 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.com...nt&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




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.


 
Reply With Quote
 
K
Guest
Posts: n/a

 
      11-03-2009

I didn't think DNSCMD could change A record IP addresses?


"Ace Fekay [MCT]" <> wrote in message
news:OkPwgg%...
> "Paul Bergson [MVP-DS]" <pbbergs@no_spammsn.com> wrote in message
> news:%23%...
>> 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.com...nt&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

>
>
>
> 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.
>



 
Reply With Quote
 
Ace Fekay [MCT]
Guest
Posts: n/a

 
      11-03-2009
"K" <> wrote in message
news:%...
>I didn't think DNSCMD could change A record IP addresses?
>


No, not directly. You would have to run a dnscmd recorddelete, then a dnscmd
recordadd.

The following is a list of DNSCMD commands and syntax:
http://technet.microsoft.com/en-us/l...16(WS.10).aspx

Ace



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
chkdsk : NTFS on Vista x64 Nigel Windows Vista File Management 5 06-02-2008 02:02 PM
Vista machine cannot change domain password admin Windows Vista Administration 1 01-24-2008 12:36 PM
Re: I can't change my desktop background Ramesh, MS-MVP Windows Vista Performance 0 01-20-2008 06:01 AM
Can't change my wallpaper in Vista. billyv1988@yahoo.com Windows Vista Performance 0 11-28-2007 01:47 AM
Admistration updating or name change cherokeeblade Windows Vista Administration 0 04-20-2007 11:48 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59