Re: dns cleanup - delete all PTR records refering to a certain hostname
- From: "Kevin D. Goodknecht Sr. [MVP]" <admin@xxxxxxxxxxxxxx>
- Date: Wed, 19 Apr 2006 10:50:19 -0500
roman sommer wrote:
hello everyone,
I am writing a perl script which is (securely) updating A and PTR
records of *nix clients in a Microsoft environment (Microsoft Windows
2003 R2 servers in native mode). I need to know how Windows clients
update their PTR record. As far as I can see I can only query for an
ip address and get a hostname in return. I want to make sure I delete
*all* PTR resource records refering to a specific hostname before
adding the new one. To cut a long story short: "my hostname is
samehost.example.domain.com, delete all my existing PTR records".
If PTR records where registered by hostname it might work, but PTRs are
registered by IP number, not the data it contains. Just like A records,
which can have many records with the same name but different IPs, you can
have many PTRs with the same name, with different hostnames.
It would be unfeasible to lookup an A record by it IP, and it is unfeasible
to lookup a PTR by its hostname.
The problem is when a host leaves its PTR behind when it gets a new IP, it
cannot update the previous PTR because it no longer has the IP and doesn't
know it had it. So, it creates another.
I think the real trick would be having the client remove the record before
it gets disconnected. Laptop users are notorious for this and it is
unenforceable on them.
Two ways to keep the reverse lookup zone clean are; 1, enable scavenging on
the zone which is going to have some outdated PTRs; 2, Make the DHCP server
owner of all records and responsible for all registration so it can remove
old records as the lease expires.
As far as I can see Windows clients don't care about old PTR recordsYour first statement is true, the question can only be answered if you knew
either. Or does it appear like that because they were added manually
for testing purposes?
someone was actually doing this.
--
Best regards,
Kevin D. Goodknecht Sr. [MVP]
Hope This Helps
===================================
When responding to posts, please "Reply to Group"
via your newsreader so that others may learn and
benefit from your issue, to respond directly to
me remove the nospam. from my email address.
===================================
http://www.lonestaramerica.com/
http://support.wftx.us/
https://secure.lsaol.com/
===================================
Use Outlook Express?... Get OE_Quotefix:
It will strip signature out and more
http://home.in.tum.de/~jain/software/oe-quotefix/
===================================
Keep a back up of your OE settings and folders
with OEBackup:
http://www.oehelp.com/OEBackup/Default.aspx
===================================
.
- Follow-Ups:
- Re: dns cleanup - delete all PTR records refering to a certain hostname
- From: roman sommer
- Re: dns cleanup - delete all PTR records refering to a certain hostname
- References:
- dns cleanup - delete all PTR records refering to a certain hostname
- From: roman sommer
- dns cleanup - delete all PTR records refering to a certain hostname
- Prev by Date: using an internal dns name for which we don't own the external registration
- Next by Date: Secondary DNS Zone for Delegated Authority?
- Previous by thread: dns cleanup - delete all PTR records refering to a certain hostname
- Next by thread: Re: dns cleanup - delete all PTR records refering to a certain hostname
- Index(es):
Relevant Pages
|