LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-06-2014, 08:35 PM   #1
fargred
LQ Newbie
 
Registered: Jan 2014
Location: /usr/portage/people
Distribution: Gentoo
Posts: 4

Rep: Reputation: Disabled
udhcpc can’t pick hostname→ip table from DHCP server


I have two machines with gentoo. One of them is server and runs dnsmasq, which configuration file contain lines like
Code:
address=/binhost/192.168.0.2
address=/anotherhost/192.168.0.3
and so on.
The second one is client, it uses "/bin/busybox udhcpc" as dhcp client. The problem is client cannot find hostnames from dnsmasq config until the interface is restarted. It never works just from the start. Portage cannot find named host to download binary packages from, and traceroute shows no hostname
Code:
# /bin/busybox traceroute 192.168.0.1
traceroute to 192.168.0.1 (192.168.0.1), 30 hops max, 38 byte packets
 1  192.168.0.1 (192.168.0.1)  1.279 ms  0.380 ms  1.053 ms
However, once the interface has been restarted…
Code:
# /bin/busybox traceroute 192.168.0.1
traceroute to 192.168.0.1 (192.168.0.1), 30 hops max, 38 byte packets
 1  gate.localweb (192.168.0.1)  1.021 ms  0.330 ms  958 ms
net.wlan0 is in runlevel boot.
 
Old 01-07-2014, 09:20 AM   #2
Mani84
LQ Newbie
 
Registered: Dec 2013
Posts: 11
Blog Entries: 1

Rep: Reputation: Disabled
Refer

https://wiki.gentoo.org/wiki/Dnsmasq

It seems like dnsmasq configuration file is not set correctly.
 
Old 01-10-2014, 06:43 AM   #3
fargred
LQ Newbie
 
Registered: Jan 2014
Location: /usr/portage/people
Distribution: Gentoo
Posts: 4

Original Poster
Rep: Reputation: Disabled
It wasn’t dnsmasq. It’s the directive dns_servers_eth0 from /etc/conf.d/net that was messing the resolv.conf. The services eth0 and wlan0 are set to be running in parallel in runlevel boot; wlan’s getting up has a lag when is calls wpa_supplicant, and in that time eth0 was rewriting resolv.conf.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sometimes udhcpc cannot NEVER grab dhcp ip address unless reboot 5883 Linux - Embedded & Single-board computer 1 10-09-2012 01:41 PM
Busybox udhcpc does not request lease after dhcp server reboots duluxe Linux - Networking 1 11-27-2010 11:09 PM
hostname is not getting updated by dhcp server hv905c Linux - Server 2 11-14-2007 11:18 AM
LAN Server w/DHCP - hostname? dbc001 Linux - Server 6 08-03-2007 07:07 PM
hostname not showing up in DHCP leases table! halo14 Debian 0 03-24-2005 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration