[Dnsmasq-discuss] Domain name match in the --server option

Mingjian Hong hongmingjian at gmail.com
Sat Nov 23 15:48:45 GMT 2019


In the config file, I have to write several lines for all domains .
google.com.ar, .google.com.jp, etc. For example,

    server=/.google.com.ar/127.0.0.1#5053
    server=/.google.com.jp/127.0.0.1#5053

I just wonder it may be more friendly to use only one line, as follows,

   server=/.google.com./127.0.0.1#5053

to match any .google.com.XX

Regards
hmj



On Sat, Nov 23, 2019 at 11:05 PM Geert Stappers <stappers at stappers.nl>
wrote:

> On Fri, Nov 22, 2019 at 11:20:39PM +0800, Mingjian Hong wrote:
> > Hi,
> >
> >     Is it possible to make dnsmasq match all www.google.com.XX
> > using the "--server=/.google.com./<ipaddr>#<port>" ?  XX is the
> > country/area code, such as ar, hk, jp.
> >
>
> FWIW:  I have seen the "yes-no-question" and could not ignore it.
>
>
> I not aware of any syntax in the dnsmasq config parser
> that allows to express what original poster wants.
>
>
>
> Regards
> Geert Stappers
> Prefers smart questions  (
> http://www.catb.org/~esr/faqs/smart-questions.html )
> --
> Leven en laten leven
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20191123/0c8c921f/attachment.html>


More information about the Dnsmasq-discuss mailing list