[Dnsmasq-discuss] DNSmasq forwarding to DNS doesn't works

Jérémie SYLVAND jsylvand at leadformance.com
Fri Aug 26 09:44:52 BST 2011


Hello,

We are trying to move from dhcpd + bind to dnsmasq for our small company.
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 !
But I'm having an issue with the forwarding to external DNS. My DNS can't
resolve a request like google.com so it must send it to a DNS upstream, like
the DNS of my Internet Servcie Provider*.
*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.

Here is options I have provided in my dnmasq.conf file (without all
comments):

bogus-priv
expand-hosts
resolv-file=/etc/resolv.conf
all-servers
domain=city.domain.com
interface=eth0
dhcp-range=eth0,192.168.0.180,192.168.0.200,12h
# Netmask
dhcp-option=1,255.255.255.0
# Gateway
dhcp-option=3,192.168.0.1
# DNS Server (Internal): 198.168.0.2
dhcp-option=6,192.168.0.2
# Statics IP Addresses (I have indicated the dnsserver, I don't know if it's
good.)
dhcp-host=xx:xx:xx:xx:xx:xx,dnsserver,192.168.0.2
dhcp-host=xx:xx:xx:xx:xx:xx,name1,192.168.0.101
dhcp-host=xx:xx:xx:xx:xx:xx,name2,192.168.0.102
...
dhcp-authoritative
cache-size=6000
log-queries
log-dhcp

In the file resolv.conf:

search city.domain.com
nameserver 127.0.0.1
nameserver <ISP 1 IP address1>
nameserver <ISP 1 IP address2>
nameserver <ISP 2 IP address1>
nameserver <ISP 2 IP address2>

I don't understand why it doesn't work, probably because I don't have
understood the real functioning of dnsmasq...
Can you help me ?

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 inscribe DNS
upstream ? Be careful, we don't want to send a dhcppack with all dns to all
machines like this:
dhcp-option=6,<ISP 1 IP address1>,<ISP 1 IP address2>,etc,
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.

Thank you for your help.

Regards
 ------------------------------
*Jeremie SYLVAND | System & Network Assistant*
*LEADFORMANCE* *|* 7 Avenue des Ducs de Savoie *|* 73000 CHAMBERY
Tel. : +33 (0)4 79 25 22 22 * |* www.leadformance.com
Leadformance vainqueur aux E-Commerce Awards 2010 catégorie Innovation : voir
la vidéo <http://www.youtube.com/watch?v=u8zJ1B2-Gg4>
Découvrez toutes les fonctions de BRIDGE en 3 min : voir la
vidéo<http://www.leadformance.com/fr/video/highdef.php>
<http://www.leadformance.com/fr/video/highdef.php>
 <http://www.leadformance.com/fr/video/highdef.php>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20110826/7fb68ebc/attachment.htm 


More information about the Dnsmasq-discuss mailing list