FAQWindows-Expert.com Forum Index  •   FAQFAQ  •  SearchSearch
Windows-Expert.com
Find Windows Problems and Solutions
 
Scripting IP Change for an A Record
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Windows-Expert.com Forum Index -> Server DNS
View previous topic :: View next topic  
Author Message
K
Guest





PostPosted: Tue Oct 27, 2009 6:54 am    Post subject: Scripting IP Change for an A Record Reply with quote

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
Back to top
Paul Bergson [MVP-DS]
Guest





PostPosted: Tue Oct 27, 2009 11:18 am    Post subject: Re: Scripting IP Change for an A Record Reply with quote

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" <no@nospam.com> wrote in message
news:OxPxmqtVKHA.4284@TK2MSFTNGP06.phx.gbl...
Quote:
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
Back to top
Guest
Guest



Posts
Location

PostPosted: Tue Oct 27, 2009 11:18 am    Post subject: Google Ads Reply with quote

Back to top
K
Guest





PostPosted: Wed Oct 28, 2009 7:04 am    Post subject: Re: Scripting IP Change for an A Record Reply with quote

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%23vVKHA.4140@TK2MSFTNGP06.phx.gbl...
Quote:
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" <no@nospam.com> wrote in message
news:OxPxmqtVKHA.4284@TK2MSFTNGP06.phx.gbl...
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


Back to top
Paul Bergson [MVP-DS]
Guest





PostPosted: Wed Oct 28, 2009 11:36 am    Post subject: Re: Scripting IP Change for an A Record Reply with quote

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/ScriptCenter/en-us/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=networking&f%5B0%5D.Text=Networking&f%5B1%5D.Type=SubCategory&f%5B1%5D.Value=clientside&f%5B1%5D.Text=Client-Side%20Management&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" <no@nospam.com> wrote in message
news:OcrHDV6VKHA.220@TK2MSFTNGP02.phx.gbl...
Quote:
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%23vVKHA.4140@TK2MSFTNGP06.phx.gbl...
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" <no@nospam.com> wrote in message
news:OxPxmqtVKHA.4284@TK2MSFTNGP06.phx.gbl...
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




Back to top
Ace Fekay [MCT]
Guest





PostPosted: Wed Oct 28, 2009 3:03 pm    Post subject: Re: Scripting IP Change for an A Record Reply with quote

"Paul Bergson [MVP-DS]" <pbbergs@no_spammsn.com> wrote in message
news:%23%23Ot5s8VKHA.2932@TK2MSFTNGP04.phx.gbl...
Quote:
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/ScriptCenter/en-us/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=networking&f%5B0%5D.Text=Networking&f%5B1%5D.Type=SubCategory&f%5B1%5D.Value=clientside&f%5B1%5D.Text=Client-Side%20Management&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.
Back to top
K
Guest





PostPosted: Tue Nov 03, 2009 9:30 am    Post subject: Re: Scripting IP Change for an A Record Reply with quote

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


"Ace Fekay [MCT]" <aceman@mvps.RemoveThisPart.org> wrote in message
news:OkPwgg%23VKHA.4816@TK2MSFTNGP06.phx.gbl...
Quote:
"Paul Bergson [MVP-DS]" <pbbergs@no_spammsn.com> wrote in message
news:%23%23Ot5s8VKHA.2932@TK2MSFTNGP04.phx.gbl...
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/ScriptCenter/en-us/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=networking&f%5B0%5D.Text=Networking&f%5B1%5D.Type=SubCategory&f%5B1%5D.Value=clientside&f%5B1%5D.Text=Client-Side%20Management&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.
Back to top
Ace Fekay [MCT]
Guest





PostPosted: Tue Nov 03, 2009 2:43 pm    Post subject: Re: Scripting IP Change for an A Record Reply with quote

"K" <no@nospam.com> wrote in message
news:%23KR49CHXKHA.1236@TK2MSFTNGP05.phx.gbl...
Quote:
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/library/cc756116(WS.10).aspx

Ace
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Windows-Expert.com Forum Index -> Server DNS All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Topic Links: syslog
Powered by phpBB © 2001, 2005 phpBB Group