<div dir="ltr">Hi,<br>First I want to thank for  creating this wonderful,powerful and also useful tool. You rock !<br><br>I am using it as my local DNS server. but I found it always listens on all the IP address and all interfaces on the machine ! But actually I want to make it listening on one IP address only.<br>
<br>I am reading the man pages , it seems we have some options to make work as what I want , I found these options listed below:<br><br><i><font color="#444444">-i, --interface=interface               Specify interface(s) to listen on.<br>
-a, --listen-address=ipaddr             Specify local address(es) to listen on.<br>-z, --bind-interfaces                   Bind only to interfaces in use.</font></i><div><br></div><div style>So in my test environment, I added two IP address as alias into lo0 which is local loop interface.</div>
<div style><br></div><div style><div><font color="#444444"><i>HA1#ifconfig lo0</i></font></div><div><font color="#444444"><i>lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384</i></font></div><div><font color="#444444"><i><span class="" style="white-space:pre">    </span>options=3<RXCSUM,TXCSUM></i></font></div>
<div><font color="#444444"><i><span class="" style="white-space:pre">     </span>inet6 ::1 prefixlen 128 </i></font></div><div><font color="#444444"><i><span class="" style="white-space:pre">     </span>inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 </i></font></div>
<div><font color="#444444"><i><span class="" style="white-space:pre">     </span>inet 127.0.0.1 netmask 0xff000000 </i></font></div><div><font color="#444444"><i><span class="" style="white-space:pre">   </span>inet 1.1.1.1 netmask 0xff000000 </i></font></div>
<div><font color="#444444"><i><span class="" style="white-space:pre">     </span>inet 2.2.2.2 netmask 0xff000000 </i></font></div><div><font color="#444444"><i><span class="" style="white-space:pre">     </span>nd6 options=3<PERFORMNUD,ACCEPT_RTADV></i></font></div>
<div><font color="#444444"><i>HA1#</i></font></div><div><br></div><div style>And I want to make the dnsmasq running on 1.1.1.1 IP , and I am going to have another DNS running on 2.2.2.2</div><div style><br></div><div style>
So the command like below</div><div style><br></div><div style>dnsmasq --local-ttl 1 --all-servers --rebind-localhost-ok --stop-dns-rebind --dns-forward-max=5000 --cache-size=10000<u> --listen-address=1.1.1.1 --interface=lo0 --bind-interfaces</u><br>
</div><div style><br></div><div style>and I found that it actually listening on all the local IP address</div><div style><br></div><div style><div><i><font color="#444444">HA1#netstat -an | grep 53</font></i></div><div><i><font color="#444444">tcp6       0      0 ::1.53                 *.*                    LISTEN</font></i></div>
<div><i><font color="#444444">tcp6       0      0 fe80:6::1.53           *.*                    LISTEN</font></i></div><div><i><font color="#444444">tcp4       0      0 <u>127.0.0.1.53   </u>        *.*                    LISTEN</font></i></div>
<div><i><font color="#444444">tcp4       0      0<u> 1.1.1.1.53  </u>           *.*                    LISTEN</font></i></div><div><font color="#444444"><i>tcp4       0      0<u> </u></i><u>2.2.2.2.53 </u> <i>           *.*                    LISTEN</i></font></div>
<div><i><font color="#444444">tcp4       0      0 192.168.255.1.53       *.*                    LISTEN</font></i></div></div><div><br></div><div style>Can someone help to point out what's not correct in my case ? I am waiting for help online , Thanks in advance .</div>
<div style><br></div><div style><br></div><div style>Best Regards,</div><div style>BYCN82</div><div><br></div></div></div>