Update a DNS entry from the command line...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm wondering if there is a method that I can use to update a DNS entry from the command line..

I'm wanting to do some low-end failover - basically when a server goes down, and an application sees that, it writes an update to the DNS entry, changing the IP address to another one. See my example..

Normal entries
ServerA 10.1.1.
ServerB 10.1.1.
Common 10.1.1.

Entries upon failure
ServerA 10.1.1.
ServerB 10.1.1.
Common 10.1.1.

Does a command line to do this exist?
 
In
kinan02 said:
I'm wondering if there is a method that I can use to update a DNS
entry from the command line...

I'm wanting to do some low-end failover - basically when a server
goes down, and an application sees that, it writes an update to the
DNS entry, changing the IP address to another one. See my example...

Normal entries:
ServerA 10.1.1.2
ServerB 10.1.1.3
Common 10.1.1.2

Entries upon failure:
ServerA 10.1.1.2
ServerB 10.1.1.3
Common 10.1.1.3

Does a command line to do this exist?


There is a utility called netsh that can help you here.

242468 - How to Use the Netsh.exe Tool and Command-Line Switches:
http://support.microsoft.com/?id=242468



--
Regards,
Ace

Please direct all replies to the newsgroup so all can benefit.
This posting is provided "AS-IS" with no warranties and confers no
rights.

Ace Fekay, MCSE 2000, MCSE+I, MCSA, MCT, MVP
Microsoft Windows MVP - Active Directory

HAM AND EGGS: A day's work for a chicken; A lifetime commitment for a
pig. --
=================================
 
Back
Top