[Dnsmasq-discuss] tags in opts file

Simon Kelley simon at thekelleys.org.uk
Mon Dec 23 11:12:14 GMT 2013


On 20/12/13 12:54, Shixiong Shang wrote:
> Hi, experts:
>
> I have an opts_file which contains the entries for two tags, tag0 and
> tag1. Two dnsmasq instances are sharing the same opts_file. In this
> case, is it possible to let the first dnsmasq only read the opts
> entires beginning with tag0, and let the 2nd dnsmasq instance only
> read the opts entries beginning with tag1?

Yes, just arrange for tag0 to always be set in first instance, and tag1 
in the second. The tag-if dnsmasq option should help you do this.


Cheers,

Simon.

>
>
> /var/lib/app/b3051625-e7de-4500-99d9-e9e80f5a8349/opts
>
> tag:tag0,option6:dns-server,[2001:4860:4860::8888]
> tag:tag0,option6:domain-search,sandbox.com
> tag:tag1,option:dns-server,8.8.8.8
> tag:tag1,option:router,192.168.3.1
>
>
>
> dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces
> --except-interface=lo --leasefile-ro
> --dhcp-range=set:tag0,192.168.2.0,static,86400s
> --dhcp-optsfile=/var/lib/app/b3051625-e7de-4500-99d9-e9e80f5a8349/opts
> --dhcp-hostsfile=/var/lib/app/b3051625-e7de-4500-99d9-e9e80f5a8349/host
> --dhcp-lease-max=256 --interface=ns-43a4981b-48
> --pid-file=/var/lib/app/b3051625-e7de-4500-99d9-e9e80f5a8349/pid
>
> dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces
> --except-interface=lo --leasefile-ro --enable-ra
> --dhcp-range=set:tag1,2001:db8:2::,ra-stateless,86400s
> --dhcp-optsfile=/var/lib/app/b3051625-e7de-4500-99d9-e9e80f5a8349/opts
> --interface=qr-d104fbe1-04
> --pid-file=/var/lib/app/b3051625-e7de-4500-99d9-e9e80f5a8349/ipv6pid
>
>
> Thanks!
>
> Shixiong
>
>
> _______________________________________________ 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