Method: VMC::Micro::Switcher::Windows#set_nameserver
- Defined in:
- lib/vmc/micro/switcher/windows.rb
#set_nameserver(domain, ip) ⇒ Object
TODO better method to figure out the interface name is to get the NAT ip and find the interface with the correct subnet
22 23 24 |
# File 'lib/vmc/micro/switcher/windows.rb', line 22 def set_nameserver(domain, ip) adminrun("netsh", "interface ip set dns \"VMware Network Adapter VMnet8\" static #{ip}") end |