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. - : 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