Hello<br><br>Thank you for your answers.<br><br>I have tried what you told me, in different thing :<br>using resolv.conf with only 127.0.0.1<br>with 127.0.0.1 and one of my ISP nameserver<br><br>Not using resolv.conf by the line no-resolve in the dnsmasq.conf :<br>
with and without this line : server=127.0.0.1<br>and with all my ISP nameserver addresses<br>server=89.2.0.1<br>server=89.2.0.2<br>server=212.30.96.123<br>server=213.203.124.147<br>in the dnsmasq.conf<br><br>And it still doesn't works<br>
<br>My logs :<br><br># tail -f /var/log/messages<br>Aug 26 16:55:23 fedoraserver abrtd: Corrupted or bad crash /var/spool/abrt/ccpp-1314370523-6770 (res:2), deleting<br>Aug 26 16:58:02 fedoraserver dnsmasq[7256]: exiting on receipt of SIGTERM<br>
Aug 26 16:58:02 fedoraserver dnsmasq[7293]: started, version 2.52 cachesize 6000<br>Aug 26 16:58:02 fedoraserver dnsmasq[7293]: compile time options: IPv6 GNU-getopt DBus no-I18N DHCP TFTP<br>Aug 26 16:58:02 fedoraserver dnsmasq-dhcp[7293]: DHCP, IP range 192.168.0.180 -- 192.168.0.200, lease time 12h<br>
Aug 26 16:58:02 fedoraserver dnsmasq[7293]: using nameserver 213.203.124.147#53<br>Aug 26 16:58:02 fedoraserver dnsmasq[7293]: using nameserver 212.30.96.123#53<br>Aug 26 16:58:02 fedoraserver dnsmasq[7293]: using nameserver 89.2.0.2#53<br>
Aug 26 16:58:02 fedoraserver dnsmasq[7293]: using nameserver 89.2.0.1#53<br>Aug 26 16:58:02 fedoraserver dnsmasq[7293]: read /etc/hosts - 3 addresses<br><br>Yes I'm using fedora (14).<br><br>Thank you for your help.<br>
<br>Regards,<br clear="all"><div style="min-height: 60px; line-height: 17px; margin: 0pt; padding: 10px 0pt; font-family: 'Lucida Grande',Verdana,Arial,Sans-Serif; font-size: 10px; color: rgb(51, 51, 51); min-width: 530px;">
<hr style="color: rgb(255, 255, 255); background-color: rgb(255, 255, 255); border-width: 1px; border-color: rgb(119, 119, 119); border-style: none none dotted;">
<b style="color: rgb(51, 51, 51); font-size: 11px;">Jeremie SYLVAND | System & Network Assistant</b><br>
<b style="color: rgb(119, 37, 109);">LEADFORMANCE</b> <b style="color: rgb(187, 187, 187);">|</b> 7 Avenue des Ducs de Savoie <b style="color: rgb(187, 187, 187);">|</b> 73000 CHAMBERY <br>
Tel. : +33 (0)4 79 25 22 22 <b style="color: rgb(187, 187, 187);"> |</b> <a href="http://www.leadformance.com/" style="color: rgb(119, 37, 109); text-decoration: none; border-bottom: 1px dotted rgb(119, 37, 109);" target="_blank">www.leadformance.com</a><br>
<div style="color: rgb(119, 119, 119);">Leadformance vainqueur aux E-Commerce Awards 2010 catégorie Innovation : <font color="#777777" face="Verdana" size="1"><span style="font-family: Verdana; color: rgb(119, 119, 119); font-size: 7.5pt;"><a title="blocked::http://www.youtube.com/watch?v=u8zJ1B2-Gg4" href="http://www.youtube.com/watch?v=u8zJ1B2-Gg4" target="_blank"><font title="blocked::http://www.youtube.com/watch?v=u8zJ1B2-Gg4" color="#f3ae00"><span style="color: rgb(243, 174, 0); text-decoration: none;" title="blocked::http://www.youtube.com/watch?v=u8zJ1B2-Gg4">voir la
vidéo</span></font></a></span></font><br>
Découvrez toutes les fonctions de BRIDGE en 3 min : <font color="#777777" face="Verdana" size="1"><span style="font-family: Verdana; color: rgb(119, 119, 119); font-size: 7.5pt;"><a title="blocked::http://www.leadformance.com/fr/video/highdef.php" href="http://www.leadformance.com/fr/video/highdef.php" target="_blank"><font title="blocked::http://www.leadformance.com/fr/video/highdef.php" color="#f3ae00"><span style="color: rgb(243, 174, 0); text-decoration: none;" title="blocked::http://www.leadformance.com/fr/video/highdef.php">voir la
vidéo</span></font></a></span></font><a href="http://www.leadformance.com/fr/video/highdef.php" style="color: rgb(243, 174, 0); text-decoration: none; border-bottom: 1px dotted rgb(243, 174, 0);" target="_blank"><br></a></div>
</div><font color="#777777" face="Verdana" size="1"><span style="font-family: Verdana; color: rgb(119, 119, 119); font-size: 7.5pt;"><a title="blocked::http://www.leadformance.com/fr/video/highdef.php" href="http://www.leadformance.com/fr/video/highdef.php" target="_blank"><font title="blocked::http://www.leadformance.com/fr/video/highdef.php" color="#f3ae00"><span style="color: rgb(243, 174, 0); text-decoration: none;" title="blocked::http://www.leadformance.com/fr/video/highdef.php"></span></font></a></span></font><br>
<br><br><div class="gmail_quote">2011/8/26 Matthias Andree <span dir="ltr"><<a href="mailto:matthias.andree@gmx.de">matthias.andree@gmx.de</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Am 26.08.2011 10:44, schrieb Jérémie SYLVAND:<br>
<div class="im">> Hello,<br>
><br>
> We are trying to move from dhcpd + bind to dnsmasq for our small company.<br>
> On the test server, the dhcp provided by dnsmasq works properly, as the<br>
> internal dns who works better than we want : it's possible to ping the<br>
> machine's name given in the dnsmasq.conf, but also the machine's name<br>
> written on the machine (who is different), very good !<br>
> But I'm having an issue with the forwarding to external DNS. My DNS<br>
</div>> can't resolve a request like <a href="http://google.com" target="_blank">google.com</a> <<a href="http://google.com" target="_blank">http://google.com</a>> so it must<br>
<div class="im">> send it to a DNS upstream, like the DNS of my Internet Servcie Provider/.<br>
> /What I have understood is dnsmasq read the file resolv.conf (or the<br>
> file we have provided) to know DNS upstream, but it doesn't work for me.<br>
><br>
> Here is options I have provided in my dnmasq.conf file (without all<br>
> comments):<br>
><br>
> bogus-priv<br>
> expand-hosts<br>
> resolv-file=/etc/resolv.conf<br>
> all-servers<br>
</div>> domain=<a href="http://city.domain.com" target="_blank">city.domain.com</a> <<a href="http://city.domain.com" target="_blank">http://city.domain.com</a>><br>
<div class="im">> interface=eth0<br>
> dhcp-range=eth0,192.168.0.180,192.168.0.200,12h<br>
</div>...<br>
<div class="im">> log-queries<br>
> log-dhcp<br>
><br>
> In the file resolv.conf:<br>
><br>
</div>> search <a href="http://city.domain.com" target="_blank">city.domain.com</a> <<a href="http://city.domain.com" target="_blank">http://city.domain.com</a>><br>
<div class="im">> nameserver 127.0.0.1<br>
> nameserver <ISP 1 IP address1><br>
> nameserver <ISP 1 IP address2><br>
> nameserver <ISP 2 IP address1><br>
> nameserver <ISP 2 IP address2><br>
><br>
> I don't understand why it doesn't work, probably because I don't have<br>
> understood the real functioning of dnsmasq...<br>
> Can you help me ?<br>
<br>
</div>Jérémie,<br>
<br>
the "nameserver 127.0.0.1" is a problem here, because dnsmasq<br>
effectively forwards to itself. I propose the following:<br>
<br>
1. modify your dnsmasq.conf:<br>
<br>
Add lines similar to these, replacing the IP addresses by the actual<br>
ISPs' DNS resolver addresses:<br>
<br>
no-resolv<br>
server 10.0.11.11<br>
server 10.0.11.12<br>
server <a href="tel:172.16.0.111" value="+33172160111">172.16.0.111</a><br>
server <a href="tel:172.16.0.112" value="+33172160112">172.16.0.112</a><br>
<br>
Note that there must not be a server 127.0.0.1 line!<br>
<br>
<br>
2. modify your /etc/resolv.conf to read only:<br>
<br>
search <a href="http://city.example.com" target="_blank">city.example.com</a><br>
<div class="im">nameserver 127.0.0.1<br>
<br>
<br>
</div>3. kill and restart dnsmasq<br>
<br>
<br>
4. if it does not work, try if adding "bind-interfaces" and restarting<br>
dnsmasq helps. It may make things better or worse for you.<br>
<br>
<br>
If nothing works, please show dnsmasq logs -- you've already set<br>
log-queries.<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div><br>