[Dnsmasq-discuss] Forwarding all DNS requests (wildcard effectively) to single upstream server

Vladislav Grishenko themiron at mail.ru
Wed May 22 16:28:01 BST 2013


> From: Stuart Jenkins
> Sent: Wednesday, May 22, 2013 2:44 AM
>
>I thought a quick one line in the /etc/dnsmasq.conf file would be the
solution (a variant of)
>server=[/[<domain>]/[domain/]][<ipaddr>[#<port>][@<source-ip>|<interface>[#
<port>]]
>But apparently server=//a.b.c.d will not work as: "An empty domain
specification, // has the special meaning of "unqualified names only" ie
names without any dots in them. "
>I know I am missing something - any hints?

"server=/#/a.b.c.d" does what you need, # matches everything and becomes a
zero length domain string.

Best Regards, Vladislav Grishenko





More information about the Dnsmasq-discuss mailing list