Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dhcpcd equivalent of these dhclient options?
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
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 141

PostPosted: Tue Aug 24, 2010 11:47 am    Post subject: Dhcpcd equivalent of these dhclient options? Reply with quote

Hi guys,

At work most people seem to be using dhclient and dhclient.conf configured with these options so they can resolve local hostnames to IPs:

Code:
 send fqdn.fqdn "hostname.domain";  # I've missed out the domain here for posting

 send user-class "Linux";


I however, use dhcpcd and have tried the following in my dhcpcd.conf without sucess:

Code:
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# dhcpcd-run-hooks uses these options.
option domain_name_servers, domain_name, domain_search, host_name

# Most distros have ntp support.
option ntp_servers

# We should behave nicely on networks and respect their MTU.
# However, a lot of buggy DHCP servers set invalid MTUs so this is not
# enabled by default.
#option interface_mtu
#
hostname hostname.domain # Again, missed out for posting
userclass "Linux"


I would've thought this was correct.

Does anyone have any experience with this and could provide some insight?

Cheers.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6799
Location: Blighty

PostPosted: Tue Aug 24, 2010 12:00 pm    Post subject: Reply with quote

You need to instruct dhcpcd to send an fqdn. You can do this by adding the fqdn keyword to dhcpcd.conf, as instructed by the fine manual page.
_________________
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
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 141

PostPosted: Tue Aug 24, 2010 1:26 pm    Post subject: Reply with quote

UberLord wrote:
You need to instruct dhcpcd to send an fqdn. You can do this by adding the fqdn keyword to dhcpcd.conf, as instructed by the fine manual page.


I did see that option when I was initially looking though the man page but it wasn't obvious.

I've added;

Code:
fqdn both


Do I need to also specify my domain name in /etc/conf.d/net as well?

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


Joined: 18 Sep 2003
Posts: 6799
Location: Blighty

PostPosted: Tue Aug 24, 2010 1:36 pm    Post subject: Reply with quote

eponymous wrote:
Do I need to also specify my domain name in /etc/conf.d/net as well?


No
_________________
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
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 141

PostPosted: Wed Sep 01, 2010 8:39 am    Post subject: Reply with quote

Hi,

I've tried these options but I get "UNKNOWN.DOMAIN" when I use the fqdn ptr or both option and I can't access anything.

Any ideas?

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


Joined: 18 Sep 2003
Posts: 6799
Location: Blighty

PostPosted: Wed Sep 01, 2010 9:24 am    Post subject: Reply with quote

Nope, and I don't have a server handy to test against.
What you can do though, is make some packet captures using tcpdump (and the -w /tmp/dump -s0 options) of dhclient working and dhcpcd not working. Send them to me (roy@marples.name, or link them here) and I'll tell you what's wrong (hopefully).
_________________
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
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 141

PostPosted: Wed Sep 01, 2010 1:00 pm    Post subject: Reply with quote

Heh no problem.

Thanks for the offer, but I'll see if I can sort it out myself :)
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