Using dnscmd to Add and Delete records

  • Thread starter Thread starter Al
  • Start date Start date
A

Al

I am using dnscmd to add and delete A records to our domain the commands
both complete successfully, but after a /RecordDelete when you ping the just
removed host you still resolve the ip address which was just deleted.
However when you check from the console the record is indeed deleted.
/ZoneWriteback, /ZoneRefresh or /ZoneReload seem to have no effect.

Is there a setting I am missing on the Server?
 
Hi Al

It's probably because the requests is cached locally. After the deletion,
try an

ipconfig /flushdns

The test.

HTH
--
Mark Renoden [MSFT]
Windows Platform Support Team
Email: (e-mail address removed)

Please note you'll need to strip ".online" from my email address to email
me; I'll post a response back to the group.

This posting is provided "AS IS" with no warranties, and confers no rights.
 
If Mark is correct (sounds possible to me) AND
you are performing the test ON the DNS server you
might as well just turn off and disable the DNS Client
service.

There is little point is caching something twice ON
THE SAME (server) machine.

If however you are testing from another machine where
the DNS server is not running, the DNS Client will
likely benefit you and you will want to use the:

ipconfig /flushDNS

Another possibility, is that your client settings are pointing
to another DNS server (instead or also).

--
Herb Martin


Mark Renoden said:
Hi Al

It's probably because the requests is cached locally. After the deletion,
try an

ipconfig /flushdns

The test.

HTH
--
Mark Renoden [MSFT]
Windows Platform Support Team
Email: (e-mail address removed)

Please note you'll need to strip ".online" from my email address to email
me; I'll post a response back to the group.

This posting is provided "AS IS" with no warranties, and confers no rights.

Al said:
I am using dnscmd to add and delete A records to our domain the commands
both complete successfully, but after a /RecordDelete when you ping the
just
removed host you still resolve the ip address which was just deleted.
However when you check from the console the record is indeed deleted.
/ZoneWriteback, /ZoneRefresh or /ZoneReload seem to have no effect.

Is there a setting I am missing on the Server?
 
Thanks for your suggestion Mark, however that does not solve the problem. I
think the data is cached somewhere, becuase with a /ZoneWriteback you can
actually see that the record is deleted from the DNS file. Still the remote
machines keep resolving the name to the deleted ip address

What I am trying to accomplish is to be able to connect to our customers
remotely, but since their ip addresses change all the time we have written a
script which checks their ip address and if it is different we want it to be
written to our DNS server, so that we can always access their machines. I
think the "dnscmd" tool should be the best tool for this, but would a WMI
scipt be any different?


Mark Renoden said:
Hi Al

It's probably because the requests is cached locally. After the deletion,
try an

ipconfig /flushdns

The test.

HTH
--
Mark Renoden [MSFT]
Windows Platform Support Team
Email: (e-mail address removed)

Please note you'll need to strip ".online" from my email address to email
me; I'll post a response back to the group.

This posting is provided "AS IS" with no warranties, and confers no rights.

Al said:
I am using dnscmd to add and delete A records to our domain the commands
both complete successfully, but after a /RecordDelete when you ping the
just
removed host you still resolve the ip address which was just deleted.
However when you check from the console the record is indeed deleted.
/ZoneWriteback, /ZoneRefresh or /ZoneReload seem to have no effect.

Is there a setting I am missing on the Server?
 
I had forgotten to change the TTL from the default one hour. All good Now.


Mark Renoden said:
Hi Al

It's probably because the requests is cached locally. After the deletion,
try an

ipconfig /flushdns

The test.

HTH
--
Mark Renoden [MSFT]
Windows Platform Support Team
Email: (e-mail address removed)

Please note you'll need to strip ".online" from my email address to email
me; I'll post a response back to the group.

This posting is provided "AS IS" with no warranties, and confers no rights.

Al said:
I am using dnscmd to add and delete A records to our domain the commands
both complete successfully, but after a /RecordDelete when you ping the
just
removed host you still resolve the ip address which was just deleted.
However when you check from the console the record is indeed deleted.
/ZoneWriteback, /ZoneRefresh or /ZoneReload seem to have no effect.

Is there a setting I am missing on the Server?
 
Back
Top