Discussion:
[Dnsmasq-discuss] Listen and Query on different interfaces
Jois, Diwakar (Nokia - IN/Bangalore)
2015-11-16 13:40:18 UTC
Permalink
Hi,

We are using dnsmasq as a proxy.
Dnsmasq has to listen on w.x.y.z interface (port 53) and send query over a.b.c.d interface.
Is this pssobile?
Please let us know.

I tried following config and it dint help:
bind-interfaces
listen-address=127.0.0.1,w.x.y.z,a.b.c.d
query-port=6089

If I remove bind-interfaces, listen-address params, it works fine.

With Best Regards,
Diwakar
Jois, Diwakar (Nokia - IN/Bangalore)
2015-11-16 14:31:27 UTC
Permalink
Hi,

The use case is, w.x.y.x is on an internal LAN with no direct access to external DNS server. A.b.c.d interface can access external DNS server and dnsmas can proxy DNS queries over this interface.

With Best Regards,
Diwakar


From: Jois, Diwakar (Nokia - IN/Bangalore)
Sent: Monday, November 16, 2015 7:10 PM
To: 'dnsmasq-***@lists.thekelleys.org.uk'
Subject: Listen and Query on different interfaces

Hi,

We are using dnsmasq as a proxy.
Dnsmasq has to listen on w.x.y.z interface (port 53) and send query over a.b.c.d interface.
Is this pssobile?
Please let us know.

I tried following config and it dint help:
bind-interfaces
listen-address=127.0.0.1,w.x.y.z,a.b.c.d
query-port=6089

If I remove bind-interfaces, listen-address params, it works fine.

With Best Regards,
Diwakar
Albert ARIBAUD
2015-11-16 14:35:48 UTC
Permalink
Hi Diwaka,

Le Mon, 16 Nov 2015 13:40:18 +0000
Post by Jois, Diwakar (Nokia - IN/Bangalore)
Hi,
We are using dnsmasq as a proxy.
Dnsmasq has to listen on w.x.y.z interface (port 53) and send query
over a.b.c.d interface. Is this pssobile?
If I'm not mistaken, the interface over which the query will be sent
depends on the IP address of the queried server and the routing table
of the host running dnsmasq.
Post by Jois, Diwakar (Nokia - IN/Bangalore)
Please let us know.
bind-interfaces
listen-address=127.0.0.1,w.x.y.z,a.b.c.d
query-port=6089
If I remove bind-interfaces, listen-address params, it works fine.
You are not providing enough information to help solve your issue.

First, you did not describe your issue beyond a quite generic and even
implicit "does not work". What does not work exactly? Does the dnsmasq
host emit queries on the wrong interface? Does it emit them on the
right interface but with a bad source IP? Something else?

Also, which interfaces does the dnsmasq host have? Which addresses,
netmasks and gateways are defined for each interface? What does the
routing table look like? What is the address of the server you are
trying to reach? Is it reachable by ping? By dig? Etc.
Post by Jois, Diwakar (Nokia - IN/Bangalore)
With Best Regards,
Diwakar
Amicalement,
--
Albert.
Loading...