<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Frank,</DIV>
<DIV> </DIV>
<DIV>Yes, you are right. From the vbox.log, I found those "NAT: DNS" lines, it indeed picked the wrong DNS server. It basically pick the DNS from the internal network, rather the interface that can browse internet.</DIV>
<DIV> </DIV>
<DIV>I also verified that IE works from vm is using ip address directly, so it's purely DNS issue.</DIV>
<DIV> </DIV>
<DIV>Perhaps, can perform some kind of checks, and pick the DNS that can resolve internet names?</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Huihong<BR><BR>--- On <B>Thu, 12/18/08, Frank Mehnert <I><Frank.Mehnert@Sun.COM></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">From: Frank Mehnert <Frank.Mehnert@Sun.COM><BR>Subject: Re: [vbox-dev] NAT/slirp issue?<BR>To: vbox-dev@virtualbox.org<BR>Date: Thursday, December 18, 2008, 9:30 AM<BR><BR><PRE>On Thursday 18 December 2008, Huihong Luo wrote:
> I have a windows xp host PC that has two network interfaces, one is for
> internal local network without internet connection, the other can connect
> to internet. These two interfaces have 2 different IPs. 
> Somehow, vbox vm (configured as NAT) running on this pc can NOT browse any
> internet websites, but it works for the local network. I checked the
> settings inside vm, the adapter and ip are correct, and there is traffice
> between this vm and the host. 
> It seems somehow the vm is hooked to the internal network on host, rather
> than the one that can browse internet. I don't know how slirp works
> internally, but I assume it uses windows socket api to send/receive
> packets. Any chance that traffic is bounded to a specific interface? 

Please try again in NAT mode. Then have a look at the VBox.log
file yourself. Search for 'NAT: ...' lines and have a look at
lines which mention name servers. Please check if the correct
name server is passed to the guest.

Kind regards,

Frank
-- 
Dr.-Ing. Frank Mehnert    Sun Microsystems    http://www.sun.com/
</PRE><PRE>_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev
</PRE></BLOCKQUOTE></td></tr></table>