<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
&gt; Date: Fri, 3 Oct 2008 17:09:39 +0000<br>&gt; From: richardvoigt<br>&gt; Subject: Re: [Dnsmasq-discuss] Override DNS servers in DHCP packet<br><br>&gt; On Wed, Sep 24, 2008 at 12:51 AM, A C &lt;agcme&gt; wrote:<br><br>&gt; &gt;&gt; On Tue, 23 Sep 2008 15:45:24 -0400<br>&gt; &gt;&gt; A C &lt;agcme@hotmail.com&gt; wrote:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Does dnsmasq use the DNS servers listed in /etc/resolv.conf over those<br>&gt; &gt;&gt; &gt; listed in a DHCP packet? I was forced to use DHCP for my public connection<br>&gt; &gt;&gt; &gt; but I don't want to use the provided DNS servers as they are slower than the<br>&gt; &gt;&gt; &gt; ones I had manually configured.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I think typically the DHCP client would write /etc/resolv.conf with the<br>&gt; &gt;&gt; information it is provided by the DHCP server. Then dnsmasq looks<br>&gt; &gt;&gt; there, unless you configure it otherwise.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; If you're talking about serving up different DNS servers via dnsmasq's<br>&gt; &gt;&gt; bult-in DHCP server, then take a look at: dnsmasq --help dhcp<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt; I was indeed talking about the first situation and not serving up alternate<br>&gt; &gt; DNS servers.  As it turns out, my installation is using udhcpd and writing<br>&gt; <br>&gt; udhcpc more likely<br><br>Yes udhcpc, I typoed.<br><br>&gt; &gt; the data to /tmp/resolv.conf while dnsmasq is still looking at<br>&gt; &gt; /etc/resolv.conf.  Since I don't have any directives to look at any other<br>&gt; &gt; resolv.conf that I can see, I think it's safe to assume that dnsmasq is<br>&gt; &gt; honoring my own /etc/resolv.conf and ignoring the DHCP packet.<br>&gt; <br>&gt; Sounds like OpenWRT, where /etc/resolv.conf and /tmp/resolv.conf are<br>&gt; actually the same file (symlinked) by default.<br><br>Not on my installation, they are independent files.&nbsp; So it works out.<br><br>&gt; Note that there's a dnsmasq configuration option to have it look at a<br>&gt; file other than /etc/resolv.conf ... surely no dhcp client is going to<br>&gt; tamper with a file named /etc/resolv.dnsmasq for instance.<br><br><br>I should think not but I had to make sure.<br><br /><hr />Get more out of the Web. Learn 10 hidden secrets of Windows Live. <a href='http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_getmore_092008' target='_new'>Learn Now</a></body>
</html>