[Dnsmasq-discuss] query from a windows workstation

Simon Kelley simon at thekelleys.org.uk
Thu Sep 13 07:44:57 BST 2007

Goldorak wrote:
> Hello,
> Is it possible to query dns request by dnsmasq, from a
> windows workstation?
> I am using dnsmasq to serves query from the linux
> machine itself, and it work fine, but i am not able to
> make a another machine asking dnsmasq to give answer.
> (i dont want to use the dhcpd server include in
> dnsmasq)
> this the the log of dnsmasq:
> when i am doing : nslookup www.google.fr from a
> windows workstation
> dnsmasq[10809]: query[PTR]
> from
> dnsmasq[10809]: forwarded
> to
> is the interface where dnsmasq is
> working, is my ISP dns server. but then
> the windows workstation get this :
> *** Can't find server name for address
> Non-existent domain
> when i am doing the query from the linux machine
> itself, no problem.

Confusingly , nslookup is trying to do an address->name query on the 
address of it's nameserver _before_ it does the name->address query on 
www.google.fr. It does this so that it can tell you what nameserver it 
used, but then treats failure as a fatal error and never even tries to 
do what you asked. is a private address, so it's no surprise that looking it 
up in your ISPs nameserver fails.

To fix the problem, you need to add an entry for in 
/etc/hosts on the machine running dnsmasq. Then the query address->name 
query will work, and nslookup will do what you asked and try the 
name->address query for www.google.fr

dnsmasq is completely compatible with Windows. (or rather, both follow 
the DNS standard.)



More information about the Dnsmasq-discuss mailing list