[Dnsmasq-discuss] DNS does not work (UNCLASSIFIED)

Hakenson, Gary C CIV USA ATEC gary.hakenson at us.army.mil
Mon Apr 26 22:09:18 BST 2010


Classification: UNCLASSIFIED
Caveats: FOUO

I don't want queries to go to upstream DNS servers. I only want to use
the local /etc/hosts file.

I ran tcpdump on the dnsmasq machine and I can see the DNS queries
coming in but dnsmasq is not responding.

Syslog shows the dnsmasq is not responding either.

Thanks,
Gary

-----Original Message-----
From: Simon Kelley [mailto:simon at thekelleys.org.uk] 
Sent: Monday, April 26, 2010 2:00 PM
To: Hakenson, Gary C CIV USA ATEC
Cc: dnsmasq-discuss at lists.thekelleys.org.uk
Subject: Re: [Dnsmasq-discuss] DNS does not work (UNCLASSIFIED)

Hakenson, Gary C CIV USA ATEC wrote:
> Classification: UNCLASSIFIED
> Caveats: FOUO
> 
> 
> 
> I am using dig to send a query to dnsmasq but I never get a response
> back, the connection times out.
> 
>  
> 
>  
> 
>  
> 
> My dnsmasq.conf looks like this:
> 
>  
> 
>  
> 
>  
> 
> no-resolv
> 
>  
> 
> local=/localdomain/
> 
>  
> 
> expand-hosts
> 
>  
> 
> domain=localdomain
> 
>  
> 
>  
> 
>  
> 
> Any suggestions would be appreciated.
> 
>  

You're stopping dnsmasq from getting upstream DNS servers from
/etc/resolv.conf (no-resolv) but you're not supply any other
nameservers. I wouldn't expect queries to time out, but I would expect
them to fail.

Try adding

log-queries

to /etc/dnsmasq.conf and then looking in the syslog, you should be able
to see if queries are getting to dnsmasq and if so what it's doing with
them.


Cheers,

Simon.
Classification: UNCLASSIFIED
Caveats: FOUO





More information about the Dnsmasq-discuss mailing list