[Dnsmasq-discuss] How to specify abc.com and *.abc.com to different address

zhiwei zhiweik at gmail.com
Sun Feb 15 12:26:07 GMT 2015


Thanks, I see.

On Sun, Feb 15, 2015 at 7:39 PM, Chen Wei <weichen302 at icloud.com> wrote:
> On Sun, Feb 15, 2015 at 06:48:15PM +0800, zhiwei wrote:
>> I don't know how to set 'abc.com to 1.1.1.1'
>> and '*.abc.com to 1.1.1.2'.
>> (set address=/abc.com/1.1.1.1 and address=/.abc.com/1.1.1.2 in
>> configure file did not work)
>
> /abc.com/ is equal to /.abc.com/, at least it applies to --server,
> --address, --local, and --rebind-domain-ok configurations.
>
> You have to specify the "*" part of /*.abc.com/ one by one, as
> address=/x.abc.com/=1.1.1.2
> address=/y.abc.com/=1.1.1.2
> address=/z.abc.com/=1.1.1.2
>
> the longest match will win.
>
>
> --
> Chen Wei
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss



More information about the Dnsmasq-discuss mailing list