[Dnsmasq-discuss] How to let dnsmasq using multiple upstream dns servers with non-standard ports.
simon at thekelleys.org.uk
Sat Sep 26 21:53:19 BST 2015
You can't put non-standard ports in a resolv-file, the format of those
files does not include ports.
It is possible to put a non-standard port in dnsmasq configuration files
So simply make your file look like
call it /path/to/servers.dnsmasq
and tell dnsmasq to read it as a dnsmasq configuration file.
sudo dnsmasq -d -p 5353 -C /path/to/servers.dnsmasq --all-servers
That should do the trick.
On 24/09/15 02:56, Hongyi Zhao wrote:
> Hi Simon,
> I have server upstream dns servers with non-standard ports opening for
> querying, i.e., as follows:
> I want to use the `--resolv-file=<path>' option to invoking the file
> which stored the infomation for these servers.
> Say, I named this file as resolv-file.dnsmasq, and its content has the
> following forms:
> server server1#port1
> server server2#port2
> server server3#port3
> server server4#port4
> Then I use the following command to run the dnsmasq:
> sudo dnsmasq -d -p 5353 -r /path/to/resolv-file.dnsmasq --all-servers
> But, at this step, I get the following errors:
> dnsmasq: no servers found in /path/to/resolv-file.dnsmasq, will retry
> So, how to let dnsmasq using multiple upstream dns servers with
> non-standard ports?
More information about the Dnsmasq-discuss