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!
User-defined host name resolving not working
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: User-defined host name resolving not working
Looks like it is working. What exactly are you trying to achieve?
Re: User-defined host name resolving not working
The expected reply should be 127.0.0.1 not the actual DNS entries.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: User-defined host name resolving not working
My question remains. What exactly are you trying to achieve?
Re: User-defined host name resolving not working
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.
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.