<div dir="ltr"><div><div><div><div><div><div>Hi all!<br><br></div>Is there a way to listen on one interface multiple ip addresses? <br><br>like that:<br>eth1:0 10.0.0.1<br></div>.....<br></div>eth1:5 10.5.0.1<br><br></div>
<div>When I try to run multiple dnsmasq instances with separate configs and addresses to listen, I get error that address already in use and dnsmasq fails to bind to port 53. <br><br></div><div>I tried to redirect traffic to multiple instances running on ports 53-60 but It does not work at all(tcp redirect from 53 to destination port for subnet using iptables). All I get with that way is response telling me that "Unknown host hostname" except for instance running at 53 port;<br>
</div><div><br>Maybe, there is a way to serve different ip addresses to clients basing on their source network:<br></div><br></div><div>Like:<br></div>If client comes from <a href="http://10.0.0.0/24">10.0.0.0/24</a> and wants to know about <a href="http://domain.name">domain.name</a> he will receive response like 10.213.0.63;<br>
</div>If client comes from <a href="http://10.5.0.0/24">10.5.0.0/24</a> he will be forwarded to outer dns as there's no such local domain - <a href="http://domain.name">domain.name</a>.<br></div>