Networking Forums

Networking Forums > Computer Networking > Linux Networking > dns update from dhcp server ok for windows clients, not ok for linux (dhclient) clients

Reply
Thread Tools Display Modes

dns update from dhcp server ok for windows clients, not ok for linux (dhclient) clients

 
 
Tom Van Overbeke
Guest
Posts: n/a

 
      08-07-2003, 08:20 AM
Hi,


The subjects says it all (almost):

we have a linux dhcp server (dhcp-3.0pl1-26) happily distributing ip
adresses, and updating our dns server (on a separate linux server, running
bind bind-9.2.1-1.7x.2).

on our windows desktops, we have no problems: they request an ip adress,
obtain it, and via the dhcp server the dns gets updated.

however, i needed to configure a network interface of a linux machine via
dhcp, and although the ip adress is acquired and the network interface is
brought up, somehow the dns does not get updated.

we only allow dns updates from the dhcp server, and i am surprised why there
would be a difference between a linux machine using dhclient to request an
ip adress, and a windows machine.

the /var/log/messages shows no errors from either dns or bind, but a clue
could be that the DHCPREQUEST doesn't seem to send the machine's hostname,
whereas the windows client do seem to send it.


look at these log entries:

this is a windows machine

Aug 6 14:22:22 frontend dhcpd: DHCPREQUEST for 172.21.3.228 from
00:90:27:23:21:88 (atlantis) via eth0
Aug 6 14:22:22 frontend dhcpd: DHCPACK on 172.21.3.228 to 00:90:27:23:21:88
(atlantis) via eth0

and this is from the linux machine

Aug 6 14:35:46 frontend dhcpd: DHCPREQUEST for 172.21.3.250 (172.21.3.2)
from 00:0b:db:d5:5c:7e via eth0
Aug 6 14:35:46 frontend dhcpd: DHCPACK on 172.21.3.250 to 00:0b:db:d5:5c:7e
via eth0

as you can see, the hostname of the linux machine is not displayed after the
mac adress, whereas the windows machine does show it.


Any ideas on how to solve this annoying problem ?


thanks,


Tom.


 
Reply With Quote
 
 
 
 
Jeff
Guest
Posts: n/a

 
      08-07-2003, 02:40 PM
On Thu, 07 Aug 2003 10:20:08 +0200, Tom Van Overbeke wrote:

> Hi,
>
>
> The subjects says it all (almost):
>
> we have a linux dhcp server (dhcp-3.0pl1-26) happily distributing ip
> adresses, and updating our dns server (on a separate linux server, running
> bind bind-9.2.1-1.7x.2).
>
> on our windows desktops, we have no problems: they request an ip adress,
> obtain it, and via the dhcp server the dns gets updated.
>
> however, i needed to configure a network interface of a linux machine via
> dhcp, and although the ip adress is acquired and the network interface is
> brought up, somehow the dns does not get updated.
>
> we only allow dns updates from the dhcp server, and i am surprised why there
> would be a difference between a linux machine using dhclient to request an
> ip adress, and a windows machine.
>
> the /var/log/messages shows no errors from either dns or bind, but a clue
> could be that the DHCPREQUEST doesn't seem to send the machine's hostname,
> whereas the windows client do seem to send it.
>
>
> look at these log entries:
>
> this is a windows machine
>
> Aug 6 14:22:22 frontend dhcpd: DHCPREQUEST for 172.21.3.228 from
> 00:90:27:23:21:88 (atlantis) via eth0
> Aug 6 14:22:22 frontend dhcpd: DHCPACK on 172.21.3.228 to 00:90:27:23:21:88
> (atlantis) via eth0
>
> and this is from the linux machine
>
> Aug 6 14:35:46 frontend dhcpd: DHCPREQUEST for 172.21.3.250 (172.21.3.2)
> from 00:0b:db:d5:5c:7e via eth0
> Aug 6 14:35:46 frontend dhcpd: DHCPACK on 172.21.3.250 to 00:0b:db:d5:5c:7e
> via eth0
>
> as you can see, the hostname of the linux machine is not displayed after the
> mac adress, whereas the windows machine does show it.
>
>
> Any ideas on how to solve this annoying problem ?
>
>
> thanks,
>
>
> Tom.



You need to use the "-h" flag with hostname on the dhcpcd_eth0 line in
/etc/conf.d/net. Like this:

dhcpcd_eth0="-N -R -h mylinuxboxname.fully.qualified.com"

This has to be set on each linux machine requesting dhcp service. It
passes its name request along to dhcpd, which in tern passes it along to
bind.

-Jeff
 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      08-07-2003, 03:04 PM
In article <bgt23r$s4clm$(E-Mail Removed)>,
Tom Van Overbeke wrote:
> the /var/log/messages shows no errors from either dns or bind, but a clue
> could be that the DHCPREQUEST doesn't seem to send the machine's hostname,
> whereas the windows client do seem to send it.


So, send the hostname!

> Any ideas on how to solve this annoying problem ?


The man pages are not that good IMHO, and on my distro one of the
crucial ones is missing for some reason. I think dhclient.conf(5) and
dhcp-options(5) pages may have the syntax you need.

I think it's more straightforward with dhcpcd(8) if you have that. You
can put the hostname on the command line:
dhcpcd -h hostname [-options] interface
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      08-07-2003, 03:24 PM
Please trim your excess quotes!

In article <(E-Mail Removed)>, Jeff wrote:
> On Thu, 07 Aug 2003 10:20:08 +0200, Tom Van Overbeke wrote:
>> we only allow dns updates from the dhcp server, and i am surprised why there
>> would be a difference between a linux machine using dhclient to request an
>> ip adress, and a windows machine.

[but nothing to indicate what distribution this Linux client uses]
>
> You need to use the "-h" flag with hostname on the dhcpcd_eth0 line in
> /etc/conf.d/net. Like this:


What is /etc/conf.d? Whilst deceptive coding is always possible, one
rarely sees it in Linux distributions' shell scripts. So one might
reason safely that a "dhcpcd_eth0" variable would apply to the use of
dhcpcd on eth0.

Do you know what distro Tom uses? It wasn't mentioned nor even hinted
AFAICT in his post. Do you know what dhclient is?

> dhcpcd_eth0="-N -R -h mylinuxboxname.fully.qualified.com"
>
> This has to be set on each linux machine requesting dhcp service. It


What if the client has no /etc/conf.d? What if the client wants a DHCP-
provided ntp.conf and/or resolv.conf?
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
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
Windows Server 2008 64 Bit File Cluster and Linux Clients Anthony Steer Windows Networking 0 07-25-2008 09:47 AM
Windows clients unable to obtain DHCP lease after server move. techjohnny@gmail.com Linux Networking 9 06-05-2008 04:35 PM
[Click the star to watch this topic] how much time i have if i want to migrate a server with clients connected wo clients noticing it will_u_tellmemore Linux Networking 0 12-28-2006 01:21 PM
Windows 2003 DHCP with 98 clients Tim Cornett Windows Networking 2 02-02-2004 01:51 PM
linux clients for W2K domains. (key words samba kerberos ldap winbind clients) nerak99 Linux Networking 0 01-17-2004 02:21 PM



1 2 3 4 5 6 7 8 9 10 11