Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > DNS Server > DNS update : DHCP or Client

Reply
Thread Tools Display Modes

DNS update : DHCP or Client

 
 
Luca
Guest
Posts: n/a

 
      07-14-2009
Hi,
I would like to know in the case where a PC is configured to use dhcp but to
update it's A record in DNS (Register this connection's addresses in DNS)
and at the same time DHCP is configured to (Always dynamically update DNS A &
PTR record).
Which one of them (PC or dhcp) will actually update the A record ?
Note : DNS is AD integrated and Secure Only.

Thanks for assistance,
Luca
 
Reply With Quote
 
 
 
 
Chris Dent
Guest
Posts: n/a

 
      07-14-2009

Hi Luca,

The DHCP Server updates the record in that instance. It takes precedence
over any client settings.

Only if you told the DHCP server not to update would the DHCP Client
service perform the update.

Chris

Luca wrote:
> Hi,
> I would like to know in the case where a PC is configured to use dhcp but to
> update it's A record in DNS (Register this connection's addresses in DNS)
> and at the same time DHCP is configured to (Always dynamically update DNS A &
> PTR record).
> Which one of them (PC or dhcp) will actually update the A record ?
> Note : DNS is AD integrated and Secure Only.
>
> Thanks for assistance,
> Luca

 
Reply With Quote
 
Luca
Guest
Posts: n/a

 
      07-14-2009
Thanks Chris,
May I ask another question ?
In our case I see in the dhcp logs regularly "DNS update failed" and see
that DNS is not updated consistently, that is: when workstations connect they
get an IP from dhcp and their DNS "A" & "PTR" record is created successfully,
but then if the workstations is moved to a new subnet (ie. laptops moving
between wireless and wired network) they register correctly with dhcp and get
an IP but their record is not updated in DNS. The PC functions correctly, but
if one looks for the PC by FQDN the DNS returns the old address instead of
the new one.

I am running out of ideas about how to address this issue, any hints would
be most welcome.

Luca

"Chris Dent" wrote:

>
> Hi Luca,
>
> The DHCP Server updates the record in that instance. It takes precedence
> over any client settings.
>
> Only if you told the DHCP server not to update would the DHCP Client
> service perform the update.
>
> Chris
>
> Luca wrote:
> > Hi,
> > I would like to know in the case where a PC is configured to use dhcp but to
> > update it's A record in DNS (Register this connection's addresses in DNS)
> > and at the same time DHCP is configured to (Always dynamically update DNS A &
> > PTR record).
> > Which one of them (PC or dhcp) will actually update the A record ?
> > Note : DNS is AD integrated and Secure Only.
> >
> > Thanks for assistance,
> > Luca

>

 
Reply With Quote
 
Chris Dent
Guest
Posts: n/a

 
      07-15-2009

I thought I'd posted a response to this yesterday, sorry for the delay
getting back to you.

Typically, if you have 2 DHCP servers, and if they both run MS DHCP they
should be configured with fixed credentials for performing updates.

To set credentials you'll need to create a regular user account, then
open the DHCP console, select the server properties then Advanced. The
Add the username and password into the Credentials option.

If they don't both run MS DHCP then you choices are a bit more limited.
My preferred option would be to stop the current DHCP server updating
DNS. Once done the client will issue Refresh Requests via the DHCP
Client service (anything from Windows 2000 and up will be able to do this).

In both cases the change can take a while to kick in as the new
credentials will not have permission to update / refresh records created
before the credentials were set.

If you have Aging and Scavenging configured that just requires a bit of
patience.

The other options are DNSUpdateProxy or allowing non-secure dynamic
updates. I would avoid these unless clients updating is not an option or
impractical.

Chris


