4

Virtualbox provides two configuration flags to modify the DNS behavior of the NAT engine for a virtual machine:

However, I don't know how to obtain the state of those flags given an existing VM (e.g. a virtual machine called "VM name" like in the example above). Is there a way to do it?

2
  • 1
    Honestly, I don't think there is a way, via the command line, the read the current state of those settings (you could use the COM API or parse the XML file where the settings are stored). Why do you need to get the setting?
    – heavyd
    Jan 25, 2016 at 23:23
  • To identify what VMs are affected by this bug virtualbox.org/ticket/15074 . Looking into the settings file would be perfectly fine, hadn't thought about that, thanks! Want to add an answer? I could do it myself but the idea came from you.
    – fons
    Jan 26, 2016 at 9:42

1 Answer 1

1

If I am correct, as heavyd suggested, you can check current settings this way:

  1. open your VM's folder
  2. look for the file with .vbox extension, open it with any text editor
  3. look for the strings use-proxy="true" and use-host-resolver="true" to check current status of natdnsproxy1 and natdnshostresolver1 parameters. If one of these parameters (or both) is not present in the file, this means the parameter is set to off state.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .