﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
7138	Snow Leopard: NAT: Host Resolver not working. -> fixed in svn	Stephen Bannasch		"I have local domain names specified on my Snow Leopard host that resolve to 127.0.0.1 and normally use these on port 80 for web applications proxied with Apache virtual hosts.  I would like to be able to use these domain names from my Windows XP guest to access the web applications running on the host.

When I switch the networking selection to NAT I get this error:

{{{
00:00:00.767 NAT: Host Resolver conflicts with DNS proxy, the last one was forcely ignored
}}}

and I am not able to resolve the local DNS names.

The dns entries are created two different ways on the MacOS X host (both ways work on the host).

Adding entries to /etc/hosts

{{{
27.0.0.1       testrails
}}}

Using the command line tool dscl

{{{
sudo dscl localhost -create /Local/Default/Hosts/smartgraph-demos IPAddress 127.0.0.1
}}}

Both of these domain names resolve to Rails applications served by Apache virtual hosts.

Testing from the host system:

testrails (in /etc/hosts):

{{{
$ curl -I http://testrails
HTTP/1.1 200 OK
Date: Wed, 07 Jul 2010 22:18:47 GMT
Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 Phusion_Passenger/2.2.15
Last-Modified: Wed, 23 Jun 2010 15:03:25 GMT
ETag: ""7b7f6a-1ace-489b3d6ef4940""
Accept-Ranges: bytes
Content-Length: 6862
Content-Type: text/html
}}}

smartgraph-demos (using dscl):

{{{
$ curl -I http://smartgraph-demos
HTTP/1.1 200 OK
Date: Wed, 07 Jul 2010 22:17:44 GMT
Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 Phusion_Passenger/2.2.15
Last-Modified: Wed, 23 Jun 2010 15:03:25 GMT
}}}

When I run nslookup in the Windows XP command prompt it reports:

{{{
*** Can't find server for address 10.0.2.3: Non-existent domain
*** Default servers are not available
Default Server: Unknown
Address: 10.0.2.3
}}}

Further nslookup queries to valid non-local dns names complete successfully however queries for the locally-defined dns entries produce ""Non-existent domain"" errors.
"	defect	closed	network/NAT	VirtualBox 3.2.6	fixed			Windows	Mac OS X
