Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd & domain names (-D switch) [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jbmohler
n00b
n00b


Joined: 23 Mar 2004
Posts: 29

PostPosted: Thu May 24, 2007 9:40 pm    Post subject: dhcpcd & domain names (-D switch) [SOLVED] Reply with quote

The installation guide recommends the use of
Code:
dhcpcd -HD eth0

in the networking section. The "-D" switch is not supported in dhcpcd 3.x. This would seem to be a bug in the documentation (especially since dhcpcd 3.x appears to be the recommended dhcp client).

However, I want the feature enabled by "-D" in dhcpcd 2.x. This is that the domainname of the client is set per the dhcp server's information.

What's the recommended way to do this? I find the miss-matched documentation and missing (?) feature quite perplexing since according to http://dhcpcd.berlios.de/, the developer of dhcpcd 3.x is a gentoo dev!

Thanks for any help!
Joel


Last edited by jbmohler on Fri May 25, 2007 2:38 pm; edited 2 times in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri May 25, 2007 1:07 am    Post subject: Reply with quote

Oh that's an easy one.

dhcpcd-1.x and 2.x set the nisdomain to dns dnsdomain with the -D flag which is very incorrect. So to save embarassment the flag was dropped. Maybe you should open a documentation bug?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
jbmohler
n00b
n00b


Joined: 23 Mar 2004
Posts: 29

PostPosted: Fri May 25, 2007 12:46 pm    Post subject: Reply with quote

Thanks for the reply. I deduce from it that there is no analogue of the 2.x -D option in the new version. Therefore, there is no way to do what I wanted to do.

However, I guess I'm supposed to set things like
Code:
nis_domain_eth0="my.domain.com"
nis_domain_ESSID="my.domain.com"

in my /etc/conf.d/net. I have done this and upgraded to 3.x and my desired functionality is restored. However, it seems sensible to me to not have to specify this on the client -- i.e. to have the server send out my domain name.

Perhaps I should say, I wanted the domain name set which is used to "authenticate" nfs requests. That is, my internal lan domain is "home.kiwistrawberry.us" and I have "*.home.kiwistrawberry.us" allowed to mount my nfs server's shared stuff. All-in-all, that's a pathetic ugly way to do that probably. I really need to find a sensible alternative to nfs, but I fear there is none.

--
Joel
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri May 25, 2007 1:14 pm    Post subject: Reply with quote

Then you should consider setting your DHCP server up to send a NIS domain as well as a DNS domain :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
jbmohler
n00b
n00b


Joined: 23 Mar 2004
Posts: 29

PostPosted: Fri May 25, 2007 1:48 pm    Post subject: Reply with quote

Yes, that seems like a most reasonable suggestion. It seems that my dhcp server (dnsmasq) doesn't provide a way to do that. The man-page does not any knowledge of nis domains that I could find.

My current config is functional. I'll probably revisit the matter of a dhcp server that serves the nis domain later as time and ambition allow.

Thanks
Joel
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri May 25, 2007 2:09 pm    Post subject: Reply with quote

http://users.gotsky.com/cvonk/linux/siso/ap-etc-sysconfig-dnsmasq.html

Code:
dhcp-option=40,vonk                      # NIS domain
dhcp-option=41,10.0.1.2                  # NIS domain server


Should do it :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
jbmohler
n00b
n00b


Joined: 23 Mar 2004
Posts: 29

PostPosted: Fri May 25, 2007 2:38 pm    Post subject: Reply with quote

That did it. I was afraid it might be something cryptic like that!

Thanks a bunch for your patience with my lack of domain name understanding :D

--
Joel
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum