- Thread Author
- #1
My WiFi NIC will always use 127.0.0.1 when its TCP/IP settings are on DHCP. If I change to static no issue but as you can imagine this creates some unwanted issues every time I connect with my laptop to a new WiFI network (as the address range is different)
	
	
	
		
So Interface index 6
Now check this out:
	
	
	
		
You see? I can set it manually but as soon as I set DHCP it autoset itself to 127.0.0.1.
This is not a DHCP issue as my Android mobile phone works perfectly on the same network.
Has anyone an idea on how to fix this?
Thanks!!
				
			
		Code:
	
	InterfaceAlias               Interface Address ServerAddresses
                             Index     Family
--------------               --------- ------- ---------------
Ethernet                            18 IPv4    {}
Ethernet                            18 IPv6    {}
Resetting DNS servers on interface Wi-Fi - the system will use default DNS service.
-InputObjext
Wi-Fi                                6 IPv4    {127.0.0.1}
Wi-Fi                                6 IPv6    {}So Interface index 6
Now check this out:
		Code:
	
	PS C:\Program Files\Stubby> Set-DnsClientServerAddress -InterfaceIndex 6 -ResetServerAddresses
PS C:\Program Files\Stubby> get-dnsclientserveraddress Wi-Fi
InterfaceAlias               Interface Address ServerAddresses
                             Index     Family
--------------               --------- ------- ---------------
Wi-Fi                                6 IPv4    {127.0.0.1}
Wi-Fi                                6 IPv6    {}
PS C:\Program Files\Stubby> Set-DnsClientServerAddress -InterfaceIndex 6 -ServerAddresses ("10.10.6.1")
PS C:\Program Files\Stubby> get-dnsclientserveraddress Wi-Fi
InterfaceAlias               Interface Address ServerAddresses
                             Index     Family
--------------               --------- ------- ---------------
Wi-Fi                                6 IPv4    {10.10.6.1}
Wi-Fi                                6 IPv6    {}
PS C:\Program Files\Stubby> Set-DnsClientServerAddress -InterfaceIndex 6 -ResetServerAddresses
PS C:\Program Files\Stubby> get-dnsclientserveraddress Wi-Fi
InterfaceAlias               Interface Address ServerAddresses
                             Index     Family
--------------               --------- ------- ---------------
Wi-Fi                                6 IPv4    {127.0.0.1}
Wi-Fi                                6 IPv6    {}You see? I can set it manually but as soon as I set DHCP it autoset itself to 127.0.0.1.
This is not a DHCP issue as my Android mobile phone works perfectly on the same network.
Has anyone an idea on how to fix this?
Thanks!!
 
 
		 
 
		 
 
		 
 
		