Can Ubuntu be delivered with a built in DNS cache support ?

Asked by xiangxw

As far as I know, Ubuntu does not have build-in DNS cache support, while Windows does.
For this reason, Ubuntu is not easy to use.
Beginners with static IP network will suffer from it, for Internet surfing will be very slow without DNS cache.

sorry for my english.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu dnsmasq Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Static IP has no relevance on DNS except for that fact that it must be statically defined. The speed is in no way encumbered if a DHCP server gives the IP address or it is manually set. A DNS cache WILL however make the web faster.

If you install dnsmasq package then edit /etc/dnsmasq.conf and change:

#listen-address=127.0.0.1

to:

listen-address=127.0.0.1

Save the new file then run:

sudo service dnsmasq stop; sudo service dnsmasq start

You will then need to go into network manager and set the interface to DHCP (address only) and make the first DNS server be 127.0.0.1 and then use whatever you like as the other 2. Common options are:

127.0.0.1, 8.8.8.8, 8.8.4.4

(uses Google's public DNS service). This will make the system consult dnsmasq for learned DNS resolutions (takes 0ms) and then will ask the web based DNS if nothing is found

Revision history for this message
xiangxw (963632192-m) said :
#2

Thanks, actionparsnip:
Yes, I know the solution before, but I think it's Ubuntu's responsibility to make our life easier, especially for beginners.
Ubuntu should think more about common users, not only developers.
Think about it, a businessman use Ubuntu for the first time, but Internet is so slow in Ubuntu, he may quit right away and try Windows or Mac.

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#3

Then you can submit a suggestion on:
http://brainstorm.ubuntu.com

or log a bug with:
ubuntu-bug network-manager

Using a cached DNS doesn't make the web hugely faster but it can help.

Revision history for this message
xiangxw (963632192-m) said :
#4

Thanks actionparsnip, that solved my question.

Revision history for this message
xiangxw (963632192-m) said :
#5

From http://brainstorm.ubuntu.com/idea/28926/

This topic was discussed at UDS October 2011. See the blueprint: https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-dns-resolving
You can see the status of progress on the blueprint at http://status.ubuntu.com