[Dnsmasq-discuss] Cannot seem to get -S flag to work

Paul Bourke paul.bourke at oracle.com
Thu Nov 5 17:38:28 GMT 2015


Hi,

If I add the following entry to /etc/dnsmasq.conf

address=/thekelleys.org.uk/192.168.0.2

Then the result is as expected:

$ dig +short thekelleys.org.uk
192.168.0.2

However, if I stop the dnsmasq service, remove the above entry from 
/etc/dnsmasq.conf, and run my own as follows:

$ sudo dnsmasq -k --server=/thekelleys.org.uk/192.168.0.2

The redirection doesn't seem to work:

$ dig +short thekelleys.org.uk
213.138.109.107

Is there anything I'm missing here?

Basic system info:

$ cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)

$ yum list installed | grep dnsmasq
dnsmasq.x86_64                   2.66-14.el7_1 
@updates

Thanks,
-Paul



More information about the Dnsmasq-discuss mailing list