From a165fbef04e3e3a90b8f61aa686670455d896ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelo=20Gon=C3=A7alves?= Date: Wed, 24 Sep 2014 16:19:45 -0300 Subject: [PATCH 1/2] Fixed a typo in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 04405ea..27e065f 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ Installing dnsmasq is a good way to test it: ```bash $ sudo yum install dnsmasq -$ dnsmaqs -p 5353 --no-daemon --address=/test.dev/127.0.0.1 +$ dnsmasq -p 5353 --no-daemon --address=/test.dev/127.0.0.1 ``` Now you can try this: From 8ad6956bfe2870a9c52588c4f2099ab045b11cff Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 26 Sep 2014 17:10:11 -0300 Subject: [PATCH 2/2] Recommend `--bind-interfaces` when using `dnsmasq` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because of LXC I have another dnsmasq instance running on my machine and I was seeing some weird behavior when creating / destroying docker / lxc containers. I'm not sure if it is related but it made my setup a whole lot more stable ``` -z, --bind-interfaces On systems which support it, dnsmasq binds the wildcard address, even when it is listening on only some interfaces. It then discards requests that it shouldn't reply to. This has the advantage of working even when interfaces come and go and change address. This option forces dnsmasq to really bind only the interfaces it is listening on. About the only time when this is useful is when running another nameserver (or another instance of dnsmasq) on the same machine. Setting this option also enables multiple instances of dns‐ masq which provide DHCP service to run in the same machine. ``` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 27e065f..e32b465 100644 --- a/README.md +++ b/README.md @@ -93,14 +93,14 @@ Installing dnsmasq is a good way to test it: ```bash $ sudo yum install dnsmasq -$ dnsmasq -p 5353 --no-daemon --address=/test.dev/127.0.0.1 +$ dnsmasq --bind-interfaces -p 5353 --no-daemon --address=/test.dev/127.0.0.1 ``` Now you can try this: ```bash # ping sufix -$ ping test.dev +$ ping test.dev # or any "subdomain" $ ping any.test.dev ```