Bug or feature? listen on multiple IP addresses

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug or feature? listen on multiple IP addresses

Mohamed Lrhazi
Hello all,

Might be my understanding that has a bug though...

I have several IPs on my dns servers, say hostname and ns1.domain1,
ns1.domain2, ns1.domain3...
If I use:

# local-address Local IP address to which we bind
#
local-address=0.0.0.0

PDNS responds to all queries, no matter which IP they were addressed to
using source IP of : hostname.
This is not good, as the client that sends a UDP query to ns1.domain1
recieves an answer from hostname and sends an ICMP desctination port
unreachable in response to pdns response.

If I use local-address=ns1.domain1, then of course, pdns is no more
listening on all my other IPs.

I did not try local-address=hostname ns1.domain1 ns1.domain2

As it says Local IP and not Local IPs....

Any idea what the solution is? or what the problem is?

I am using: PDNS 2.9.5 on Aurora Linux Sparc

Thank you very much.
Mohamed~




Reply | Threaded
Open this post in threaded view
|

Re: Bug or feature? listen on multiple IP addresses

bert hubert
On Tue, Mar 04, 2003 at 12:30:33PM -0500, Mohamed Lrhazi wrote:

> If I use local-address=ns1.domain1, then of course, pdns is no more
> listening on all my other IPs.
>
> I did not try local-address=hostname ns1.domain1 ns1.domain2

from http://doc.powerdns.com/all-settings.html

local-address=...

    Local IP address to which we bind. You can specify multiple addresses
separated by commas or whitespace. It is highly advised to bind to specific
interfaces and not use the default 'bind to any'. This causes big problems
if you have multiple IP addresses. Unix does not provide a way of figuring
out what IP address a packet was sent to when binding to any


Regards,

bert

--
http://www.PowerDNS.com      Open source, database driven DNS Software
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
http://netherlabs.nl                         Consulting
Reply | Threaded
Open this post in threaded view
|

Re: Bug or feature? listen on multiple IP addresses

Mohamed Lrhazi

Thanks for the RTFM, it is working as documented.

Mohamed~


bert hubert wrote:

>  
>
>from http://doc.powerdns.com/all-settings.html
>
>
>  
>