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

2019-11-23 Thread Mingjian Hong
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 
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./#" ?  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@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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

2019-11-23 Thread Geert Stappers
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./#" ?  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@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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

2019-11-22 Thread Mingjian Hong
Hi,

Is it possible to make dnsmasq match all www.google.com.XX
using the "--server=/.google.com./#" ?  XX is the
country/area code, such as ar, hk, jp.

Regards,
hmj
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss