[Dnsmasq-discuss] dnsmasq forwards "localhost" queries to upstream servers

Matus UHLAR - fantomas uhlar at fantomas.sk
Thu Oct 15 15:42:18 BST 2020


On 15.10.20 14:17, SALA MASSIMO wrote:
>This files are the configuration:
>/etc/hosts
>127.0.0.1       localhost localhost.example.local postgresqldb postgresqldb.example.local
>
>dnsmasq.conf
># don't read /etc/resolv.conf
>no-resolv
>domain=example.local,10.0.0.0/8
>domain-needed
>server=/example.local/10.1.1.1
>server=/example.local/10.1.1.2
>server=/10.in-addr.arpa/10.1.1.1
>server=/10.in-addr.arpa/10.1.1.2
>bogus-priv
># exempt 127.0.0.0/8 from rebinding checks; range used by DBL
>rebind-localhost-ok
>log-queries
>log-facility=/var/log/dnsmasq.log
>
>
>There are these lines in the log:
>Oct 15 12:16:16 dnsmasq[32176]: query[A] localhost.(none).example.local from 127.0.0.1
>Oct 15 12:16:16 dnsmasq[32176]: forwarded localhost.(none).example.local to 10.1.1.2
>Oct 15 12:16:16 dnsmasq[32176]: forwarded localhost.(none).example.local to 10.1.1.1
>
>
>Why does dnsmasq forward "localhost" queries to upstream servers?
>How can I configure dnsmasq to directly reply to queries to localhost.* ?


the query is not for "localhost" but for "localhost.(none).example.local".

while it's clearly broken query, it's not on dnsmasq to check.

find out who issues those queries and fix it.


-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
42.7 percent of all statistics are made up on the spot.



More information about the Dnsmasq-discuss mailing list