Discussion:
[Dnsmasq-discuss] Cannot seem to get -S flag to work
Paul Bourke
2015-11-05 17:38:28 UTC
Permalink
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

Loading...