dnsmasq breaks Steam downloads on Comcast

Bug #1542597 reported by Charles M. Hannum
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dnsmasq (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

TL;DR: With dnsmasq configured, "nslookup cdn.cs.comcast.steampowered.com" (rather, the query, not nslookup itself) hangs. As a result of the DNS query hanging, Steam is unable to download any game content.

Longer explanation, which I posted on the Steam forum at http://steamcommunity.com/discussions/forum/1/412446292762583371/ to help other users:

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.cs.steampowered.com.

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.cs.steampowered.com is long enough that the response doesn't fit in a UDP packet. Normally this is retried transparently over TCP and works fine. However, dnsmasq stalls and times out on this request. (Don't ask me why. I haven't debugged it--yet.) As a result, all attempts to connect to the Steam content servers fail, and no downloads occur.

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.cs.steampowered.com

If that hangs or returns SERVFAIL or REFUSED, you still have a problem.

affects: launchpad → dnsmasq
description: updated
affects: dnsmasq → dnsmasq (Ubuntu)
William Grant (wgrant)
no longer affects: dnsmasq
Revision history for this message
Joshua Powers (powersj) wrote :

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.

Changed in dnsmasq (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for dnsmasq (Ubuntu) because there has been no activity for 60 days.]

Changed in dnsmasq (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.