Page 1 of 1

User-defined host name resolving not working

Posted: 17. Aug 2013, 02:16
by vannier5
I have set up User-defined host name resolving per the docs and it does not seem to be working.

Host: MacBook Pro v 10.8.4 Guest: RHEL 6.4

Settings:
$ VBoxManage modifyvm "rhevm" --natdnshostresolver1 on
$ VBoxManage setextradata "rhevm" "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/googleTest/HostNamePattern" "*.google.*"
$ VBoxManage setextradata "rhevm" "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/googleTest/HostIP" 127.0.0.1

nslookup output:
# nslookup google dot com
Server: 10.0.2.3
Address: 10.0.2.3#53

Name: google dot com
Address: 74.125.225.193
Name: google dot com
Address: 74.125.225.192
Name: google dot com
Address: 74.125.225.206
Name: google dot com
Address: 74.125.225.200

Server looks correct and the log shows that the assignment was made.

$ cat VBox.log | grep NAT
00:00:00.567356 Driver <string> = "NAT" (cb=4)
00:00:00.684655 NAT: user-defined mapping *.google.*: 127.0.0.1 is registered

Thanks!

Re: User-defined host name resolving not working

Posted: 17. Aug 2013, 03:36
by Perryg
Looks like it is working. What exactly are you trying to achieve?

Re: User-defined host name resolving not working

Posted: 17. Aug 2013, 03:42
by vannier5
The expected reply should be 127.0.0.1 not the actual DNS entries.

Re: User-defined host name resolving not working

Posted: 17. Aug 2013, 04:01
by Perryg
My question remains. What exactly are you trying to achieve?

Re: User-defined host name resolving not working

Posted: 17. Aug 2013, 04:51
by vannier5
I want dns to reply with 127.0.0.1 when doing a query for google dot com.

Docs (help guide section 9.12.6.1. User-defined host name resolving) state this can be done with the commads I've outlined above.