Virtualbox provides two configuration flags to modify the DNS behavior of the NAT engine for a virtual machine:
VBoxManage modifyvm "VM name" --natdnsproxy1 on
VBoxManage modifyvm "VM name" --natdnshostresolver1 on
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?