{"id":40,"date":"2014-04-17T19:40:00","date_gmt":"2014-04-17T17:40:00","guid":{"rendered":"http:\/\/www.lambiek.eu\/blog\/?p=40"},"modified":"2015-07-15T18:16:54","modified_gmt":"2015-07-15T16:16:54","slug":"windows-host-lookup-not-working-as-expected","status":"publish","type":"post","link":"https:\/\/www.lambiek.eu\/blog\/tutorial\/windows-host-lookup-not-working-as-expected\/","title":{"rendered":"Windows host lookup not working as expected"},"content":{"rendered":"<p>Not long ago I decided to run my own internal DNS to resolve my URLs correctly from within my network. All went well except for my Windows 7 based desktop computer. Although I got the correct DNS server configured over DHCP and performed an ipconfig \/flushdns to empty the DNS cache, the client could not use the &#8216;new&#8217; DNS system as I would like to see. While a nslookup succeeded, pinging the hostname still used the &#8216;old&#8217; address. I even emptied the Netbios cache and tried several other suggestions but nothing seemed to work. Eventually I read a post about the following registry entry:<\/p>\n<pre class=\"lang:default decode:true \" >\r\nHKLM\\SYSTEM\\CurrentControlSet\\services\\Dnscache\\Parameters ServerPriorityTimeLimit= REG_DWORD: 0\r\n<\/pre>\n<p>After setting this registry entry this nasty issue was solved.<\/p>\n<p>Reference(s):<br \/>\n<a href=\"http:\/\/support.microsoft.com\/kb\/320760\/en-us\" target=\"_blank\">http:\/\/support.microsoft.com\/kb\/320760\/en-us<\/a><br \/>\n<a href=\"http:\/\/superuser.com\/questions\/600309\/dns-server-is-not-used-after-some-time\" target=\"_blank\">http:\/\/superuser.com\/questions\/600309\/dns-server-is-not-used-after-some-time<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not long ago I decided to run my own internal DNS to resolve my URLs correctly from within my network. All went well except for my Windows 7 based desktop computer. Although I got the correct DNS server configured over DHCP and performed an ipconfig \/flushdns to empty the DNS cache, the client could not &#8230; <span class=\"more\"><a class=\"more-link\" href=\"https:\/\/www.lambiek.eu\/blog\/tutorial\/windows-host-lookup-not-working-as-expected\/\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[9,8],"_links":{"self":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/40"}],"collection":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":10,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":238,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/40\/revisions\/238"}],"wp:attachment":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}