1
0
It seems I have a DNS problem, although I'm not really sure.
When browsing the internet, everything is fast and fine. But when using a terminal, things start getting weird.
When I ping www.google.com, I have a good return time, but every request takes a lot of time (around 7-8 seconds per request). When using ping -n www.google.com or pinging the ip directly, everything is fine. This is related to How to explain low RTT between extremely long (10s) ping intervals? or linux ping not actually sending 1 packet per second.
According to the answers to these questions, it is a DNS issue. But as I said when I'm browsing the internet everything is ok. There is no 8 seconds delay to load a page. This happens only in a terminal. I don't understand how a DNS issue could affect a terminal but not an internet browser.
This wouldn't be a problem, except that I need to frequently update a list of mirrors for downloading software updates (the command is pacman-mirrors, on an Arch computer), and because of the delay, they all time out and consequently updating fails.
I haven't tried it yet, but maybe changing the DNS to Google's would work. However this is more a workaround than a fix, and I feel the problem should be fixed if at all possible.
Thanks for your help.
I would try changing the DNS server, if that solves the problem then the actual solution is likely out of your control. I suspect that once the entry is cached locally it's no longer slow, the slow down only occurs during external lookup, which only happens when local cache lookup fails. – Tyson – 2014-12-02T14:02:16.833