If I have 2 or more net interfaces on my host, and each interface connect to a large private network( A and B). each private network has their own DNS server. Now, on my host, I launch the www browser. when I want browse the website in A, I enter www.website.a into address bar, browser will lookup the IP of this site based on the dns setting in /etc/resolv.conf. When I enter www.website.b into address bar, it will also do the same thing. If the DNS servers are below for A and B: A: 200.61.2.100 200.61.2.101 B: 202.10.210.1 202.10.210.2 if I just list them all in the /etc/resolv.conf is enough to let browser can access websites in A and B? nameserver 200.61.2.100 nameserver 200.61.2.101 nameserver 202.10.210.1 nameserver 202.10.210.2 thanks -----Original Message----- From: Milan P. Stanic [mailto:mps@rns-nis.co.yu] Sent: Wednesday, November 20, 2002 7:52 PM To: linux-net@vger.kernel.org Subject: Re: DNS for multi-interfaces host On Wed, Nov 20, 2002 at 03:21:33PM +0800, Yuan Huailin-w19410 wrote: > in the file /etc/resolv.conf, we can assign IP address of DNS server > with nameserver keyword. Well, it is there for many years. > When the DNS query UDP packet is sent, kernel can know which > interface this packet will go to. Kernel's knowledge where to send packet comes from routing table. > So, DNS setting for every interface has its meaning. No, it doesn't in the context of your question. > I don't know how did the Windows system implement it, It is simple and like in other operating systems. If the interface is up, system will send packet over it but will first look routing table. If the interface is down it "will not" send packet over it, obviously. > Where the DNS server information is stored? In registry, I presume ;-) Milan - : 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 - : 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