News for hackers. Stuff that matters.
Re:Chrome connects to three random domains at startup by subwindow on Saturday February 18, 2012 @05:15PM (#3607896)
This has some interesting ramifications- some network security appliances (I work for a company that makes one) look for suspicious sets of DNS requests that match the Domain Generation Algorithms that malware like Conficker use to find a command and control server.

These "random" requests look almost exactly the DGA for Murofet- a Zeus variant. This has caused some problems for us (and other vendors, I would assume) in the form of massive numbers of false positives. In short, it's been kind of a PITA.

I wish they wouldn't do this, but it is definitely a tough problem to solve and I can't think of a better approach off of the top of my head. The ultimate culprit is the ISPs that return an A record for a DNS request that really should return NXDOMAIN. These ISPs are essentially breaking the Internet, and we're all just scrambling to put band-aids in place to get it to work again.

Re:Chrome connects to three random domains at startup by teach on Saturday February 18, 2012 @06:45PM (#3608093)
The behavior also causes problems in my workplace, too. I work in a public school, and we use an Internet filter as required by law.

One part of the filter is attached to our default DNS server, and it looks up novel domains to see if they ought to be blocked. This lookup is slow.

Launching Chrome first thing in the morning takes quite a while, because our DNS server/filter blocks until those 3 random domains fail to resolve.

I really wish that I could turn it off, although admittedly our "network" is barely compliant with protocols in the name of filtering.

Re:Chrome connects to three random domains at startup by andrewcooke on Saturday February 18, 2012 @06:55PM (#3608117)
i suspect that you're using their dns server because it's what is given to you via dhcp, but you can probably configure your own (well, you can certainly configure you own; the problem is it's possible that they are blocking dns requests). for example, set things to use 8.8.8.8 as the dns server (which is google's).
Re:Chrome connects to three random domains at startup by teach on Sunday February 19, 2012 @12:03AM (#3608698)
No, we can't configure our own. The network settings config is locked out using policy controls.
Re:Chrome connects to three random domains at startup by rdtsc on Sunday February 19, 2012 @04:03AM (#3609000)
Supposedly there is a command line option in Chrome to specify a custom dns server.

  --dns-server=8.8.8.8
But it also looks like it doesn't always work (never worked, or is a special development mode only feature). Here is the bug report on it:

http://code.google.com/p/chromium/issues/detail?id=85875

Re:Chrome connects to three random domains at startup by andrewcooke on Sunday February 19, 2012 @06:51AM (#3609159)
comment 5 (in that thread, from the developer involved) says that it is working and testing it myself (google-chrome --dns-server=8.8.8.8) with wireshark shows that it does query that server.

(thanks for pointing this out; it wasn't what i was suggesting - i had assume the laptop was the op's own).

Re:Chrome connects to three random domains at startup by jsilence on Sunday February 19, 2012 @06:44AM (#3609151)
This is a good reason not to stick to the DNS-resolver the ISP gives you with DHCP, but to explicitly set it to a DNS resolver you trust.

Wondering why Chrome is not simply using the Google resolver on 8.8.8.8. Of course this would yet be another band aid that breaks the internet even further, when applications start implementing their own network stack.

Re:Chrome connects to three random domains at startup by st0p on Sunday February 19, 2012 @09:42AM (#3609433)
We use chrome for internal apps. Forcing you to use 8.8.8.8 means our users have to remember ip addresses instead of http://nameofapplication/

Not a problem for me, but I'm sure a lot of people would complain.

Re:Chrome connects to three random domains at startup by justincormack on Sunday February 19, 2012 @10:50AM (#3609566)
Put your internal apps on real IP addresses with real DNS and just firewall them?
Re:Chrome connects to three random domains at startup by st0p on Sunday February 19, 2012 @02:11PM (#3610071)
So instead of having these machines in our serverroom inside our office, we'd have to pay for using them in a data center and register URL's, only because some ISP's use an insane way to handle NXDOMAIN? There are many valid reasons to "go into the cloud", but this is not one of them.
Re:Chrome connects to three random domains at startup by justincormack on Sunday February 19, 2012 @03:15PM (#3610266)
You can assign real ip addresses to machines in your server room, give them dns, and firewall them externally. Just ask your isp for some addresses. There is no reason why this is any different from using nat in security, but you can use real dns. You can use ipv6 if you can't get ipv4 addresses.
Re:Chrome connects to three random domains at startup by jmathai on Sunday February 19, 2012 @03:55PM (#3610376)
Or, the browser can just not default to name servers it deems best for everyone and work how it's always worked: well.

This just seems like adding duck tape to a self-inflicted problem.

Re:Chrome connects to three random domains at startup by lmm on Monday February 20, 2012 @11:43AM (#3612896)
Non-publicly-routable addresses are a hack that will cause you nothing but trouble, and are going away with IPv6, so you might as well move away from them now.

(Not that having chrome use 8.8.8.8 is a good idea either. As is often the case with hacks, either on its own works fine but the two interact poorly.)

Re:Chrome connects to three random domains at startup by jmathai on Monday February 20, 2012 @01:26PM (#3613306)
Not sure I agree that non-publicly-routable addresses are a hack. The ability to run your own DNS server and having a firewall are pretty elegant components of most networks.

That being said, it very well maybe time to find a better alternative :).

Re:Chrome connects to three random domains at startup by lmm on Thursday February 23, 2012 @02:41AM (#3624169)
Firewalls have their place but should not be conflated with routing; the two are separate, and treating them as the same can lead to confusion and broken security.

As for DNS, it has a very elegant hierarchical delegation system, such that organizations can control their own while also ensuring that all the world's DNS servers give consistent answers (and if you need short names for your internal systems on your own network, that's what search paths are for).

Re:Chrome connects to three random domains at startup by FooBarWidget on Sunday February 19, 2012 @09:21AM (#3609392)
Not all networks allow using an external DNS. For example I regularly travel with the train in the Netherlands, and some trains provide wifi. The network intercepts all HTTP requests and forwards the user to a Terms Of Usage page; interception stops after the user has checked the 'I agree' checkbox. For a time I was wondering why even the Terms Of Usage page never shows up; turns out it was because I was using the Google DNS. Removing the custom DNS settings made it work again.
Re:Chrome connects to three random domains at startup by shabble on Sunday February 19, 2012 @04:14AM (#3609012)
It seems like there should be at least some manual override (assuming there isn't one already - I didn't check the details much beyond the article provided) to set your 'my DNS is NX-LYING' flag manually. For machines that are permanently emplaced in a broken DNS network, it can just be turned on and left.

Roaming devices might make it a bit more tricky, but some integration with OS connectivity-detection and location-awareness might help there, as well as an improved UI for actually setting it.

A really short-term bandage would be to use some less identifiable DGA, but that opens the possibility of future malware using the Chrome DGA to pretend to be legit.

Is there a technical reason why 'foo.invalid' and 'bar.invalid' (and any of the other restricted dns names) couldn't be used instead?

I suppose that the ISPs could serve those correctly to make the tests pass, but what would they gain from it except even more user irritation?

Anything I'm missing?

Re:Chrome connects to three random domains at startup by icebraining on Sunday February 19, 2012 @10:18AM (#3609498)
It seems like there should be at least some manual override (assuming there isn't one already - I didn't check the details much beyond the article provided) to set your 'my DNS is NX-LYING' flag manually. For machines that are permanently emplaced in a broken DNS network, it can just be turned on and left.

A flag wouldn't be enough, because Chrome also learns what records it returns when it lies, so it can recognize other lies.

Re:Chrome connects to three random domains at startup by mrb on Sunday February 19, 2012 @04:23PM (#3610458)
There is a big difference between Chrome's requests and Murofet's requests. Chrome uses no TLD ("xxxxx") but Murofet does ("xxxxxx.com").
Re:Chrome connects to three random domains at startup by cydonian_monk on Saturday February 18, 2012 @03:03PM (#3607585)
I noticed this two years ago, and eventually had to stop using Chrome (and Chromium browsers) as it would result in my ISP blocking all DNS requests from my IP (for a seemingly random amount of time). Even requests to public DNS would fail. It took awhile to identify Chrome as the culprit, and I wasn't convinced after seing the bogus DNS requests in TCP traps. So I started a cycle of using/not using Chrome, and it became obvious.

The easy solution was to stop using Chrome. The hard solution was to move. I've done both, but have yet to start using Chrome again.

Re:Chrome connects to three random domains at startup by kmm on Saturday February 18, 2012 @03:20PM (#3607636)
I don't understand. Why would your ISP block your IP for bogus DNS requests? And why are they monitoring your traffic to public DNS servers? I presume this means they have to look at all traffic that goes over port 53. Is there a security concern?
Re:Chrome connects to three random domains at startup by brandon on Saturday February 18, 2012 @09:59PM (#3608504)
This is common practice if the queries appear to be originating from worms like Conficker, etc. Others have reported that this behavior of Chrome's can set off false IDS alarms for the same reason.
Re:Chrome connects to three random domains at startup by windsurfer on Sunday February 19, 2012 @01:36AM (#3608807)
And it's also common practice to send all bad DNS queries to an ad-ridden search page. Go figure.
Re:Chrome connects to three random domains at startup by cydonian_monk on Saturday February 18, 2012 @03:54PM (#3607723)
I have no idea why they would want to block it, unless they considered it an attack vector for some reason. It was automatic - after a few of the bogus DNS requests, all DNS/port 53 traffic was dropped. Everything else worked, only DNS failed.
Re:Chrome connects to three random domains at startup by ohashi on Saturday February 18, 2012 @03:36PM (#3607675)
Can you name the ISP?
Re:Chrome connects to three random domains at startup by cydonian_monk on Saturday February 18, 2012 @04:03PM (#3607751)
It was originally SBC DSL (resold Yahoo!, resold etc...). The Chrome-induced resolution failures weren't the only issue - their primary DNS server never worked, always went to the failover.

Things didn't improve under AT&T.

Re:Chrome connects to three random domains at startup by joelhaasnoot on Saturday February 18, 2012 @04:31PM (#3607808)
Time for 8.8.8.8?
Re:Chrome connects to three random domains at startup by sobbybutter on Sunday February 19, 2012 @12:54PM (#3609833)
I put in a vote for the easyDNS public DNS service (205.210.42.205 and 64.68.200.20). No NXDOMAIN monkeying or anything of that nature.
Re:Chrome connects to three random domains at startup by moreorless on Saturday February 18, 2012 @07:29PM (#3608198)
I would rather go with 208.67.222.222 and 208.67.220.220 from http://opendns.com
Re:Chrome connects to three random domains at startup by Dylan16807 on Saturday February 18, 2012 @08:42PM (#3608343)
But opendns is one of the servers that gives you bogus results instead of NXDOMAIN.
Re:Chrome connects to three random domains at startup by RexRollman on Saturday February 18, 2012 @09:35PM (#3608460)
Really?? That's disappointing to hear.
Re:Chrome connects to three random domains at startup by getsat on Sunday February 19, 2012 @02:31AM (#3608876)
It's their primary monetisation vector from what I can see.
Re:Chrome connects to three random domains at startup by sp332 on Sunday February 19, 2012 @10:09AM (#3609482)
By default, the free service that anyone can use, they redirect nonexistent domains to a search page they control. If you pay (and register your IP address), you can turn that off. But the main reason for paying is to control which domains are blocked. You can choose categories, and/or maintain your own white or black list. http://www.opendns.com/web-filtering/ and http://www.opendns.com/internet-security/
Re:Chrome connects to three random domains at startup by joelhaasnoot on Tuesday February 21, 2012 @03:06PM (#3617857)
You can also filter without paying, including black or whitelisting domains. Works effectively to curb reddit addictions.
Re:Chrome connects to three random domains at startup by njharman on Sunday February 19, 2012 @12:05AM (#3608703)
Your ISP sucks.
Re:Chrome connects to three random domains at startup by kamechan on Saturday February 18, 2012 @06:33PM (#3608056)
if you go to chrome://chrome-urls/ and then down to net-internals, you can get a pretty transparent view of exactly what chrome is doing. plus there's a bunch of other stuff there too.
Re:Chrome connects to three random domains at startup by junktest on Saturday February 18, 2012 @09:13PM (#3608417)
chrome://net-internals/#dns
Re:Chrome connects to three random domains at startup by rhplus on Saturday February 18, 2012 @10:08PM (#3608525)
It appears that Chrome aggressively prefetches DNS results for most of the links in pages you visit too. It's quite strange to watch as DNS requested for hundreds of domains you haven't even intended to visit start flowing past. The first time I saw it I had to check that nothing unscrupulous was running on my computer...
Re:Chrome connects to three random domains at startup by andrewcooke on Sunday February 19, 2012 @08:40AM (#3609313)
that's configurable in preferences / under the hood / privacy (the "prediction" option - see https://support.google.com/chrome/bin/answer.py?hl=en&an...)

i have all those disabled and chrome still appears fast to me.

Re:Chrome connects to three random domains at startup by clsdaniel on Sunday February 19, 2012 @11:21AM (#3609618)
Interesting, yesterday I moved to a local caching DNS server (much faster and more reliable than what isp provided), however I forgot to set it to run at start up, first thing I do today is try to get to my gmail account, everything is working ok then I try to enter another site, dns lookup error, then I remembered I had named turned off, which means that chrome may have hardcoded google sites ip addresses or is caching them (which is less probable the other site didn't work).
Re:Chrome connects to three random domains at startup by unseen on Saturday February 18, 2012 @02:29PM (#3607469)
Neat feature. In my opinion, they should go even further and make use of the information and inform the user, too:

"Your ISP (network administrator, ..) is intercepting and manipulating DNS requests. Do you want to use Google DNS instead?"

Comes in real handy when we need to have a "DnsManipulationDetector" in the future that checks if your DNS is actively censoring...

Re:Chrome connects to three random domains at startup by codeka on Saturday February 18, 2012 @08:08PM (#3608268)
If your ISP is manipulating DNS like that, it's also possible that they're blocking UDP/53 to any host other than their own DNS servers as well.

Though it's certainly worth a shot, and I suppose Chrome could probably do a test query to 8.8.8.8 before recommending the switch.

Re:Chrome connects to three random domains at startup by RexRollman on Saturday February 18, 2012 @09:36PM (#3608465)
Some people who probably view that with antitrust concerns, even though I agree that would be a good idea.
Re:Chrome connects to three random domains at startup by dustingetz on Saturday February 18, 2012 @04:31PM (#3607807)
the environments where this is a problem - frequent one-word hosts - are intranets where you want to use the intranet DNS.
Re:Chrome connects to three random domains at startup by gioele on Sunday February 19, 2012 @02:14PM (#3610078)
> "Your ISP (network administrator, ..) is intercepting and manipulating DNS requests. Do you want to use Google DNS instead?"

I would prefer

"Your ISP (network administrator, ..) is intercepting and manipulating DNS requests. Do you want to install a local caching DNS server and use it instead?"

Unbound [1] is a local DNS server that I have installed on all my machines. Small, fast, security-oriented, IPv6, BSD, made by NLnet Labs.

[1] http://unbound.net/

Re:Chrome connects to three random domains at startup by lmm on Monday February 20, 2012 @11:45AM (#3612905)
So you'd install a local caching DNS server that only chrome would use... and this is better than chrome doing its own DNS lookups how?
Re:Chrome connects to three random domains at startup by gioele on Monday February 20, 2012 @11:52AM (#3612923)
The grandparent said "use Google DNS" not "chrome doing its own DNS lookup".

If you use Google's DNS (or anybody's DNS) you are basically telling them which sites your are visiting. If you have a local DNS resolver you will not leak all that information to a single third party.

Re:Chrome connects to three random domains at startup by lmm on Monday February 20, 2012 @12:17PM (#3613015)
I don't understand. Your local DNS resolver still needs an upstream; either that is your existing broken DNS server, or it's google's DNS server; in either case we're back where we were. Sure, your local DNS resolver could do some caching, but so could chrome; and a local resolver doesn't combine your lookups with those of your neighbours, so you don't get any privacy advantage that way either.
Re:Chrome connects to three random domains at startup by gioele on Tuesday February 21, 2012 @08:02AM (#3616299)
> I don't understand. Your local DNS resolver still needs an upstream

No, not a single upstream.

When my browser asks my server on 127.0.0.1 to lookup news.ycombinator.com it will first contact the root DNS server, then `com` DNS server, then then `ycombinator.com` DNS server. Who knows about the fact that I was looking for `news.ycombinator.com`? only the `ycombinator.com` DNS server. Who knows about the fact that I was looking for `ycombinator.com`? only the `com` DNS server. Now I go to slashdot.org. Who will know about that? Only the `org` DNS server. If you use the Google DNS, Google will know that you requested both `news.ycombinator.com` and `slashdot.org`. Do you want them or any single company to have all these information?

Obviously you need an upstream, an authoritative server somewhere. But why do you need to concentrate all these requests on a single DNS server? ISP are actively tracking users and, probably, selling their DNS histories to advertiser. Nominum (makers of a widespread DNS server) is quite explicit about it: «Data gathering and measurement are a vital part of network operations and DNS data represents a rich vein to be mined that has been underutilized in the past». [1]

[1] http://www.nominum.com/technology/analytics

Re:Chrome connects to three random domains at startup by lmm on Tuesday February 21, 2012 @09:55AM (#3616625)
So you'd contact the root server directly? If that's really desirable behavior (and I suspect it isn't), why not just make chrome query the root servers and walk the hierarchy, not using a DNS server at all?
Re:Chrome connects to three random domains at startup by iRobot on Saturday February 18, 2012 @07:35PM (#3608210)
.. and a really great reason for using open source programs
Re:Chrome connects to three random domains at startup by basugasubaku on Saturday February 18, 2012 @08:38PM (#3608335)
I'm not sure what you meant by that, but the article does in fact link to the relevant source:

http://code.google.com/codesearch#OAMlx_jo-ck/src/chrome/bro...

Re:Chrome connects to three random domains at startup by skeletonjelly on Sunday February 19, 2012 @03:41PM (#3610333)
That might have been his point - that we were able to find out the reasons why because of it's open source.
Re:Chrome connects to three random domains at startup by fourstar on Saturday February 18, 2012 @02:05PM (#3607377)
No wonder I've been seeing youporn.com in my history.
Re:Chrome connects to three random domains at startup by senthilnayagam on Saturday February 18, 2012 @01:59PM (#3607361)
I know one thing chrome leaks memory badly in OSX lion, not sure if these magic things happening in background has something to do with it