Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My Ubuntu install can't reach the repository urls and

I've tried updating through the command line and the update manager.

Are they laggy lately or down?

When I boot back into Windows 7 I can ping the repositories, but it takes like 30 seconds for the ping to be acknowledged.

I feel like the ping is timing out on Ubuntu when using the ping command or apt.

Ubuntu 10.04 LTS 32-bit

Update: this has turned into an advanced network problem probably involving the bind server on my ubuntu gateway

The Windows partition on the client can ping but the name resolves after 30 seconds.

The Ubuntu partition cannot ping the lookup fails.

I can ping from the ubuntu gateway without problems.

Based on this I think the gateway is causing the problem due to an incorrect locally defined version of, which after it fails to resolv after 30 seconds turns to the bind server for a successful lookup.

To find the answer, I'm looking for the difference between a local dns lookup on Ubuntu and a remote dns lookup. The answer could also be in bind.

Before I start pasting config files are there any ideas?

Keep in mind this setup was working flawlessly for 6 months resolving everything. Only now that I've booted into my 2nd partition, Ubuntu, did I realize that I couldn't resolv the update archive names, including, and

share|improve this question

closed as not a real question by Shane Madden, Bill Weiss, Ward, Khaled, MDMarra May 15 '12 at 13:33

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

If it's only the first ping that's a problem, it looks more like a name lookup problem. In that case you probably have a broken DNS setup. You should check /etc/resolv.conf and (if appropriate) the settings you are getting from your DHCP server to make sure they actually work (e.g. ping the DNS servers by IP address). If all pings take 30s, your networking setup is horribly broken (this may or may not include your DNS configuration).

For comparison, I get around 0.18 second ping response from; I'm in Europe.

share|improve this answer
you know whats messed up? from my linux gateway I can ping that url no problem. I'm running Bind on it, and my client win7/ubuntu has never had problems pinging/vising a website/resolving names before. Its just this repository name that takes 30 seconds to resolv from my client. – user618036 May 13 '12 at 16:59
AND my gateway uses nameserver as its dns server lol... – user618036 May 13 '12 at 17:00
I can ping a random name if I do a google search and paste names into the cmd prompt. Meh – user618036 May 13 '12 at 17:04
Use the host command to do name lookups of the hostname (not URL!) specifying the nameserver's IP address as the second argument of the host command (e.g. time host Figure out how the time this takes depends on which IP address you specified for the nameserver. If your gateway is the only DNS server which is slow to complete a successful lookup, it's very likely that one of the DNS servers configured there (in BIND's named.conf file) is incorrect or unreachable (double check with host again). – James Youngman May 14 '12 at 9:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.