Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > DNS Server > extract in-addr.arpa from DNS

Reply
Thread Tools Display Modes

extract in-addr.arpa from DNS

 
 
Jens Peter
Guest
Posts: n/a

 
      05-13-2009
Is it possible to make a extract in-addr.arpa from DNS.
We have som inaccuracy between forward and reverse lookup zones. I would
like to see all records in reverse lookup so I could compare them with
forward lookups
--
Jens Peter Poulsen
CSC DK
 
Reply With Quote
 
 
 
 
Ace Fekay [Microsoft Certified Trainer]
Guest
Posts: n/a

 
      05-14-2009
"Jens Peter" <> wrote in message news:23F145C9-5101-4E1F-8287-...
> Is it possible to make a extract in-addr.arpa from DNS.
> We have som inaccuracy between forward and reverse lookup zones. I would
> like to see all records in reverse lookup so I could compare them with
> forward lookups
> --
> Jens Peter Poulsen
> CSC DK



You can use the DNSCMD command.

Dnscmd Overview: Domain Name System(DNS)Mar 28, 2003 ... DNSCmd displays and changes the properties of DNS servers, zones, and resource records. It manually modifies these properties, ...
http://technet.microsoft.com/en-us/l.../cc778513.aspx

Dnscmd Examples: Domain Name System(DNS)dnscmd reskit.com /nodedelete test.reskit.com node /tree ... dnscmd reskit.com /zoneexport test.reskit.com test.reskit.com.dns ...
http://technet.microsoft.com/en-us/l.../cc784399.aspx

DNSCMD Reference - The Life of Brian(without the /f, dnscmd asks you if you really want to delete the zone) ... dnscmd /recordadd zonename leftmostpartofrecord TTL restofrecord ...
http://msmvps.com/blogs/ad/archive/2...reference.aspx


--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSA Messaging, MCT
Microsoft Certified Trainer


For urgent issues, you may want to contact Microsoft PSS directly. Please
check http://support.microsoft.com for regional support phone numbers.

"Efficiency is doing things right; effectiveness is doing the right things." - Peter F. Drucker
http://twitter.com/acefekay

 
Reply With Quote
 
Jens Peter
Guest
Posts: n/a

 
      05-15-2009
Thanks, it give me a overview over commands.

But our problem is that we have duplicate PTR records on various DNS name
who not are active in forward DNS.
So to get a overview how many records we have of those, it would be nice to
have a full extract off all in.addr.arpa zones.

2th problem, it's not possible to delete those records, they are coming back
after a short while in the multihome AD DNS, it seem other also has that
problem - but how to solve this?
--
Jens Peter Poulsen
CSC DK


"Ace Fekay [Microsoft Certified Trainer]" wrote:

> "Jens Peter" <> wrote in message news:23F145C9-5101-4E1F-8287-...
> > Is it possible to make a extract in-addr.arpa from DNS.
> > We have som inaccuracy between forward and reverse lookup zones. I would
> > like to see all records in reverse lookup so I could compare them with
> > forward lookups
> > --
> > Jens Peter Poulsen
> > CSC DK

>
>
> You can use the DNSCMD command.
>
> Dnscmd Overview: Domain Name System(DNS)Mar 28, 2003 ... DNSCmd displays and changes the properties of DNS servers, zones, and resource records. It manually modifies these properties, ...
> http://technet.microsoft.com/en-us/l.../cc778513.aspx
>
> Dnscmd Examples: Domain Name System(DNS)dnscmd reskit.com /nodedelete test.reskit.com node /tree ... dnscmd reskit.com /zoneexport test.reskit.com test.reskit.com.dns ...
> http://technet.microsoft.com/en-us/l.../cc784399.aspx
>
> DNSCMD Reference - The Life of Brian(without the /f, dnscmd asks you if you really want to delete the zone) ... dnscmd /recordadd zonename leftmostpartofrecord TTL restofrecord ...
> http://msmvps.com/blogs/ad/archive/2...reference.aspx
>
>
> --
> Ace
>
> This posting is provided "AS-IS" with no warranties or guarantees and
> confers no rights.
>
> Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSA Messaging, MCT
> Microsoft Certified Trainer
>
>
> For urgent issues, you may want to contact Microsoft PSS directly. Please
> check http://support.microsoft.com for regional support phone numbers.
>
> "Efficiency is doing things right; effectiveness is doing the right things." - Peter F. Drucker
> http://twitter.com/acefekay
>
>

 
Reply With Quote
 
