Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have ubuntu server 12.04 LTS . When i fetch something over the internet using wget command. It easily starts when i give address like wget 100.100.100.100/index.html means ip address. it immediately start downloading that thing.

But if i use wget www.google.com/index.html

It takes almost 10-15 seconds to resolve. I think the problem is with dns. It is resolving too late.

Can anyone help me what can be the problem. My server is behind router and on NAT.

share|improve this question

migrated from stackoverflow.com Sep 21 '12 at 14:30

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 0 down vote accepted

Why don't you try using google DNS? Use 8.8.8.8 and 8.8.4.4 as your primary DNS, and see whether it works better.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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