Richard,<br><br>I am working through Red Hat technical support and the CentOS forums (among other things). However, finding answers has been slow and challenging. I am hoping someone on this mailing list will have some useful insights to help me resolve my issues.<br>
<br>Michael<br><br><br><br><div class="gmail_quote">On Thu, Nov 4, 2010 at 2:17 PM, <a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a> <span dir="ltr">&lt;<a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">These are all questions about when RedHat consults dnsmasq, not what<br>
dnsmasq does.  It&#39;s not dnsmasq&#39;s job to &quot;force nslookup to&quot; anything.<br>
<br>
You should consult resources on configuring RHEL for solutions to<br>
these problems (for one thing, the solution is the same whether you&#39;re<br>
running ISC Bind, dnsmasq, some other DNS service, or want to use a<br>
different non-local DNS server than the one listed in your upstream<br>
DHCP).<br>
<div><div></div><div class="h5"><br>
On Thu, Nov 4, 2010 at 3:21 PM, Michael Convey &lt;<a href="mailto:smconvey@gmail.com">smconvey@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;m using dnsmasq for small virtual network (one RHEL 5.5 machine acting as<br>
&gt; a Xen host - hostname: <a href="http://server.exampe.com" target="_blank">server.exampe.com</a> - with two Xen guests). IP<br>
&gt; addresses of the virtual network are statically assigned and maintained in<br>
&gt; the /etc/host files. My /etc/hosts file reads as follows:<br>
&gt;<br>
&gt; # Do not remove the following line, or various programs<br>
&gt; # that require network functionality will fail.<br>
&gt; 127.0.0.1               localhost.localdomain localhost<br>
&gt; ::1                     localhost6.localdomain6 localhost6<br>
&gt; 192.168.122.1   <a href="http://server.example.com" target="_blank">server.example.com</a>      server<br>
&gt; 192.168.122.2   <a href="http://centos.example.com" target="_blank">centos.example.com</a>      centos<br>
&gt; 192.168.122.3   <a href="http://fedora.example.com" target="_blank">fedora.example.com</a>      fedora<br>
&gt;<br>
&gt; I&#39;m not using dnsmask&#39;s DHCP functions. However, my machine is part of an<br>
&gt; external network that uses DHCP (Windows). Even with dnsmasq on, nslookup<br>
&gt; showed my system was favoring the upstream DNS servers. So, I did the<br>
&gt; following:<br>
&gt;<br>
&gt; 1) in /etc/sysconfig/network-scripts/ifcfg-eth0, I added the line<br>
&gt; &quot;DNS1=127.0.0.1&quot;<br>
&gt; 2) in /etc/dnsmasq.conf, I uncommented the line &quot;strict-order&quot;<br>
&gt; 3) in /etc/dhclient-eth0, I added the following line: supersede<br>
&gt; domain-search &quot;&quot;;<br>
&gt;<br>
&gt; After a network restart, my resolv.conf file read as follows:<br>
&gt;<br>
&gt; ; generated by /sbin/dhclient-script<br>
&gt; nameserver 127.0.0.1<br>
&gt; nameserver 10.10.15.10      #upstream DNS server via DHCP<br>
&gt; nameserver 10.125.110.44       #upstream DNS server via DHCP<br>
&gt;<br>
&gt; Sometimes the resolv.conf spontaneously changes back to all upstream<br>
&gt; nameservers (drops the 127.0.0.1). If I do a network restart it comes back.<br>
&gt; How is the &quot;DNS1=127.0.0.1&quot; in /etc/sysconfig/network-scripts/ifcfg-eth0<br>
&gt; overridded? Could this be related to upstream DHCP lease renewal?<br>
&gt;<br>
&gt; Also, even when the resolv.conf file reads as above, &#39;nslookup<br>
&gt; <a href="http://server.example.com" target="_blank">server.example.com</a>&#39; or &#39;nslookup 192.168.122.1&#39; gives the following:<br>
&gt;<br>
&gt; # nslookup 192.168.122.1<br>
&gt; Server:         10.10.15.10<br>
&gt; Address:        10.10.15.10#53<br>
&gt;<br>
&gt; ** server can&#39;t find 1.122.168.192.in-addr.arpa.: NXDOMAIN<br>
&gt;<br>
&gt; # nslookup <a href="http://server.example.com" target="_blank">server.example.com</a><br>
&gt; Server:         10.10.15.10<br>
&gt; Address:        10.10.15.10#53<br>
&gt;<br>
&gt; ** server can&#39;t find <a href="http://server.example.com" target="_blank">server.example.com</a>: NXDOMAIN<br>
&gt;<br>
&gt; Why doesn&#39;t dnsmaq force nslookup to first check /etc/hosts?<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Dnsmasq-discuss mailing list<br>
&gt; <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
&gt; <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>