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

Jérémie SYLVAND jsylvand at leadformance.com
Fri Aug 26 16:15:15 BST 2011


Hello

Thank you for your answers.

I have tried what you told me, in different thing :
using resolv.conf with only 127.0.0.1
with 127.0.0.1 and one of my ISP nameserver

Not using resolv.conf by the line no-resolve in the dnsmasq.conf :
with and without this line : server=127.0.0.1
and with all my ISP nameserver addresses
server=89.2.0.1
server=89.2.0.2
server=212.30.96.123
server=213.203.124.147
in the dnsmasq.conf

And it still doesn't works

My logs :

# tail -f /var/log/messages
Aug 26 16:55:23 fedoraserver abrtd: Corrupted or bad crash
/var/spool/abrt/ccpp-1314370523-6770 (res:2), deleting
Aug 26 16:58:02 fedoraserver dnsmasq[7256]: exiting on receipt of SIGTERM
Aug 26 16:58:02 fedoraserver dnsmasq[7293]: started, version 2.52 cachesize
6000
Aug 26 16:58:02 fedoraserver dnsmasq[7293]: compile time options: IPv6
GNU-getopt DBus no-I18N DHCP TFTP
Aug 26 16:58:02 fedoraserver dnsmasq-dhcp[7293]: DHCP, IP range
192.168.0.180 -- 192.168.0.200, lease time 12h
Aug 26 16:58:02 fedoraserver dnsmasq[7293]: using nameserver
213.203.124.147#53
Aug 26 16:58:02 fedoraserver dnsmasq[7293]: using nameserver
212.30.96.123#53
Aug 26 16:58:02 fedoraserver dnsmasq[7293]: using nameserver 89.2.0.2#53
Aug 26 16:58:02 fedoraserver dnsmasq[7293]: using nameserver 89.2.0.1#53
Aug 26 16:58:02 fedoraserver dnsmasq[7293]: read /etc/hosts - 3 addresses

Yes I'm using fedora (14).

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>


2011/8/26 Matthias Andree <matthias.andree at gmx.de>

> Am 26.08.2011 10:44, schrieb Jérémie SYLVAND:
> > 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 <http://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 <http://city.domain.com>
> > interface=eth0
> > dhcp-range=eth0,192.168.0.180,192.168.0.200,12h
> ...
> > log-queries
> > log-dhcp
> >
> > In the file resolv.conf:
> >
> > search city.domain.com <http://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 ?
>
> Jérémie,
>
> the "nameserver 127.0.0.1" is a problem here, because dnsmasq
> effectively forwards to itself.  I propose the following:
>
> 1. modify your dnsmasq.conf:
>
> Add lines similar to these, replacing the IP addresses by the actual
> ISPs' DNS resolver addresses:
>
> no-resolv
> server 10.0.11.11
> server 10.0.11.12
> server 172.16.0.111
> server 172.16.0.112
>
> Note that there must not be a server 127.0.0.1 line!
>
>
> 2. modify your /etc/resolv.conf to read only:
>
> search city.example.com
> nameserver 127.0.0.1
>
>
> 3. kill and restart dnsmasq
>
>
> 4. if it does not work, try if adding "bind-interfaces" and restarting
> dnsmasq helps. It may make things better or worse for you.
>
>
> If nothing works, please show dnsmasq logs -- you've already set
> log-queries.
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20110826/d1330f3b/attachment.htm 


More information about the Dnsmasq-discuss mailing list