dnsmasq breaks Steam downloads on Comcast
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dnsmasq (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
TL;DR: With dnsmasq configured, "nslookup cdn.cs.
Longer explanation, which I posted on the Steam forum at http://
I had a persistent problem with Steam not downloading games on Ubuntu, even on the same machine and same network where it worked fine under Windows (both 7 and 10). Here's an explanation of why and how to fix it, since most people will not be able to diagnose it.
Background:
Like most big data providers, Steam has a lot of servers hosted at various ISPs. When you download a game, you're directed to servers that are topologically closer to you--usually ones hosted by the ISP you use. In my case, this is Comcast, and Steam uses the host name cdn.comcast.
Ubuntu Desktop uses a caching DNS server called dnsmasq. Besides providing caching services, it captures advertised hostnames on the network, allowing you to refer to other machines by name without having to set up DNS.
Symptom:
You'll get dialog windows and messages in the Steam log file saying that connections timed out. No downloads will actually work.
Interestingly, nowhere does it explicitly tell you that it's actually the DNS query that's timing out, as opposed to the connection to the actual content server. This confused me quite a bit.
The problem:
Steam's DNS and dnsmasq don't get along. The list of DNS records for cdn.comcast.
Note: I've only run the Steam client on Ubuntu 14.10 and 15.04. I do not know whether this problem affects other versions.
Workaround:
The obvious workaround is to stop using dnsmasq. However, it's somewhat hardwired into Ubuntu. Here's what I did:
# apt-get install unbound # do this first or you'll be sad
# cd /etc/NetworkManager
# service NetworkManager stop
# vi NetworkManager.conf # or whatever editor you want; I don't care
[change "dns=dnsmasq" to "dns=unbound"]
# rm /etc/resolv.conf # don't forget this
# service NetworkManager start
Now all your DNS queries should go through your local unbound server (at 127.0.0.1 a.k.a. localhost), retries over TCP should work as expected, and Steam should be able to download just fine. You can test it with:
# nslookup cdn.comcast.
If that hangs or returns SERVFAIL or REFUSED, you still have a problem.
affects: | launchpad → dnsmasq |
description: | updated |
affects: | dnsmasq → dnsmasq (Ubuntu) |
no longer affects: | dnsmasq |
Thank you for taking the time to report this bug and helping to make Ubuntu better. In an effort to keep an up-to-date list of bugs to work I have reviewed this report to verify it still requires a fix and it occurs on a supported version of Ubuntu.
Can you please let us know if this is still issue and if so give us a reproducible address to query? On 16.04 I do not see this behavior when using dnsmasq. We'd be grateful if you would then provide an update and then change the bug status back to New.