Update a DNS entry from the command line...

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?
 
A

Ace Fekay [MVP]

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

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. After that, you can post your question and our members will help you out.

Ask a Question

Top