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 internal dns who works better than we want : it's possible to ping the machine's name given in the dnsmasq.conf, but also the machine's name written on the machine (who is different), very good !<br>
<div style="text-align: left;">But I'm having an issue with the forwarding to external DNS. My DNS can't resolve a request like <a href="http://google.com">google.com</a> so it must send it to a DNS upstream, like the DNS of my Internet Servcie Provider<span class="st"><em>.<br>
</em></span>What I have understood is dnsmasq read the file resolv.conf (or the 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 comments):<br>
<br>bogus-priv<br>expand-hosts<br>resolv-file=/etc/resolv.conf<br>all-servers<br>domain=<a href="http://city.domain.com">city.domain.com</a><br>interface=eth0<br>dhcp-range=eth0,192.168.0.180,192.168.0.200,12h<br># Netmask<br>
dhcp-option=1,255.255.255.0<br># Gateway<br>dhcp-option=3,192.168.0.1<br># DNS Server (Internal): 198.168.0.2<br>dhcp-option=6,192.168.0.2<br># Statics IP Addresses (I have <span id="result_box" class="short_text" lang="en"><span class="hps">indicated</span></span> the dnsserver, I don't know if it's good.)<br>
dhcp-host=xx:xx:xx:xx:xx:xx,dnsserver,192.168.0.2<br>dhcp-host=xx:xx:xx:xx:xx:xx,name1,192.168.0.101<br>dhcp-host=xx:xx:xx:xx:xx:xx,name2,192.168.0.102<br>...<br>dhcp-authoritative<br>cache-size=6000<br>log-queries<br>log-dhcp<br>
<br>In the file resolv.conf:<br><br>search <a href="http://city.domain.com">city.domain.com</a><br>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 understood the real <span id="result_box" class="short_text" lang="en"><span class="hps">functioning of dnsmasq...<br>
Can you help me ?<br><br>If I had the 'no-resolv' option, the dnsmasq will not see in the resolv.conf, so what is the line to add in the dnsmasq.conf to </span></span>inscribe DNS upstream ? Be careful, we don't want to send a dhcppack with all dns to all machines like this:<br>
dhcp-option=6,<ISP 1 IP address1>,<ISP 1 IP address2>,etc,<br>We want to send a dhcppack with only our internal DNS server which have to resolv himself (with a DNS upstream) a request it can't resolv with only dhcp-host indicated.<br>
<br>Thank you for your help.<br><br>Regards<br></div><span class="st"> </span><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>