Luca wrote:
> Thanks Chris,
> May I ask another question ?
> In our case I see in the dhcp logs regularly "DNS update failed" and see
> that DNS is not updated consistently, that is: when workstations connect they
> get an IP from dhcp and their DNS "A" & "PTR" record is created successfully,
> but then if the workstations is moved to a new subnet (ie. laptops moving
> between wireless and wired network) they register correctly with dhcp and get
> an IP but their record is not updated in DNS. The PC functions correctly, but
> if one looks for the PC by FQDN the DNS returns the old address instead of
> the new one.
>
> I am running out of ideas about how to address this issue, any hints would
> be most welcome.
>
> Luca
>
> "Chris Dent" wrote:
>
>> Hi Luca,
>>
>> The DHCP Server updates the record in that instance. It takes precedence
>> over any client settings.
>>
>> Only if you told the DHCP server not to update would the DHCP Client
>> service perform the update.
>>
>> Chris
>>
>> Luca wrote:
>>> Hi,
>>> I would like to know in the case where a PC is configured to use dhcp but to
>>> update it's A record in DNS (Register this connection's addresses in DNS)
>>> and at the same time DHCP is configured to (Always dynamically update DNS A &
>>> PTR record).
>>> Which one of them (PC or dhcp) will actually update the A record ?
>>> Note : DNS is AD integrated and Secure Only.
>>>
>>> Thanks for assistance,
>>> Luca

 
Reply With Quote
 
Ace Fekay [MCT]
Guest
Posts: n/a

 
      07-15-2009
"Chris Dent" <> wrote in message
news:%...
>
> I thought I'd posted a response to this yesterday, sorry for the delay
> getting back to you.
>
> Typically, if you have 2 DHCP servers, and if they both run MS DHCP they
> should be configured with fixed credentials for performing updates.
>
> To set credentials you'll need to create a regular user account, then open
> the DHCP console, select the server properties then Advanced. The Add the
> username and password into the Credentials option.
>
> If they don't both run MS DHCP then you choices are a bit more limited. My
> preferred option would be to stop the current DHCP server updating DNS.
> Once done the client will issue Refresh Requests via the DHCP Client
> service (anything from Windows 2000 and up will be able to do this).
>
> In both cases the change can take a while to kick in as the new
> credentials will not have permission to update / refresh records created
> before the credentials were set.
>
> If you have Aging and Scavenging configured that just requires a bit of
> patience.
>
> The other options are DNSUpdateProxy or allowing non-secure dynamic
> updates. I would avoid these unless clients updating is not an option or
> impractical.
>
> Chris


Chris, good point about previous records. Luca may choose to delete the
older records and allow the workstations to refresh their records, as well
as institute DNS Scavenging using the default 7 day values.

Ace


 
Reply With Quote
 
Luca
Guest
Posts: n/a

 
      07-20-2009
Hi Chris,
Sorry for the late response, busy days.
Actually both servers run MS dhcp and are set to use a specific account (the
same), the account is also a member of DnsUpdateProxy group and yet after the
first DNS registration the subsequent registrations fail.
Luca

"Chris Dent" wrote:

>
> I thought I'd posted a response to this yesterday, sorry for the delay
> getting back to you.
>
> Typically, if you have 2 DHCP servers, and if they both run MS DHCP they
> should be configured with fixed credentials for performing updates.
>
> To set credentials you'll need to create a regular user account, then
> open the DHCP console, select the server properties then Advanced. The
> Add the username and password into the Credentials option.
>
> If they don't both run MS DHCP then you choices are a bit more limited.
> My preferred option would be to stop the current DHCP server updating
> DNS. Once done the client will issue Refresh Requests via the DHCP
> Client service (anything from Windows 2000 and up will be able to do this).
>
> In both cases the change can take a while to kick in as the new
> credentials will not have permission to update / refresh records created
> before the credentials were set.
>
> If you have Aging and Scavenging configured that just requires a bit of
> patience.
>
> The other options are DNSUpdateProxy or allowing non-secure dynamic
> updates. I would avoid these unless clients updating is not an option or
> impractical.
>
> Chris
>
>
> Luca wrote:
> > Thanks Chris,
> > May I ask another question ?
> > In our case I see in the dhcp logs regularly "DNS update failed" and see
> > that DNS is not updated consistently, that is: when workstations connect they
> > get an IP from dhcp and their DNS "A" & "PTR" record is created successfully,
> > but then if the workstations is moved to a new subnet (ie. laptops moving
> > between wireless and wired network) they register correctly with dhcp and get
> > an IP but their record is not updated in DNS. The PC functions correctly, but
> > if one looks for the PC by FQDN the DNS returns the old address instead of
> > the new one.
> >
> > I am running out of ideas about how to address this issue, any hints would
> > be most welcome.
> >
> > Luca
> >
> > "Chris Dent" wrote:
> >
> >> Hi Luca,
> >>
> >> The DHCP Server updates the record in that instance. It takes precedence
> >> over any client settings.
> >>
> >> Only if you told the DHCP server not to update would the DHCP Client
> >> service perform the update.
> >>
> >> Chris
> >>
> >> Luca wrote:
> >>> Hi,
> >>> I would like to know in the case where a PC is configured to use dhcp but to
> >>> update it's A record in DNS (Register this connection's addresses in DNS)
> >>> and at the same time DHCP is configured to (Always dynamically update DNS A &
> >>> PTR record).
> >>> Which one of them (PC or dhcp) will actually update the A record ?
> >>> Note : DNS is AD integrated and Secure Only.
> >>>
> >>> Thanks for assistance,
> >>> Luca

