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

richardvoigt at gmail.com richardvoigt at gmail.com
Mon Apr 26 22:25:49 BST 2010


On Mon, Apr 26, 2010 at 4:09 PM, Hakenson, Gary C CIV USA ATEC
<gary.hakenson at us.army.mil> wrote:
> 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.

Try terminating dnsmasq and instead running netcat, which will print
out the first packet which arrives to the sockets API.

nc -u -l -p 53

If you don't receive queries, you most likely have a packet filter
blocking them.


>
> 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
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>



More information about the Dnsmasq-discuss mailing list