Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I'm using Internet via a usb datacard on Ubuntu 12.04. I never configure domain name server.

My question is how website name get resolved?

  • Is there a inbuilt domain name server in system? if not than how are website name get resolved?
  • What happen inside a system when I type a name of website and press enter?
  • I don't have any router than what is my default gateway?

Please explain me the complete process.

share|improve this question
How about this? – Soroosh129 Apr 10 '13 at 17:18
up vote 2 down vote accepted

Your PC is not a DNS server, but it does keep a cache for previous queries. You usually have the IP of your DNS server pushed to you by your ISP (Internet Service Provider) when you connect via the datacard along with your IP address, default gateway and other network info. This is done with the DHCP protocol usually.

You can see what DNS you have configured by opening a terminal (Ctrl+Alt+T) and typing

cat /etc/resolv.conf

if you want to see your default gateway you can view it by using

cat /etc/network/interfaces

or by using

ip route show

and look for the line starting with default

share|improve this answer
thank you for answer. pls can you explain how dhcp work – user143030 Apr 11 '13 at 17:58
sure. If We're talking about a home LAN, the DHCP server is usually on the gateway router. When your PC is booting up, it checks to see if its network interfaces have static IP addresses or dynamic. If it's the latter case, the PC (or other device) sends a DHCP request to the server. The server is preconfigured with default gateway IP, IP pool (range of IPs to lease to clients) network mask and DNS server IP which it sends to the client in a DHCP response. – Silviu Apr 12 '13 at 18:57

Your Answer


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.