[Dnsmasq-discuss] Question about behaviour of '#' symbol
Matus UHLAR - fantomas
uhlar at fantomas.sk
Mon Mar 18 11:12:09 UTC 2024
On 18.03.24 09:41, Elias LA via Dnsmasq-discuss wrote:
>In mydnsmasq.conffile, I have either one of two sets of rules:
>
># Set 1:
>
>no-resolv
>server=8.8.8.8
>
>server=/firebaseio.com/#
>address=/*.firebaseio.com/
>
># Set 2:
>
>no-resolv
>server=8.8.8.8
>
>server=/firebaseio.com/8.8.8.8
>address=/*.firebaseio.com/
>
> Running `dig firebaseio.com` using Set 1 gives local address, but using
> `Set 2` give a valid server IP address. Why does not the first set give a
> valid IP? Is not the rule `server=/firebaseio.com/#`supposed to fetch the
> IP address from the "the standard servers" defined by `server=8.8.8.8`?
the dnsmasq documentation says in the "-S --local --server=" docs:
The special server address '#' means, "use the standard servers", so
--server=/google.com/1.2.3.4 --server=/www.google.com/# will send queries
for google.com and its subdomains to 1.2.3.4, except www.google.com (and
its subdo‐ mains) which will be forwarded as usual.
which usually means, use servers mentioned in /etc/resolv.conf for that
domain.
note that when you already have:
server=8.8.8.8
it's useless to specify any domains to the same server
>server=/firebaseio.com/8.8.8.8
you can skip this line.
--
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.
On the other hand, you have different fingers.
More information about the Dnsmasq-discuss
mailing list