[Dnsmasq-discuss] UDP DNS Requests

Simon Kelley simon at thekelleys.org.uk
Fri Jan 13 11:57:11 GMT 2012


On 12/01/12 01:56, Mike Owens wrote:
> I am able to get a UDP reply from the socket using nc. TCP requests are
> handled fine. No UDP requests show up in the log. UDP request to the
> upstream DNS server are answered fine when queried directly. Is there
> anything that can cause UDP requests to be blocked other than a
> firewall? The router isn't blocking UDP. This seems to be only dnsmasq.
>
> Output from Dig:
>
> [ ~]$ dig debian.org <http://debian.org> @192.168.1.115
> <http://192.168.1.115>
>
> ; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6 <<>> debian.org
> <http://debian.org> @192.168.1.115 <http://192.168.1.115>
> ;; global options: +cmd
> ;; connection timed out; no servers could be reached
> [ ~]$ dig +tcp debian.org <http://debian.org> @192.168.1.115
> <http://192.168.1.115>
>
> ; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6 <<>> +tcp debian.org
> <http://debian.org> @192.168.1.115 <http://192.168.1.115>
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34510
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;debian.org <http://debian.org>.            IN    A
>
> ;; ANSWER SECTION:
> debian.org <http://debian.org>.        1992    IN    A    206.12.19.7
> debian.org <http://debian.org>.        1992    IN    A    128.31.0.51
>
> ;; Query time: 56 msec
> ;; SERVER: 192.168.1.115#53(192.168.1.115)
> ;; WHEN: Wed Jan 11 17:47:47 2012
> ;; MSG SIZE  rcvd: 60
>
>

So what happens if you

dig @127.0.0.1 debian.org

on the machine running dnsmasq?

Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list