Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Kommando-Beispiele. "[...]" und "888..." sind variabel und vom jeweils verwendeten System abhängig.
- Die " sind nur dann zwingend nötig, wenn der Name Leerzeichen (Blanks) enthält.
- First, the network name is likely "Ethernet", not "Local Area Connection". To find out the name you can do this:
- PS> netsh int show interface
- PS> netsh interface ipv4 show dnsserver "LAN-Verbindung"
- Now you can change the primary dns (index=1), assuming that your interface is static (not using dhcp):
- PS> netsh interface ipv4 add dnsserver "Ethernet" address=888.888.x.x index=1
- To change DNS to automatic via command, type the following:
- PS> netsh interface ip set dns "Local Area Connection" dhcp
- PS> Start-Process powershell -Verb runAs
- PS> netsh interface ipv4 set dnsservers name="LAN-Verbindung" static 888.888.888.888 primary
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement