scottmuc / infrastructure

Documentation / Automation for personal third-party infrastructure
The Unlicense
10 stars 2 forks source link

Disable IPv6 on Windows #13

Closed scottmuc closed 4 years ago

scottmuc commented 4 years ago

Objective

My local DNS server is only listening on IPv4. At the moment, my Windows PC prefers IPv6 so it ends up using my routers DNS server instead.

Notes

This looks straightforward enough with powershell: https://giritharan.com/disable-ipv6/

A comment in that article links to Microsoft's recommendation to not disable IPv6 but to lower its priority: https://support.microsoft.com/en-us/help/929852/guidance-for-configuring-ipv6-in-windows-for-advanced-users

I really don't know too much about IPv6 except that one of the things it is trying to solve the scarcity of IPv4 addresses. It appears that it's bringing a lot more features and changes that I believe one needs to understand before implementing it in their home: https://www.youtube.com/watch?v=z7Al3P8ShM8. Some admin perspectives are discussed here: https://2.5admins.com/2-5-admins-05/

scottmuc commented 4 years ago

The above commands don't seem to play nicely with Boxstarter:

ERROR: A positional parameter cannot be found that accepts argument 'ms_tcpip6'.
The install of tmp93cf.tmp was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\tmp93CF.tmp\tools\ChocolateyInstall.ps1'.
 See log for details.

When I type the file I see there is encoding problems:

Disable-NetAdapterBinding –InterfaceAlias "Ethernet" –ComponentID "ms_tcpip6"