Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93625 - dhcpcd uses dhcp option domain-name to set NIS domain, but dhcp has nis-domain for this
Summary: dhcpcd uses dhcp option domain-name to set NIS domain, but dhcp has nis-domai...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-22 19:01 UTC by Paul Komarek
Modified: 2005-06-01 23:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Komarek 2005-05-22 19:01:32 UTC
On my dhcp server, in dhcpd.conf I set domain-name to foo and nis-domain to bar.
 When a client uses dhcpcd -HN or -HDN, then dhcpcd changes yp.conf to domain
foo broadcast.  This does not seem correct, and I can find no documentation from
ISC or otherwise that supports dhcpcd's actions.

Reproducible: Always
Steps to Reproduce:
See description



Expected Results:  
When dhcpcd is run without -D, it should not change yp.conf.  When run with -D,
it should use the nis-domain when changing yp.conf.
Comment 1 SpanKY gentoo-dev 2005-05-23 20:42:05 UTC
what *client* are you using ?  it could be getting it wrong
Comment 2 Paul Komarek 2005-05-23 21:18:54 UTC
The client is dhcpcd.  The server is ISC dhcpd.  Those names are too close,
which is probably why ISC called their client dhclient.
Comment 3 SpanKY gentoo-dev 2005-05-23 21:24:21 UTC
err, yeah ... and ISC doesnt make dhcpcd so it could be an issue with
http://www.phystech.com/download/
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-06-01 23:56:33 UTC
I've tested this against dnsmasq as a dhcp server.
In all cases, the correct nis domain name was placed in yp.conf

The -D option purely sets the domainname on the system but does not alter any files.

If you don't want to get /etc/yp.conf clobbered by dhcpcd then use the -Y option

Re-open if you disagree