cellio: (Default)
Monica ([personal profile] cellio) wrote2012-02-20 10:30 pm
Entry tags:

weird DSL problem

We came home to no internet service tonight, but the failure mode is odd. We do have connectivity, but no DNS -- so that would be a well-understood problem, except that I can use ssh to get to my shell provide -- by name. I can also ping that host by name -- but I can't ping anything else by name. Does MacOS maintain some sort of cached state for ssh?

And when did browsers start rewriting IP addresses to domain names? I could visit my favorite web sites by IP address in principle, but when I type in an IP address the browser turns it into a domain name, tries to load that...and fails, because there's no DNS. WTF?

Verizon has been underwhelming so far, and I even mean compared to other Verizon experiences. At one point they said the line must be bad and they'd send a technician in a couple of days, then put us on hold for 10+ minutes. But how could it be a bad line if we have any connectivity at all? When the guy came back he said that there's an outage (previously he had said there wasn't), so with luck it'll come back on its own.

But if anybody reading this could tell me where to find some DNS servers that I'd be allowed to hit, I'd be grateful. I'm trying to find that on my own, but using the phone is slow going.

[identity profile] schulman.livejournal.com 2012-02-21 03:48 am (UTC)(link)
Google public DNS: 8.8.8.8 and 8.8.4.4

[identity profile] miz-hatbox.livejournal.com 2012-02-21 03:52 am (UTC)(link)
We had that happen with Frontier. We switched our DNS server manually and the problem went away...

[identity profile] schulman.livejournal.com 2012-02-21 04:46 am (UTC)(link)
I don't believe you should have to reboot. There are configuration instructions and some diagnostic help here: http://code.google.com/speed/public-dns/docs/using.html

There's also a phone number for help on that page, but I have no idea how helpful it actually is.

If DNS lookups are still not working for you, it may be something weird with your TCP stack, or maybe caching issues? Good luck!

[identity profile] rjmccall.livejournal.com 2012-02-21 07:07 am (UTC)(link)
When you connect to a host for the first time, ssh prompts you to verify the host's signature. In theory this is the opportunity to use a trusted source to verify that that is indeed the signature of the host you mean to connect to, but usually people just automatically accept that. Anyway, once you've done that, ssh basically turns the host name as you entered it into a record in ~/.ssh/known_hosts that includes the IP address and that signature; if the signature ever changes, it warns you that something weird's going on. In theory it could do the same sort of authentication for the IP address, but that would accomplish exactly nothing beyond (1) verifying that the DNS service has not been compromised (which is irrelevant, since that service is not otherwise a party to the connection) and (2) unnecessarily telling the DNS service that you might be ssh'ing somewhere, so it just doesn't bother.

[identity profile] http://users.livejournal.com/merle_/ 2012-02-21 07:43 pm (UTC)(link)
..although the ssh known hosts shouldn't affect browsers because they have their own cache (or use the OS cache), both of which should respect the DNS timeout.

As for browsers rewriting IP addys into names, that's bizarre. I have not seen that, but I run Opera on an ancient OS.
geekosaur: orange tabby with head canted 90 degrees, giving impression of "maybe it'll make more sense if I look at it this way?" (Default)

[personal profile] geekosaur 2012-02-22 03:16 am (UTC)(link)
Browsers don't generally rewrite URLs. Many web servers do; there is a canonical server name which will be used in redirects and such, and generally these days a web server will pick one of foo.com or www.foo.com to be canonical and send a redirect to it if you use the other.

OS X does have a DNS cache; on Leopard and up it's controlled by dscacheutil. Also note that if you are changing DNS in your router, generally that information is sent to clients when they do DHCP renews so you would want to open System Preferences > Network and click the button to renew the DHCP lease. (Although I generally just change the DNS there; you can override what it gets from DHCP. It's hidden under the "Advanced..." button.)