[Dnsmasq-discuss] [nick at linicks.net: Re: Unable to resolve public/external hostnames]
Nick Warne
nick at linicks.net
Sun Jun 9 15:01:16 BST 2013
----- Forwarded message from Nick Warne <nick at linicks.net> -----
Date: Sun, 9 Jun 2013 14:57:17 +0100
From: Nick Warne <nick at linicks.net>
To: Koos Pol <koos2013 at pohw.nl>
Subject: Re: [Dnsmasq-discuss] Unable to resolve public/external hostnames
User-Agent: Mutt/1.5.21 (2010-09-15)
On Sun, Jun 09, 2013 at 03:51:21PM +0200, Koos Pol wrote:
> Op 09-06-13 15:34, Nick Warne schreef:
>
> > What Don means is do not define the DNS server on the local machines - let
> > the DHCP server tell the clients what it is when they request DHCP stuff,
> > i.e. in your case nameserver 192.168.1.50
>
> Thanks for clearing this up, Nick.
>
> What I now have on dns1:
>
> resolv-file=/etc/resolv.dnsmasq
> domain-needed
> domain=lan.pohw.nl
> local=/lan.pohw.nl/
> dhcp-option=option:router,192.168.1.1
> dhcp-option=option:dns-server,192.168.1.50
> dhcp-range=192.168.1.100,192.168.1.200
> log-queries
>
>
> So the Netgear is on x.x.x.1 and the dnsmasq server is on x.x.x.50
>
> But I'm afraid it hasn't helped. The symptoms are the same:
> - pinging to a remote IP works fine.
> - pinging to a remote hostname fails.
>
> Output is the same both on the client as dns1:
>
> client1:/home/koos # ping -c 3 www.nu.nl
> ping: unknown host www.nu.nl
>
> dns1:
> Jun 9 15:40:27 dns1 dnsmasq-dhcp[3303]: DHCPDISCOVER(eth0) 08:00:27:c7:bc:61
> Jun 9 15:40:27 dns1 dnsmasq-dhcp[3303]: DHCPOFFER(eth0) 192.168.1.154
> 08:00:27:c7:bc:61
> Jun 9 15:40:27 dns1 dnsmasq-dhcp[3303]: DHCPREQUEST(eth0) 192.168.1.154
> 08:00:27:c7:bc:61
> Jun 9 15:40:27 dns1 dnsmasq-dhcp[3303]: DHCPACK(eth0) 192.168.1.154
> 08:00:27:c7:bc:61 client1
> Jun 9 15:40:50 dns1 dnsmasq[3303]: query[A] www.nu.nl from 192.168.1.154
>
>
> I'd be grateful if there's anything you can add, tracking down the cause.
>
On a client, do:
dig google.com
and post the output - you should see if dnsmasq is being used on the server at the end of the output - like this:
;; Query time: 7 msec
;; SERVER: 87.127.191.50#53(87.127.191.50) <-- my dnsmasq server
;; WHEN: Sun Jun 9 14:56:07 2013
;; MSG SIZE rcvd: 204
Nick
--
Free Software Foundation Associate Member 5508
http://linicks.net/
----- End forwarded message -----
--
Free Software Foundation Associate Member 5508
http://linicks.net/
More information about the Dnsmasq-discuss
mailing list