>

 
Reply With Quote
 
Ace Fekay [MCT]
Guest
Posts: n/a

 
      07-20-2009
"Luca" <> wrote in message news:BB7D60BC-6ED7-47C7-95BF-...
> Hi Chris,
> Sorry for the late response, busy days.
> Actually both servers run MS dhcp and are set to use a specific account (the
> same), the account is also a member of DnsUpdateProxy group and yet after the
> first DNS registration the subsequent registrations fail.
> Luca


Did you add credentials to both DHCP servers? Have you confirmed this took effect, and in fact the first registration attempt was actually owned by DHCP, and not the workstation? If it didn't take effect, then that means DHCP still doesn't own the record, therefore cannot update it.

Ace


 
Reply With Quote
 
Luca
Guest
Posts: n/a

 
      07-20-2009

Hi Ace,
Yes both servers have the same credentials. For testing purposes we actually
deleted all traces in dhcp and dns of a specific PC, and repeated the process
and can reproduce the error.

"Ace Fekay [MCT]" wrote:

> "Luca" <> wrote in message news:BB7D60BC-6ED7-47C7-95BF-...
> > Hi Chris,
> > Sorry for the late response, busy days.
> > Actually both servers run MS dhcp and are set to use a specific account (the
> > same), the account is also a member of DnsUpdateProxy group and yet after the
> > first DNS registration the subsequent registrations fail.
> > Luca

>
> Did you add credentials to both DHCP servers? Have you confirmed this took effect, and in fact the first registration attempt was actually owned by DHCP, and not the workstation? If it didn't take effect, then that means DHCP still doesn't own the record, therefore cannot update it.
>
> Ace
>
>
>

 
Reply With Quote
 
Ace Fekay [MCT]
Guest
Posts: n/a

 
      07-20-2009

"Luca" <> wrote in message news:8A6D8FF6-8008-4284-BDDA-...
> Hi Ace,
> Yes both servers have the same credentials. For testing purposes we actually
> deleted all traces in dhcp and dns of a specific PC, and repeated the process
> and can reproduce the error.


If you add the DHCP servers themselves to the DnsUpdateProxy group, does it work?

Ace


 
Reply With Quote
 
Luca
Guest
Posts: n/a

 
      07-21-2009
Yes, we had the servers in there also but the result was the same.
Should we give any specific permission to DnsUpdateProxy group or is it
built-in?

A few notes about DNS config, Both DNS & DHCP are installed on the domain
controllers.
The AD domain is called let’s say “MyCo.Local” (single domain), in terms of
DNS locations are identified by a location id ex. NewYork would be “NY”
giving us the DNS suffix “ny.myco.local”.
PCs are joining the AD domain “MyCo.Local” but dhcp is providing
“ny.myco.local” as DNS suffix and registering them as “pcname.ny.myco.local”.
Could the problem be in the above ?


"Ace Fekay [MCT]" wrote:

> "Luca" <> wrote in message news:8A6D8FF6-8008-4284-BDDA-...
> > Hi Ace,
> > Yes both servers have the same credentials. For testing purposes we actually
> > deleted all traces in dhcp and dns of a specific PC, and repeated the process
> > and can reproduce the error.

>
> If you add the DHCP servers themselves to the DnsUpdateProxy group, does it work?
>
> 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
DHCP CLient jhugery Server Networking 0 06-04-2007 03:19 PM
DHCP client still looks for the failed dhcp server for renewal frankcvc Server Networking 1 11-05-2006 06:30 PM
DHCP cannot update A records for DNS client. Linx DNS Server 2 06-22-2005 06:21 PM
Linux DHCP/DNS client dynamic update in Windows 2003 DNS does not Reinhard Achatz DNS Server 5 06-20-2005 03:07 PM
DHCP client Stevinski Virtual PC 1 02-20-2004 12:42 AM



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