natdnshostresolver

This is for discussing general topics about how to use VirtualBox.
Post Reply
Michael8773
Posts: 5
Joined: 17. Oct 2016, 21:01

natdnshostresolver

Post by Michael8773 »

Hello,

In testing some network settings I issued this command:

Code: Select all

VBoxManage modifyvm "guest1" --natdnshostresolver1 on
Before it I could do nslookups from that server after it I cannot. Even after I (think) I reset it back via: VBoxManage modifyvm "guest1" --natdnshostresolver1 off

1. How can I see what the currrent value is of "guest1" --natdnshostresolver1?

2. What is the correct command to turn it off?

Thanks,

Michael
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: natdnshostresolver

Post by socratis »

That is the correct command to reset the value. AFAIK, you can't see the current value, the only thing you could do is to open the .vbox file for the VM and see if the value "<DNS use-host-resolver="true"/>" exists or not.

Do not modify the file directly unless you know what you're doing.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Michael8773
Posts: 5
Joined: 17. Oct 2016, 21:01

Re: natdnshostresolver

Post by Michael8773 »

socratis thanks - that was very useful.

That is really good info to know.
Post Reply