Commit 776f392c by Bach Dániel

add windows dns conf

parent a165dfb6
...@@ -80,3 +80,9 @@ def change_ip_windows(interfaces, dns): ...@@ -80,3 +80,9 @@ def change_ip_windows(interfaces, dns):
pass pass
check_output('netsh interface ipv6 add route ::/0 interface=%s %s' check_output('netsh interface ipv6 add route ::/0 interface=%s %s'
% (nic.InterfaceIndex, conf['gw6']), shell=True) % (nic.InterfaceIndex, conf['gw6']), shell=True)
try:
check_output('netsh interface ipv4 add dnsserver %s '
'address=%s index=1'
% (nic.InterfaceIndex, dns), shell=True)
except CalledProcessError:
pass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment