{"id":264,"date":"2009-01-29T23:36:22","date_gmt":"2009-01-30T04:36:22","guid":{"rendered":"https:\/\/lowtek.ca\/roo\/?p=264"},"modified":"2009-01-29T23:36:22","modified_gmt":"2009-01-30T04:36:22","slug":"when-dns-fails","status":"publish","type":"post","link":"https:\/\/lowtek.ca\/roo\/2009\/when-dns-fails\/","title":{"rendered":"When DNS Fails"},"content":{"rendered":"<p>Tonight I needed to do a bit of work as we&#8217;re coming up to a deadline and as usual things are running a bit behind.  Normally I just <a href=\"http:\/\/en.wikipedia.org\/wiki\/Virtual_private_network\">VPN<\/a> into work and use <a href=\"http:\/\/en.wikipedia.org\/wiki\/Remote_desktop\">remote desktop<\/a> to drive my desktop.  Unfortunately when I went to do this tonight I wasn&#8217;t able to connect to my workstation via remote desktop.<\/p>\n<p>A quick <a href=\"http:\/\/en.wikipedia.org\/wiki\/Nslookup\">NSLookup<\/a> query turned up the problem &#8211; it seems the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Domain_Name_System\">DNS<\/a> server at work had been reset and the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Dynamic_Host_Configuration_Protocol\">DHCP<\/a> lease for my workstation had not expired yet.\u00a0 This means that the DNS server had no idea what <a href=\"http:\/\/en.wikipedia.org\/wiki\/Internet_Protocol\">IP<\/a> my machine is using, but my workstation is under the assumption it has the rights to that IP address still.<\/p>\n<p><a href=\"http:\/\/www.jimscode.ca\/\">Jim<\/a> happened to be one of the few online, so I chatted with him a bit to see if he had any ideas how to resolve the problem.\u00a0 He mentioned that this had happened to him a couple of times and his solution ended up being to drive back into work, I figured that would be my backup plan.<\/p>\n<p>Jim then suggested using <a href=\"http:\/\/linux.die.net\/man\/8\/arp\">arp<\/a> on a machine I had recently <a href=\"http:\/\/en.wikipedia.org\/wiki\/Secure_Shell\">ssh<\/a>&#8216;d into from my workstation.\u00a0 While I hadn&#8217;t actually used ssh to connect to any of our lab machines, it\u00a0 got me thinking about our <a href=\"http:\/\/en.wikipedia.org\/wiki\/Concurrent_Versions_System\">CVS<\/a> server &#8211; as I was running <a href=\"http:\/\/www.eclipse.org\/\">Eclipse<\/a> on my workstation and did have in theory an active connection.\u00a0 From my laptop I was able to ssh into the CVS server, then using <a href=\"http:\/\/linux.die.net\/man\/8\/netstat\">netstat<\/a> I got a full list of the active connections.\u00a0 Looking through the list turned up a few which were numeric (clearly where DNS had failed to provide a reverse name mapping).\u00a0 From there it was a simple matter to remote desktop to the &#8220;right&#8221; numeric address to reach my workstation &#8211; I got lucky on my 1st try.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tonight I needed to do a bit of work as we&#8217;re coming up to a deadline and as usual things are running a bit behind. Normally I just VPN into work and use remote desktop to drive my desktop. Unfortunately when I went to do this tonight I wasn&#8217;t able to connect to my workstation &hellip; <a href=\"https:\/\/lowtek.ca\/roo\/2009\/when-dns-fails\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;When DNS Fails&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,14],"tags":[],"class_list":["post-264","post","type-post","status-publish","format-standard","hentry","category-computing","category-work"],"_links":{"self":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":1,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":265,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/264\/revisions\/265"}],"wp:attachment":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}