Windows remembers old DNS suffix












3















I just changed the DNS domain of my local network from home.local to mydomain.local, after purchasing mydomain.com. I made all the necessary changes in my BIND and DHCP server, and linux clients on the network now have domain mydomain.local in their /etc/resolv.conf and seem to be working as expected.



However, Windows machines (Win 8.1, not joined to a domain) still seem to hang on to the home.local domain in it's DNS Suffix Search List. I have released my lease, removed network profiles, scanned the registry, grep:ed the entire dns/dhcp server for occurences of the old domain, rebooted everything... Still, the windows machines keep searching home.local.



Output from ipconfig /all on an affected machine:



Windows IP Configuration

Host Name . . . . . . . . . . . . : MY-MACHINE
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : home.local

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . : mydomain.local
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : 00-11-22-33-44-55
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::1234:1234:1234:1234%3(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.97(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : den 24 januari 2015 19:42:25
Lease Expires . . . . . . . . . . : den 25 januari 2015 19:43:27
Default Gateway . . . . . . . . . : fe80::1111:2222:3333:4444%3
192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.10
DHCPv6 IAID . . . . . . . . . . . : 12312312
DHCPv6 Client DUID. . . . . . . . : 00-11-22-33-44-55-66-77-88-99-AA-BB-CC-DD

DNS Servers . . . . . . . . . . . : 192.168.0.10
NetBIOS over Tcpip. . . . . . . . : Enabled
Connection-specific DNS Suffix Search List :
home.local


EDIT



Note that the connection-specific DNS suffix is correct, but the suffix search list is wrong, both connection specific and general IP configuration.



The WMI queries show the same - the suffix for the connection is correct, but it is not added to the search list, which instead seems to reuse the same suffix as previously. Possibly it remembers this based on the server being the same?










share|improve this question

























  • Which tool used for the scan the registry task? RegScanner can find a unicode string located inside a binary value.

    – JosefZ
    Jan 25 '15 at 17:10













  • @JosefZ: Just the regular regedit search tool. I'll check out RegScanner.

    – carlpett
    Jan 25 '15 at 17:35











  • @JosefZ: No more matches with RegScanner, unfortunately

    – carlpett
    Jan 25 '15 at 17:39
















3















I just changed the DNS domain of my local network from home.local to mydomain.local, after purchasing mydomain.com. I made all the necessary changes in my BIND and DHCP server, and linux clients on the network now have domain mydomain.local in their /etc/resolv.conf and seem to be working as expected.



However, Windows machines (Win 8.1, not joined to a domain) still seem to hang on to the home.local domain in it's DNS Suffix Search List. I have released my lease, removed network profiles, scanned the registry, grep:ed the entire dns/dhcp server for occurences of the old domain, rebooted everything... Still, the windows machines keep searching home.local.



Output from ipconfig /all on an affected machine:



Windows IP Configuration

Host Name . . . . . . . . . . . . : MY-MACHINE
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : home.local

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . : mydomain.local
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : 00-11-22-33-44-55
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::1234:1234:1234:1234%3(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.97(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : den 24 januari 2015 19:42:25
Lease Expires . . . . . . . . . . : den 25 januari 2015 19:43:27
Default Gateway . . . . . . . . . : fe80::1111:2222:3333:4444%3
192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.10
DHCPv6 IAID . . . . . . . . . . . : 12312312
DHCPv6 Client DUID. . . . . . . . : 00-11-22-33-44-55-66-77-88-99-AA-BB-CC-DD

DNS Servers . . . . . . . . . . . : 192.168.0.10
NetBIOS over Tcpip. . . . . . . . : Enabled
Connection-specific DNS Suffix Search List :
home.local


EDIT



Note that the connection-specific DNS suffix is correct, but the suffix search list is wrong, both connection specific and general IP configuration.



The WMI queries show the same - the suffix for the connection is correct, but it is not added to the search list, which instead seems to reuse the same suffix as previously. Possibly it remembers this based on the server being the same?










share|improve this question

























  • Which tool used for the scan the registry task? RegScanner can find a unicode string located inside a binary value.

    – JosefZ
    Jan 25 '15 at 17:10













  • @JosefZ: Just the regular regedit search tool. I'll check out RegScanner.

    – carlpett
    Jan 25 '15 at 17:35











  • @JosefZ: No more matches with RegScanner, unfortunately

    – carlpett
    Jan 25 '15 at 17:39














3












3








3


1






I just changed the DNS domain of my local network from home.local to mydomain.local, after purchasing mydomain.com. I made all the necessary changes in my BIND and DHCP server, and linux clients on the network now have domain mydomain.local in their /etc/resolv.conf and seem to be working as expected.



However, Windows machines (Win 8.1, not joined to a domain) still seem to hang on to the home.local domain in it's DNS Suffix Search List. I have released my lease, removed network profiles, scanned the registry, grep:ed the entire dns/dhcp server for occurences of the old domain, rebooted everything... Still, the windows machines keep searching home.local.



Output from ipconfig /all on an affected machine:



Windows IP Configuration

Host Name . . . . . . . . . . . . : MY-MACHINE
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : home.local

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . : mydomain.local
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : 00-11-22-33-44-55
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::1234:1234:1234:1234%3(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.97(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : den 24 januari 2015 19:42:25
Lease Expires . . . . . . . . . . : den 25 januari 2015 19:43:27
Default Gateway . . . . . . . . . : fe80::1111:2222:3333:4444%3
192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.10
DHCPv6 IAID . . . . . . . . . . . : 12312312
DHCPv6 Client DUID. . . . . . . . : 00-11-22-33-44-55-66-77-88-99-AA-BB-CC-DD

DNS Servers . . . . . . . . . . . : 192.168.0.10
NetBIOS over Tcpip. . . . . . . . : Enabled
Connection-specific DNS Suffix Search List :
home.local


EDIT



Note that the connection-specific DNS suffix is correct, but the suffix search list is wrong, both connection specific and general IP configuration.



The WMI queries show the same - the suffix for the connection is correct, but it is not added to the search list, which instead seems to reuse the same suffix as previously. Possibly it remembers this based on the server being the same?










share|improve this question
















I just changed the DNS domain of my local network from home.local to mydomain.local, after purchasing mydomain.com. I made all the necessary changes in my BIND and DHCP server, and linux clients on the network now have domain mydomain.local in their /etc/resolv.conf and seem to be working as expected.



However, Windows machines (Win 8.1, not joined to a domain) still seem to hang on to the home.local domain in it's DNS Suffix Search List. I have released my lease, removed network profiles, scanned the registry, grep:ed the entire dns/dhcp server for occurences of the old domain, rebooted everything... Still, the windows machines keep searching home.local.



Output from ipconfig /all on an affected machine:



Windows IP Configuration

Host Name . . . . . . . . . . . . : MY-MACHINE
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : home.local

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . : mydomain.local
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : 00-11-22-33-44-55
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::1234:1234:1234:1234%3(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.97(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : den 24 januari 2015 19:42:25
Lease Expires . . . . . . . . . . : den 25 januari 2015 19:43:27
Default Gateway . . . . . . . . . : fe80::1111:2222:3333:4444%3
192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.10
DHCPv6 IAID . . . . . . . . . . . : 12312312
DHCPv6 Client DUID. . . . . . . . : 00-11-22-33-44-55-66-77-88-99-AA-BB-CC-DD

DNS Servers . . . . . . . . . . . : 192.168.0.10
NetBIOS over Tcpip. . . . . . . . : Enabled
Connection-specific DNS Suffix Search List :
home.local


EDIT



Note that the connection-specific DNS suffix is correct, but the suffix search list is wrong, both connection specific and general IP configuration.



The WMI queries show the same - the suffix for the connection is correct, but it is not added to the search list, which instead seems to reuse the same suffix as previously. Possibly it remembers this based on the server being the same?







windows dhcp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 25 '15 at 13:03







carlpett

















asked Jan 24 '15 at 18:51









carlpettcarlpett

2251311




2251311













  • Which tool used for the scan the registry task? RegScanner can find a unicode string located inside a binary value.

    – JosefZ
    Jan 25 '15 at 17:10













  • @JosefZ: Just the regular regedit search tool. I'll check out RegScanner.

    – carlpett
    Jan 25 '15 at 17:35











  • @JosefZ: No more matches with RegScanner, unfortunately

    – carlpett
    Jan 25 '15 at 17:39



















  • Which tool used for the scan the registry task? RegScanner can find a unicode string located inside a binary value.

    – JosefZ
    Jan 25 '15 at 17:10













  • @JosefZ: Just the regular regedit search tool. I'll check out RegScanner.

    – carlpett
    Jan 25 '15 at 17:35











  • @JosefZ: No more matches with RegScanner, unfortunately

    – carlpett
    Jan 25 '15 at 17:39

















Which tool used for the scan the registry task? RegScanner can find a unicode string located inside a binary value.

– JosefZ
Jan 25 '15 at 17:10







Which tool used for the scan the registry task? RegScanner can find a unicode string located inside a binary value.

– JosefZ
Jan 25 '15 at 17:10















@JosefZ: Just the regular regedit search tool. I'll check out RegScanner.

– carlpett
Jan 25 '15 at 17:35





@JosefZ: Just the regular regedit search tool. I'll check out RegScanner.

– carlpett
Jan 25 '15 at 17:35













@JosefZ: No more matches with RegScanner, unfortunately

– carlpett
Jan 25 '15 at 17:39





@JosefZ: No more matches with RegScanner, unfortunately

– carlpett
Jan 25 '15 at 17:39










5 Answers
5






active

oldest

votes


















3














Sounds like DNS caching issue. To resolve this, run cmd as administrator and perform



ipconfig /flushdns


or even (although the /allcompartments switch could seem to be superabundant)



ipconfig /allcompartments /flushdns


Further hints: ipconfig /?



Clearing the ARP cache might help as well:



arp -d




Edit according to what others advise: Group policy DNS Suffix Search List could be found as value SearchList in next registry key:



HKLMSoftwarePoliciesMicrosoftWindows NTDNSClient




Edit 2 what output from next CLI commands? Is there listed unwanted DNS suffix?



wmic path Win32_NetworkAdapterConfiguration get caption, DNSDomainSuffixSearchOrder
wmic path Win32_NetworkAdapterConfiguration get caption, DNSDomain




Edit 3 Check values NameServer and SearchList in next registry key:



 HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters


and under next registry keys (i.e. in each interface-related subkey):



HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParametersInterfaces
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTCPIP6ParametersInterfaces


To put changes in validity: restart computer.





Edit 4 Check all NameServerList value of REG_MULTI_SZ type in all keys of next pattern



HKLMSYSTEMCurrentControlSetServicesNetBTParametersInterfacesTcpip_{interface_CLSID}


Next PowerShell code should set the DNS suffix search order. Stolen here as I'm not well-skilled in PS.



#First store the suffixes to set in a variable
$suffixes = 'mydomain.local'

#Since this is a static method, get a class object and then call the method.
$class = [wmiclass]'Win32_NetworkAdapterConfiguration'
$class.SetDNSSuffixSearchOrder($suffixes)


As the last resort: disable system restore, restart, check wmic mentioned above...






share|improve this answer


























  • I had already tried /flushdns, but not with /allcompartments. It did not work, unfortunately. The ARP cache didn't help either.

    – carlpett
    Jan 24 '15 at 21:22











  • I don't have the registry key mentioned in the first edit. For the two commands, I do get the unwanted suffix for the first command, but it is correct in the second one.

    – carlpett
    Jan 25 '15 at 11:46











  • NameServer and SearchList are both empty. DhcpNameServer and DhcpDomain are both correct, though. None of the interfaces had overrides.

    – carlpett
    Jan 25 '15 at 13:50











  • Re "Edit 4", no luck with the registry there either. For the Powershell part, I probably could do that, but I think that would act as an override, rather than fix the actual problem? Also, it would probably remain even for other networks?

    – carlpett
    Jan 25 '15 at 19:04











  • @carlpett do a search and read on serverfault.com; override to an empty string? I don't know...

    – JosefZ
    Jan 25 '15 at 19:59





















1















  • Go to your ethernet connection

  • Click Properties

  • Double click Internet Protocol Version 4(TCP/IPv4)

  • Click Advance

  • Click the DNS tab

  • Remove home.local






share|improve this answer



















  • 1





    Thanks, but there is no explicitly set domain there

    – carlpett
    Jan 24 '15 at 21:17



















0














There may be a GPO being pushed, check Group Policy... Computer Configuration - Policies - Administrative Templates - Network - DNS Client.



There you will find DNS Suffix Search and its settings. If you continue to have trouble, navigate to the following link for more information.






share|improve this answer
























  • Thanks, but the computers are not joined to a domain.

    – carlpett
    Jan 24 '15 at 21:19











  • Please try the following command on the client computer ipconfig /registerdns

    – Sarge
    Jan 25 '15 at 17:07





















0














Go to



win+r> ncpa.cpl> go properties which adapter connected> TCP/IPv4>properties> advanced> dns> below you will see dns suffix tab.
remove dns suffix from tab > append this dns suffix (in order)



then > append primary and connection specific DNS suffixes



and check > append parent suffixes of the primary DNS suffix



at the end check > Register this connection's addresses in DNS.






share|improve this answer


























  • Why do you write all in bold?

    – Toto
    Feb 27 '18 at 11:27











  • Is there any guide about bold? to make difference between words.

    – Omar
    Feb 27 '18 at 12:47





















0














For us, it was that our DHCP server had a scope option that was setting the wrong dns suffix using the "015 DNS Domain Name" option. Once I corrected that and restarted the affected computer, it picked up the right DNS suffix.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f868979%2fwindows-remembers-old-dns-suffix%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    5 Answers
    5






    active

    oldest

    votes








    5 Answers
    5






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Sounds like DNS caching issue. To resolve this, run cmd as administrator and perform



    ipconfig /flushdns


    or even (although the /allcompartments switch could seem to be superabundant)



    ipconfig /allcompartments /flushdns


    Further hints: ipconfig /?



    Clearing the ARP cache might help as well:



    arp -d




    Edit according to what others advise: Group policy DNS Suffix Search List could be found as value SearchList in next registry key:



    HKLMSoftwarePoliciesMicrosoftWindows NTDNSClient




    Edit 2 what output from next CLI commands? Is there listed unwanted DNS suffix?



    wmic path Win32_NetworkAdapterConfiguration get caption, DNSDomainSuffixSearchOrder
    wmic path Win32_NetworkAdapterConfiguration get caption, DNSDomain




    Edit 3 Check values NameServer and SearchList in next registry key:



     HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters


    and under next registry keys (i.e. in each interface-related subkey):



    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParametersInterfaces
    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTCPIP6ParametersInterfaces


    To put changes in validity: restart computer.





    Edit 4 Check all NameServerList value of REG_MULTI_SZ type in all keys of next pattern



    HKLMSYSTEMCurrentControlSetServicesNetBTParametersInterfacesTcpip_{interface_CLSID}


    Next PowerShell code should set the DNS suffix search order. Stolen here as I'm not well-skilled in PS.



    #First store the suffixes to set in a variable
    $suffixes = 'mydomain.local'

    #Since this is a static method, get a class object and then call the method.
    $class = [wmiclass]'Win32_NetworkAdapterConfiguration'
    $class.SetDNSSuffixSearchOrder($suffixes)


    As the last resort: disable system restore, restart, check wmic mentioned above...






    share|improve this answer


























    • I had already tried /flushdns, but not with /allcompartments. It did not work, unfortunately. The ARP cache didn't help either.

      – carlpett
      Jan 24 '15 at 21:22











    • I don't have the registry key mentioned in the first edit. For the two commands, I do get the unwanted suffix for the first command, but it is correct in the second one.

      – carlpett
      Jan 25 '15 at 11:46











    • NameServer and SearchList are both empty. DhcpNameServer and DhcpDomain are both correct, though. None of the interfaces had overrides.

      – carlpett
      Jan 25 '15 at 13:50











    • Re "Edit 4", no luck with the registry there either. For the Powershell part, I probably could do that, but I think that would act as an override, rather than fix the actual problem? Also, it would probably remain even for other networks?

      – carlpett
      Jan 25 '15 at 19:04











    • @carlpett do a search and read on serverfault.com; override to an empty string? I don't know...

      – JosefZ
      Jan 25 '15 at 19:59


















    3














    Sounds like DNS caching issue. To resolve this, run cmd as administrator and perform



    ipconfig /flushdns


    or even (although the /allcompartments switch could seem to be superabundant)



    ipconfig /allcompartments /flushdns


    Further hints: ipconfig /?



    Clearing the ARP cache might help as well:



    arp -d




    Edit according to what others advise: Group policy DNS Suffix Search List could be found as value SearchList in next registry key:



    HKLMSoftwarePoliciesMicrosoftWindows NTDNSClient




    Edit 2 what output from next CLI commands? Is there listed unwanted DNS suffix?



    wmic path Win32_NetworkAdapterConfiguration get caption, DNSDomainSuffixSearchOrder
    wmic path Win32_NetworkAdapterConfiguration get caption, DNSDomain




    Edit 3 Check values NameServer and SearchList in next registry key:



     HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters


    and under next registry keys (i.e. in each interface-related subkey):



    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParametersInterfaces
    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTCPIP6ParametersInterfaces


    To put changes in validity: restart computer.





    Edit 4 Check all NameServerList value of REG_MULTI_SZ type in all keys of next pattern



    HKLMSYSTEMCurrentControlSetServicesNetBTParametersInterfacesTcpip_{interface_CLSID}


    Next PowerShell code should set the DNS suffix search order. Stolen here as I'm not well-skilled in PS.



    #First store the suffixes to set in a variable
    $suffixes = 'mydomain.local'

    #Since this is a static method, get a class object and then call the method.
    $class = [wmiclass]'Win32_NetworkAdapterConfiguration'
    $class.SetDNSSuffixSearchOrder($suffixes)


    As the last resort: disable system restore, restart, check wmic mentioned above...






    share|improve this answer


























    • I had already tried /flushdns, but not with /allcompartments. It did not work, unfortunately. The ARP cache didn't help either.

      – carlpett
      Jan 24 '15 at 21:22











    • I don't have the registry key mentioned in the first edit. For the two commands, I do get the unwanted suffix for the first command, but it is correct in the second one.

      – carlpett
      Jan 25 '15 at 11:46











    • NameServer and SearchList are both empty. DhcpNameServer and DhcpDomain are both correct, though. None of the interfaces had overrides.

      – carlpett
      Jan 25 '15 at 13:50











    • Re "Edit 4", no luck with the registry there either. For the Powershell part, I probably could do that, but I think that would act as an override, rather than fix the actual problem? Also, it would probably remain even for other networks?

      – carlpett
      Jan 25 '15 at 19:04











    • @carlpett do a search and read on serverfault.com; override to an empty string? I don't know...

      – JosefZ
      Jan 25 '15 at 19:59
















    3












    3








    3







    Sounds like DNS caching issue. To resolve this, run cmd as administrator and perform



    ipconfig /flushdns


    or even (although the /allcompartments switch could seem to be superabundant)



    ipconfig /allcompartments /flushdns


    Further hints: ipconfig /?



    Clearing the ARP cache might help as well:



    arp -d




    Edit according to what others advise: Group policy DNS Suffix Search List could be found as value SearchList in next registry key:



    HKLMSoftwarePoliciesMicrosoftWindows NTDNSClient




    Edit 2 what output from next CLI commands? Is there listed unwanted DNS suffix?



    wmic path Win32_NetworkAdapterConfiguration get caption, DNSDomainSuffixSearchOrder
    wmic path Win32_NetworkAdapterConfiguration get caption, DNSDomain




    Edit 3 Check values NameServer and SearchList in next registry key:



     HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters


    and under next registry keys (i.e. in each interface-related subkey):



    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParametersInterfaces
    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTCPIP6ParametersInterfaces


    To put changes in validity: restart computer.





    Edit 4 Check all NameServerList value of REG_MULTI_SZ type in all keys of next pattern



    HKLMSYSTEMCurrentControlSetServicesNetBTParametersInterfacesTcpip_{interface_CLSID}


    Next PowerShell code should set the DNS suffix search order. Stolen here as I'm not well-skilled in PS.



    #First store the suffixes to set in a variable
    $suffixes = 'mydomain.local'

    #Since this is a static method, get a class object and then call the method.
    $class = [wmiclass]'Win32_NetworkAdapterConfiguration'
    $class.SetDNSSuffixSearchOrder($suffixes)


    As the last resort: disable system restore, restart, check wmic mentioned above...






    share|improve this answer















    Sounds like DNS caching issue. To resolve this, run cmd as administrator and perform



    ipconfig /flushdns


    or even (although the /allcompartments switch could seem to be superabundant)



    ipconfig /allcompartments /flushdns


    Further hints: ipconfig /?



    Clearing the ARP cache might help as well:



    arp -d




    Edit according to what others advise: Group policy DNS Suffix Search List could be found as value SearchList in next registry key:



    HKLMSoftwarePoliciesMicrosoftWindows NTDNSClient




    Edit 2 what output from next CLI commands? Is there listed unwanted DNS suffix?



    wmic path Win32_NetworkAdapterConfiguration get caption, DNSDomainSuffixSearchOrder
    wmic path Win32_NetworkAdapterConfiguration get caption, DNSDomain




    Edit 3 Check values NameServer and SearchList in next registry key:



     HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters


    and under next registry keys (i.e. in each interface-related subkey):



    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParametersInterfaces
    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTCPIP6ParametersInterfaces


    To put changes in validity: restart computer.





    Edit 4 Check all NameServerList value of REG_MULTI_SZ type in all keys of next pattern



    HKLMSYSTEMCurrentControlSetServicesNetBTParametersInterfacesTcpip_{interface_CLSID}


    Next PowerShell code should set the DNS suffix search order. Stolen here as I'm not well-skilled in PS.



    #First store the suffixes to set in a variable
    $suffixes = 'mydomain.local'

    #Since this is a static method, get a class object and then call the method.
    $class = [wmiclass]'Win32_NetworkAdapterConfiguration'
    $class.SetDNSSuffixSearchOrder($suffixes)


    As the last resort: disable system restore, restart, check wmic mentioned above...







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jan 25 '15 at 15:55

























    answered Jan 24 '15 at 19:26









    JosefZJosefZ

    7,49041544




    7,49041544













    • I had already tried /flushdns, but not with /allcompartments. It did not work, unfortunately. The ARP cache didn't help either.

      – carlpett
      Jan 24 '15 at 21:22











    • I don't have the registry key mentioned in the first edit. For the two commands, I do get the unwanted suffix for the first command, but it is correct in the second one.

      – carlpett
      Jan 25 '15 at 11:46











    • NameServer and SearchList are both empty. DhcpNameServer and DhcpDomain are both correct, though. None of the interfaces had overrides.

      – carlpett
      Jan 25 '15 at 13:50











    • Re "Edit 4", no luck with the registry there either. For the Powershell part, I probably could do that, but I think that would act as an override, rather than fix the actual problem? Also, it would probably remain even for other networks?

      – carlpett
      Jan 25 '15 at 19:04











    • @carlpett do a search and read on serverfault.com; override to an empty string? I don't know...

      – JosefZ
      Jan 25 '15 at 19:59





















    • I had already tried /flushdns, but not with /allcompartments. It did not work, unfortunately. The ARP cache didn't help either.

      – carlpett
      Jan 24 '15 at 21:22











    • I don't have the registry key mentioned in the first edit. For the two commands, I do get the unwanted suffix for the first command, but it is correct in the second one.

      – carlpett
      Jan 25 '15 at 11:46











    • NameServer and SearchList are both empty. DhcpNameServer and DhcpDomain are both correct, though. None of the interfaces had overrides.

      – carlpett
      Jan 25 '15 at 13:50











    • Re "Edit 4", no luck with the registry there either. For the Powershell part, I probably could do that, but I think that would act as an override, rather than fix the actual problem? Also, it would probably remain even for other networks?

      – carlpett
      Jan 25 '15 at 19:04











    • @carlpett do a search and read on serverfault.com; override to an empty string? I don't know...

      – JosefZ
      Jan 25 '15 at 19:59



















    I had already tried /flushdns, but not with /allcompartments. It did not work, unfortunately. The ARP cache didn't help either.

    – carlpett
    Jan 24 '15 at 21:22





    I had already tried /flushdns, but not with /allcompartments. It did not work, unfortunately. The ARP cache didn't help either.

    – carlpett
    Jan 24 '15 at 21:22













    I don't have the registry key mentioned in the first edit. For the two commands, I do get the unwanted suffix for the first command, but it is correct in the second one.

    – carlpett
    Jan 25 '15 at 11:46





    I don't have the registry key mentioned in the first edit. For the two commands, I do get the unwanted suffix for the first command, but it is correct in the second one.

    – carlpett
    Jan 25 '15 at 11:46













    NameServer and SearchList are both empty. DhcpNameServer and DhcpDomain are both correct, though. None of the interfaces had overrides.

    – carlpett
    Jan 25 '15 at 13:50





    NameServer and SearchList are both empty. DhcpNameServer and DhcpDomain are both correct, though. None of the interfaces had overrides.

    – carlpett
    Jan 25 '15 at 13:50













    Re "Edit 4", no luck with the registry there either. For the Powershell part, I probably could do that, but I think that would act as an override, rather than fix the actual problem? Also, it would probably remain even for other networks?

    – carlpett
    Jan 25 '15 at 19:04





    Re "Edit 4", no luck with the registry there either. For the Powershell part, I probably could do that, but I think that would act as an override, rather than fix the actual problem? Also, it would probably remain even for other networks?

    – carlpett
    Jan 25 '15 at 19:04













    @carlpett do a search and read on serverfault.com; override to an empty string? I don't know...

    – JosefZ
    Jan 25 '15 at 19:59







    @carlpett do a search and read on serverfault.com; override to an empty string? I don't know...

    – JosefZ
    Jan 25 '15 at 19:59















    1















    • Go to your ethernet connection

    • Click Properties

    • Double click Internet Protocol Version 4(TCP/IPv4)

    • Click Advance

    • Click the DNS tab

    • Remove home.local






    share|improve this answer



















    • 1





      Thanks, but there is no explicitly set domain there

      – carlpett
      Jan 24 '15 at 21:17
















    1















    • Go to your ethernet connection

    • Click Properties

    • Double click Internet Protocol Version 4(TCP/IPv4)

    • Click Advance

    • Click the DNS tab

    • Remove home.local






    share|improve this answer



















    • 1





      Thanks, but there is no explicitly set domain there

      – carlpett
      Jan 24 '15 at 21:17














    1












    1








    1








    • Go to your ethernet connection

    • Click Properties

    • Double click Internet Protocol Version 4(TCP/IPv4)

    • Click Advance

    • Click the DNS tab

    • Remove home.local






    share|improve this answer














    • Go to your ethernet connection

    • Click Properties

    • Double click Internet Protocol Version 4(TCP/IPv4)

    • Click Advance

    • Click the DNS tab

    • Remove home.local







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 24 '15 at 19:35









    KeltariKeltari

    51.6k18119170




    51.6k18119170








    • 1





      Thanks, but there is no explicitly set domain there

      – carlpett
      Jan 24 '15 at 21:17














    • 1





      Thanks, but there is no explicitly set domain there

      – carlpett
      Jan 24 '15 at 21:17








    1




    1





    Thanks, but there is no explicitly set domain there

    – carlpett
    Jan 24 '15 at 21:17





    Thanks, but there is no explicitly set domain there

    – carlpett
    Jan 24 '15 at 21:17











    0














    There may be a GPO being pushed, check Group Policy... Computer Configuration - Policies - Administrative Templates - Network - DNS Client.



    There you will find DNS Suffix Search and its settings. If you continue to have trouble, navigate to the following link for more information.






    share|improve this answer
























    • Thanks, but the computers are not joined to a domain.

      – carlpett
      Jan 24 '15 at 21:19











    • Please try the following command on the client computer ipconfig /registerdns

      – Sarge
      Jan 25 '15 at 17:07


















    0














    There may be a GPO being pushed, check Group Policy... Computer Configuration - Policies - Administrative Templates - Network - DNS Client.



    There you will find DNS Suffix Search and its settings. If you continue to have trouble, navigate to the following link for more information.






    share|improve this answer
























    • Thanks, but the computers are not joined to a domain.

      – carlpett
      Jan 24 '15 at 21:19











    • Please try the following command on the client computer ipconfig /registerdns

      – Sarge
      Jan 25 '15 at 17:07
















    0












    0








    0







    There may be a GPO being pushed, check Group Policy... Computer Configuration - Policies - Administrative Templates - Network - DNS Client.



    There you will find DNS Suffix Search and its settings. If you continue to have trouble, navigate to the following link for more information.






    share|improve this answer













    There may be a GPO being pushed, check Group Policy... Computer Configuration - Policies - Administrative Templates - Network - DNS Client.



    There you will find DNS Suffix Search and its settings. If you continue to have trouble, navigate to the following link for more information.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 24 '15 at 19:53









    SargeSarge

    1512




    1512













    • Thanks, but the computers are not joined to a domain.

      – carlpett
      Jan 24 '15 at 21:19











    • Please try the following command on the client computer ipconfig /registerdns

      – Sarge
      Jan 25 '15 at 17:07





















    • Thanks, but the computers are not joined to a domain.

      – carlpett
      Jan 24 '15 at 21:19











    • Please try the following command on the client computer ipconfig /registerdns

      – Sarge
      Jan 25 '15 at 17:07



















    Thanks, but the computers are not joined to a domain.

    – carlpett
    Jan 24 '15 at 21:19





    Thanks, but the computers are not joined to a domain.

    – carlpett
    Jan 24 '15 at 21:19













    Please try the following command on the client computer ipconfig /registerdns

    – Sarge
    Jan 25 '15 at 17:07







    Please try the following command on the client computer ipconfig /registerdns

    – Sarge
    Jan 25 '15 at 17:07













    0














    Go to



    win+r> ncpa.cpl> go properties which adapter connected> TCP/IPv4>properties> advanced> dns> below you will see dns suffix tab.
    remove dns suffix from tab > append this dns suffix (in order)



    then > append primary and connection specific DNS suffixes



    and check > append parent suffixes of the primary DNS suffix



    at the end check > Register this connection's addresses in DNS.






    share|improve this answer


























    • Why do you write all in bold?

      – Toto
      Feb 27 '18 at 11:27











    • Is there any guide about bold? to make difference between words.

      – Omar
      Feb 27 '18 at 12:47


















    0














    Go to



    win+r> ncpa.cpl> go properties which adapter connected> TCP/IPv4>properties> advanced> dns> below you will see dns suffix tab.
    remove dns suffix from tab > append this dns suffix (in order)



    then > append primary and connection specific DNS suffixes



    and check > append parent suffixes of the primary DNS suffix



    at the end check > Register this connection's addresses in DNS.






    share|improve this answer


























    • Why do you write all in bold?

      – Toto
      Feb 27 '18 at 11:27











    • Is there any guide about bold? to make difference between words.

      – Omar
      Feb 27 '18 at 12:47
















    0












    0








    0







    Go to



    win+r> ncpa.cpl> go properties which adapter connected> TCP/IPv4>properties> advanced> dns> below you will see dns suffix tab.
    remove dns suffix from tab > append this dns suffix (in order)



    then > append primary and connection specific DNS suffixes



    and check > append parent suffixes of the primary DNS suffix



    at the end check > Register this connection's addresses in DNS.






    share|improve this answer















    Go to



    win+r> ncpa.cpl> go properties which adapter connected> TCP/IPv4>properties> advanced> dns> below you will see dns suffix tab.
    remove dns suffix from tab > append this dns suffix (in order)



    then > append primary and connection specific DNS suffixes



    and check > append parent suffixes of the primary DNS suffix



    at the end check > Register this connection's addresses in DNS.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Feb 27 '18 at 12:48

























    answered Feb 27 '18 at 9:21









    OmarOmar

    12




    12













    • Why do you write all in bold?

      – Toto
      Feb 27 '18 at 11:27











    • Is there any guide about bold? to make difference between words.

      – Omar
      Feb 27 '18 at 12:47





















    • Why do you write all in bold?

      – Toto
      Feb 27 '18 at 11:27











    • Is there any guide about bold? to make difference between words.

      – Omar
      Feb 27 '18 at 12:47



















    Why do you write all in bold?

    – Toto
    Feb 27 '18 at 11:27





    Why do you write all in bold?

    – Toto
    Feb 27 '18 at 11:27













    Is there any guide about bold? to make difference between words.

    – Omar
    Feb 27 '18 at 12:47







    Is there any guide about bold? to make difference between words.

    – Omar
    Feb 27 '18 at 12:47













    0














    For us, it was that our DHCP server had a scope option that was setting the wrong dns suffix using the "015 DNS Domain Name" option. Once I corrected that and restarted the affected computer, it picked up the right DNS suffix.






    share|improve this answer




























      0














      For us, it was that our DHCP server had a scope option that was setting the wrong dns suffix using the "015 DNS Domain Name" option. Once I corrected that and restarted the affected computer, it picked up the right DNS suffix.






      share|improve this answer


























        0












        0








        0







        For us, it was that our DHCP server had a scope option that was setting the wrong dns suffix using the "015 DNS Domain Name" option. Once I corrected that and restarted the affected computer, it picked up the right DNS suffix.






        share|improve this answer













        For us, it was that our DHCP server had a scope option that was setting the wrong dns suffix using the "015 DNS Domain Name" option. Once I corrected that and restarted the affected computer, it picked up the right DNS suffix.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 14 at 17:32









        Mike WatersMike Waters

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f868979%2fwindows-remembers-old-dns-suffix%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Probability when a professor distributes a quiz and homework assignment to a class of n students.

            Aardman Animations

            Are they similar matrix