folks. I've some trouble with dns working (?) in my Ubuntu 12.04 server. The server shares internet in my local network with iptables (masquerade).
When I try to make something like this: wget http://stackoverflow.com on the server - it takes a long time to make request. See here:
#wget http://stackoverflow.com ... real 0m15.830s user 0m0.000s sys 0m0.020s
It takes almost 16 seconds to download a single page!
#time ping -c 4 18.104.22.168 ... real 0m3.116s user 0m0.000s sys 0m0.004s #time ping -c 4 stackoverflow.com ... real 0m25.459s user 0m0.000s sys 0m0.004s
As you can see when I try to ping host stackoverflow.com - it takes many more time than ping stackoverflow's direct ip address.
On the local side machines everything is alright: there isn't any problems with the internet.