Ace Fekay [Microsoft Certified Trainer]
Guest
Posts: n/a

 
      05-15-2009
"Jens Peter" <> wrote in message news:C25C6E26-984A-4817-A28D-...
> Thanks, it give me a overview over commands.
>
> But our problem is that we have duplicate PTR records on various DNS name
> who not are active in forward DNS.
> So to get a overview how many records we have of those, it would be nice to
> have a full extract off all in.addr.arpa zones.
>
> 2th problem, it's not possible to delete those records, they are coming back
> after a short while in the multihome AD DNS, it seem other also has that
> problem - but how to solve this?
> --
> Jens Peter Poulsen
> CSC DK


Are the reverse zone entries that are returning, the DC's additional NIC IPs?

Two things you can do, first configure DHCP to own the records so it can update any records that come in to refresh the record that is already created instead of creating a dupe record.

Second, for the multihomed DC issue, that is a whole different issue. The best thing is to either remove/disable one of the NICs, or you have to configure the DC with multiple registry changes so it doesn't register the unwanted NIC IP address.

The following is how to set DHCP so it will work. If you want the instructions on configuring your multihomed DC, please post back.

================================================== ================================================== ==
================================================== ================================================== ==


DHCP, Dynamic DNS Updates , Scavenging, static entries & timestamps, and the DnsProxyUpdate Group:


--------------------------------------------
The entity that registers it owns the record. The nice thing about DHCP
owning the record is it will update it if DHCP gives the machine a new IP.
Otherwise you'll see multiples of the same in DNS whether scavenging is
enabled or not. I would force DHCP to own the record as well as enable
scavenging to keep it clean. To force DHCP to own the record, you will need
to do the following:

1. Add the DHCP server to the DnsUpdateProxy Group.
2. Force DHCP to register all records, Forward and PTR, (whether a client
machine can do it or not) in the Option 081 tab (DHCP properties, DNS tab).
3. Set Option 015 to the AD domain name (such as example.com).
4. Set Option 006 to only the internal DNS servers.
5. If the zone is set for Secure Updates Only, then DHCP cannot update
non-Microsoft clients and Microsoft clients that are not joined to the
domain. In this case, you will need to create and configure a user account
for use as credentials for DHCP to register such clients.
If your DHCP servers are Windows 2003 or WIndows 2008, Configure a
dedicated the user account you created as credentials in DHCP by going into
DHCP COnsole, DHCP server properties, and on the Advanced tab of the DHCP Server
Properties sheet click the Credentials button, and provide this account info.
The user account does not need any elevated rights, a normal user account
is fine, however I recommend using a Strong non-expiring password on the account.

Once you implement scavenging, you will need to wait at least a week for it to
take effect. You can quicken it up by manually deleting the incorrect records to
get started.

But more importantly, if DHCP is on a DC, it will not overwrite the
original host record for a machine getting a new lease with an IP
formerly belonging to another. To overcome this, add the DHCP server
(the DC) to the DnsProxyUpdate group. This will force DHCP to own
all records it will create moving forward and will update an IP with
a new name in DNS.

With regards to the DnsProxyUpdate Group, this is one method, but normally, for
the most part, it is not advised to use it as it weakens security INCLUDING the
DC records if DHCP is on a DC. Preferably configure DHCP with an account.
This can be done in w2k and w2k3 and up.
For w2k you need to use NETSH
For w2k3 and up can use NETSH or the GUI


