[Dnsmasq-discuss] Enquiry about default server
Geert Stappers
stappers at stappers.nl
Fri Mar 29 15:54:05 UTC 2024
On Tue, Mar 26, 2024 at 10:58:11PM +0000, Elias LA via Dnsmasq-discuss wrote:
> In my dnsmasq.conf file,
> I have a blanket block rule to block everything:
>
> no-resolv
> server=8.8.8.8
>
> address=/#/0.0.0.0
>
> Before this rule, I would like to allow exceptions, say for example
> gitlab.com. The problem I am having is that this rule:
>
> server=/gitlab.com/#
>
> Does not work, and I have to use instead:
>
> server=/gitlab.com/8.8.8.8
>
> So why is not the '#' translating into the default server 8.8.8.8?
Mmm, though one. Manual page says about #
--server=[/[<domain>]/[domain/]][<server>[#<port>]][@<interface>][@<source-ip>[#<port>]]
A non-standard port may be specified as part of the IP address using a # character.
and
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
subdomains) which will be forwarded as usual.
Beside the "valid question", I don't get the
> server=8.8.8.8
> server=/gitlab.com/8.8.8.8
combination. The second line is NOT needed.
The
> address=/#/0.0.0.0
is another configuration I don't get.
So I think there are two problems. One how to use # character for server.
The other one original poster having a hard time configuring dnsmasq
for their need. I hope that follow-up messages only follow-up one
problem and have a matching subject line.
Groeten
Geert Stappers
--
Silence is hard to parse
More information about the Dnsmasq-discuss
mailing list