[Dnsmasq-discuss] Two issues on using the server option.

Hongyi Zhao hongyi.zhao at gmail.com
Thu Oct 1 16:40:31 BST 2015


Hi Simon,

Please see the following two commands to running the dnsmasq:

$ sudo dnsmasq -d -q -R -h --server=/google.com/8.8.8.8#53
--server=/google.com/8.8.4.4#53 -p 5356 --no-poll --all-servers
dnsmasq: started, version 2.76test1-11-g4790115 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP
DHCPv6 Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
dnsmasq: using nameserver 8.8.4.4#53 for domain google.com
dnsmasq: using nameserver 8.8.8.8#53 for domain google.com
dnsmasq: cleared cache


$ sudo dnsmasq -d -q -R -h --server=/google.com/8.8.8.8#53
--server=/google.com/8.8.4.4#53 -p 5356 --no-poll --all-server
dnsmasq: started, version 2.76test1-11-g4790115 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP
DHCPv6 Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
dnsmasq: using nameserver 8.8.4.4#53 for domain google.com
dnsmasq: using nameserver 8.8.8.8#53 for domain google.com
dnsmasq: cleared cache

About the above two commands, I have two issues:

1-  It seems both of the `--all-server' and `--all-servers' are
accepted by dnsmasq.  But according to the manpage, the correct usage
should be `--all-servers'.  Any hints on this issue?

2-  As you can see, in the above example, I use two nameservers as the
resolvers for one specific domain.  I think if I can write them in the
following form and it will be more concise:

(Note, the port number here can be negleted because it's  equql to the
53, I write here just for representation the more general form of this
option)

--server=/google.com/8.8.8.8#53,8.8.4.4#53

But, I try the above form and dnsmasq failed to recgonize this form
thus failed to start.

How about my suggstions on using this form with dnsmasq?

Regards
-- 
Hongyi Zhao <hongyi.zhao at gmail.com>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493



More information about the Dnsmasq-discuss mailing list