If you set this, but when a record shows up in the DHCP Lease list with a pen
(which means that a write is pending), it m ay mean it is trying to register
into a zone that does not exist on the DNS servers. This happens in cases where
the client machine is not joined to the domain and has a missing or different
suffix than the zone in DNS. It can only register into a zone that exists on
DNS and that zone updates have been configured to allow updates.
If this is the case, go into the client machine's IP properties, and
on the DNS tab in TCP/IP properties, clear the "Register this connection's
addresses in DNS" as well as the "Use this connection's DNS suffix in DNS registration"
check boxes, the DHCP Server will fill these in for you and register using
the domain name in Option 015.

Concerning records and timestamps, and lack of timestamps:

If the record was manually created, it won't show a time stamp, however, if
the record was dynamically registered, it will show a time stamp. My guess
is the records you are referring to were manually created. If you manually
create a record, the checkbox will not be checked to scavenge, however if it
was dynamically registered, it will be checked. I just tested this
withWindows 2003 DNS. When I had built a few servers for a customer and let
them auto register, they had a timestamp and the scavenge checkbox was
checked. For the records I manually created, such as internal www records,
and others, they did not have a time stamp and were not checked to scavenge.

Even if you allow auto registration, which I do by default, and it gets
scavenged, it gets re-registered anyway by the OS. Unless you are seeing
something going on that is affecting your environment, the default settings
work fine, at least they do for me for all of my customers and installations
I've worked in that I've set scavenging and forced DHCP to own the records
so it can update the records it had registered at lease refresh time.


The following links provide additional information on how it all works.

How to configure DNS dynamic updates in Windows Server 2003.
http://support.microsoft.com/kb/816592

Using DNS Aging and ScavengingAging and scavenging of stale resource records are features of Domain Name System (DNS) that are available when you deploy your server with primary zones.
http://technet.microsoft.com/en-us/l.../cc757041.aspx

Microsoft Enterprise Networking Team : Don't be afraid of DNS ...Mar 19, 2008 ... DNS Scavenging is a great answer to a problem that has been nagging everyone since RFC 2136 came out way back in 1997.
http://blogs.technet.com/networking/...e-patient.aspx

DHCP, DNS and the DNSUpdateProxy-Group - Directory Services/Active ...I had
a discussion in the Newsgroups lately about DHCP and the
DNSUpdateProxy-Group which is used to write unsecured DNS-Entries to a
DNS-Zone which only ...
http://msmvps.com/ulfbsimonweidner/a.../15/19325.aspx

And from Kevin Goodnecht:
Setting up DHCP for DNS registrations
http://support.wftx.us/setting_up_dh...s_registra.htm

317590 - HOW TO Configure DNS Dynamic Update in Windows 2000 and DNSUpdateProxy Group:
http://support.microsoft.com/?id=317590

816592 - How to configure DNS dynamic updates in Windows Server 2003:
http://support.microsoft.com/kb/816592/

Follow up discussion on the DNSUpdateProxy-Group:
http://msmvps.com/ulfbsimonweidner/a.../26/39841.aspx



================================================== ================================================== ==
================================================== ================================================== ==

Ace


 
Reply With Quote
 
Jens Peter
Guest
Posts: n/a

 
      05-25-2009
Now I've looked at your good suggestions and reviewed the duplicate lapel
record I have. The problem appears to be related to the record containing
uppercase letters, these I can not delete manually.
I've tried to erase a small zone and create it again, it works, but it is
not viable to me to delete all zones containing capitalization - the number
is over 100. Do you have a suggestion?
--
Jens Peter Poulsen
CSC DK


"Ace Fekay [Microsoft Certified Trainer]" wrote:

> "Jens Peter" <> wrote in message news:C25C6E26-984A-4817-A28D-...
> > Thanks, it give me a overview over commands.
> >
> > But our problem is that we have duplicate PTR records on various DNS name
> > who not are active in forward DNS.
> > So to get a overview how many records we have of those, it would be nice to
> > have a full extract off all in.addr.arpa zones.
> >
> > 2th problem, it's not possible to delete those records, they are coming back
> > after a short while in the multihome AD DNS, it seem other also has that
> > problem - but how to solve this?
> > --
> > Jens Peter Poulsen
> > CSC DK

