Thread
:
udhcp and dnsmasq info
View Single Post
sicelo
2017-02-07 , 07:04
Community Council | Posts: 691 | Thanked: 1,240 times | Joined on Sep 2010 @ Mbabane
#
2
udhcpc does the requesting of IP address leases (I think you figured this part out), and dnsmasq takes care of name resolution.
As for how they work together:
dnsmasq settings look for a resolv.conf file in a number of places (see /etc/dnsmasq.conf).
if any of those files contains a valid name server, it gets used.
if you look in /etc/udhcpc/default.bound you will notice that udhcpc updates /var/run/resolv.conf once a successful IP assignment has taken place.
dnsmasq dynamically loads the resolv.conf files, so no restart or reload command is needed. That means as soon as udhcpc has chosen a nameserver, it is immediately available for use
Hope this helps
Any specific reason for asking?
Last edited by sicelo; 2017-02-07 at
07:23
.
Quote & Reply
|
The Following 2 Users Say Thank You to sicelo For This Useful Post:
mrsellout
,
zerox
sicelo
View Public Profile
Send a private message to sicelo
Visit sicelo's homepage!
Find all posts by sicelo