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.
what *client* are you using ? it could be getting it wrong
The client is dhcpcd. The server is ISC dhcpd. Those names are too close, which is probably why ISC called their client dhclient.
err, yeah ... and ISC doesnt make dhcpcd so it could be an issue with http://www.phystech.com/download/
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