>
> Are the reverse zone entries that are returning, the DC's additional NIC IPs?
>
> Two things you can do, first configure DHCP to own the records so it can update any records that come in to refresh the record that is already created instead of creating a dupe record.
>
> Second, for the multihomed DC issue, that is a whole different issue. The best thing is to either remove/disable one of the NICs, or you have to configure the DC with multiple registry changes so it doesn't register the unwanted NIC IP address.
>
> The following is how to set DHCP so it will work. If you want the instructions on configuring your multihomed DC, please post back.
>
> ================================================== ================================================== ==
> ================================================== ================================================== ==
>
>
> DHCP, Dynamic DNS Updates , Scavenging, static entries & timestamps, and the DnsProxyUpdate Group:
>
>
> --------------------------------------------
> The entity that registers it owns the record. The nice thing about DHCP
> owning the record is it will update it if DHCP gives the machine a new IP.
> Otherwise you'll see multiples of the same in DNS whether scavenging is
> enabled or not. I would force DHCP to own the record as well as enable
> scavenging to keep it clean. To force DHCP to own the record, you will need
> to do the following:
>
> 1. Add the DHCP server to the DnsUpdateProxy Group.
> 2. Force DHCP to register all records, Forward and PTR, (whether a client
> machine can do it or not) in the Option 081 tab (DHCP properties, DNS tab).
> 3. Set Option 015 to the AD domain name (such as example.com).
> 4. Set Option 006 to only the internal DNS servers.
> 5. If the zone is set for Secure Updates Only, then DHCP cannot update
> non-Microsoft clients and Microsoft clients that are not joined to the
> domain. In this case, you will need to create and configure a user account
> for use as credentials for DHCP to register such clients.
> If your DHCP servers are Windows 2003 or WIndows 2008, Configure a
> dedicated the user account you created as credentials in DHCP by going into
> DHCP COnsole, DHCP server properties, and on the Advanced tab of the DHCP Server
> Properties sheet click the Credentials button, and provide this account info.
> The user account does not need any elevated rights, a normal user account
> is fine, however I recommend using a Strong non-expiring password on the account.
>
> Once you implement scavenging, you will need to wait at least a week for it to
> take effect. You can quicken it up by manually deleting the incorrect records to
> get started.
>
> But more importantly, if DHCP is on a DC, it will not overwrite the
> original host record for a machine getting a new lease with an IP
> formerly belonging to another. To overcome this, add the DHCP server
> (the DC) to the DnsProxyUpdate group. This will force DHCP to own
> all records it will create moving forward and will update an IP with
> a new name in DNS.
>
> With regards to the DnsProxyUpdate Group, this is one method, but normally, for
> the most part, it is not advised to use it as it weakens security INCLUDING the
> DC records if DHCP is on a DC. Preferably configure DHCP with an account.
> This can be done in w2k and w2k3 and up.
> For w2k you need to use NETSH
> For w2k3 and up can use NETSH or the GUI
>
>
> If you set this, but when a record shows up in the DHCP Lease list with a pen
> (which means that a write is pending), it m ay mean it is trying to register
> into a zone that does not exist on the DNS servers. This happens in cases where
> the client machine is not joined to the domain and has a missing or different
> suffix than the zone in DNS. It can only register into a zone that exists on
> DNS and that zone updates have been configured to allow updates.
> If this is the case, go into the client machine's IP properties, and
> on the DNS tab in TCP/IP properties, clear the "Register this connection's
> addresses in DNS" as well as the "Use this connection's DNS suffix in DNS registration"
> check boxes, the DHCP Server will fill these in for you and register using
> the domain name in Option 015.
>
> Concerning records and timestamps, and lack of timestamps:
>
> If the record was manually created, it won't show a time stamp, however, if
> the record was dynamically registered, it will show a time stamp. My guess
> is the records you are referring to were manually created. If you manually
> create a record, the checkbox will not be checked to scavenge, however if it
> was dynamically registered, it will be checked. I just tested this
> withWindows 2003 DNS. When I had built a few servers for a customer and let
> them auto register, they had a timestamp and the scavenge checkbox was
> checked. For the records I manually created, such as internal www records,
> and others, they did not have a time stamp and were not checked to scavenge.
>
> Even if you allow auto registration, which I do by default, and it gets
> scavenged, it gets re-registered anyway by the OS. Unless you are seeing
> something going on that is affecting your environment, the default settings
> work fine, at least they do for me for all of my customers and installations
> I've worked in that I've set scavenging and forced DHCP to own the records
> so it can update the records it had registered at lease refresh time.
>
>
> The following links provide additional information on how it all works.
>
> How to configure DNS dynamic updates in Windows Server 2003.
> http://support.microsoft.com/kb/816592
>
> Using DNS Aging and ScavengingAging and scavenging of stale resource records are features of Domain Name System (DNS) that are available when you deploy your server with primary zones.
> http://technet.microsoft.com/en-us/l.../cc757041.aspx
>
> Microsoft Enterprise Networking Team : Don't be afraid of DNS ...Mar 19, 2008 ... DNS Scavenging is a great answer to a problem that has been nagging everyone since RFC 2136 came out way back in 1997.
> http://blogs.technet.com/networking/...e-patient.aspx
>
> DHCP, DNS and the DNSUpdateProxy-Group - Directory Services/Active ...I had
> a discussion in the Newsgroups lately about DHCP and the
> DNSUpdateProxy-Group which is used to write unsecured DNS-Entries to a
> DNS-Zone which only ...
> http://msmvps.com/ulfbsimonweidner/a.../15/19325.aspx
>
> And from Kevin Goodnecht:
> Setting up DHCP for DNS registrations
> http://support.wftx.us/setting_up_dh...s_registra.htm
>
> 317590 - HOW TO Configure DNS Dynamic Update in Windows 2000 and DNSUpdateProxy Group:
> http://support.microsoft.com/?id=317590
>
> 816592 - How to configure DNS dynamic updates in Windows Server 2003:
> http://support.microsoft.com/kb/816592/
>
> Follow up discussion on the DNSUpdateProxy-Group:
> http://msmvps.com/ulfbsimonweidner/a.../26/39841.aspx
>
>
>
> ================================================== ================================================== ==
> ================================================== ================================================== ==
>
> Ace
>
>
>

 
Reply With Quote
 
