RE: DNS for multi-interfaces host

From: Yuan Huailin-w19410 (H.L.Yuan@motorola.com)
Date: Wed Nov 20 2002 - 02:24:30 EST


bind to a device?

Could you give me a code segment? I really don't know how to do it, thanks

-----Original Message-----
From: Dheeraj Pandey [mailto:dheeraj@Zambeel.com]
Sent: Wednesday, November 20, 2002 3:14 PM
To: 'Yuan Huailin-w19410'; Glynn Clements
Cc: linux-net@vger.kernel.org
Subject: RE: DNS for multi-interfaces host

> Yes, I mean DNS server.
>
> This bring another question, When network application want to
> connect a host, how does it choice the interface?

You can make the socket bind to a device, in which case the outgoing pkt
will be routed with the device "hint". Otherwise, the Linux FIB (Forwarding
Information Base) will choose a route for you-- the outgoing interface is a
part of this route.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:00 EST