2009年9月1日 星期二

DHCP with specified DNS servers

Sometimes the nameserver dispatched from the DHCP server doesn't work well.
In that case, you may want to add some nameservers so that the name-resolving task can perform normally.

There are two ways to achieve this objective:
1. Use the Network-Manager via a friendly GUI (We don't discuss it here)
2. Edit /etc/dhcp3/dhcpclient.conf and append one line to last
"prepend domain-name-servers XXX.XXX.XXX.XXX,XXX.XXX.XXX.XXX;"
/etc/init.d/networking restart

Test Distribution: Ubuntu 9.04
Reference: http://hi.baidu.com/nullspace/blog/item/ab37e6506165b35b1138c263.html

沒有留言:

張貼留言