Ace Fekay [Microsoft Certified Trainer]
Guest
Posts: n/a

 
      05-25-2009
"Jens Peter" <> wrote in message news2CE884F-7675-446E-8732-...
> Now I've looked at your good suggestions and reviewed the duplicate lapel
> record I have. The problem appears to be related to the record containing
> uppercase letters, these I can not delete manually.
> I've tried to erase a small zone and create it again, it works, but it is
> not viable to me to delete all zones containing capitalization - the number
> is over 100. Do you have a suggestion?
> --


Hello Jens,

If there are upper case characters in a record, that simply means the hostname on the machine that is registering has upper case characters. DNS is not case sensitive, but it will honor the case of the name when it registers to mirror the name as it's set.

To fix that, you would have to rename the hosts with the upper case characters.

Ace


 
Reply With Quote
 
Ace Fekay [Microsoft Certified Trainer]
Guest
Posts: n/a

 
      05-26-2009
In news2CE884F-7675-446E-8732-,

> To fix that, you would have to rename the hosts with the upper case
> characters.


Correction and to be a little more concise on my part:
To fix this, you would have to rename the hosts that have upper case characters with lower case characters.

Ace



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alt-d -> Addr bar hmortensen Internet Explorer 5 02-15-2007 07:22 AM
Delete records in arpa Tom DNS Server 0 02-01-2005 02:51 PM
Reverse zone question x.x.x.x Subnet / x. in-addr-arpa? Mike Bonvie DNS Server 3 01-21-2005 01:44 PM
"x.x.x.x Subnet" not "x.in-addr.arpa" Mike Bonvie Server Networking 0 01-20-2005 09:50 PM
172.16.0.x Subnet vs 0.16.172.in-addr.arpa.dns Kirill S. Palagin DNS Server 3 01-16-2004 12:45 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59