[Dnsmasq-discuss] tags in opts file

Shixiong Shang sparkofwisdom.cloud at gmail.com
Fri Dec 20 12:54:39 GMT 2013


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?


/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




More information about the Dnsmasq-discuss mailing list