Skip to main content

Thread: how to set the dns servers in 12.04 for a wired conection


hi, have 2 questions, first involved.

1) trying change dns servers , after checking internet on how @ complete loss. using 12.04 64 bit, xubuntu xfce de.

isp has dns servers used, want change them , try different servers. /etc/resolve.conf says "do not edit file hand -- changes overwritten". did manage find this:


code:
sudo gedit /etc/dhcp/dhclient.conf  change line :  perpend domain-name-servers x.x.x.x, y.y.y.y;
and added 2 different dns servers, when check "connection information", shows 2 dns servers added, 'ternary' dns server, original dns server supplied isp.
want primary , secondary dns servers prepended in dhclient.conf



2) after setting dns servers, there way check see dns servers are? know can @ "connection information" , see list of dns servers, there way ping verify using?


appreciated.

if using network manager, best way click nm icon, edit connections , change ipv4 settings dhcp (addresses only). able specify unique dns nameserver addresses. please see attached.

recommend research faster nameservers namebench, available in ubuntu repositories.
description
namebench searches fastest dns servers available computer use. namebench runs fair , thorough benchmark using web browser history, tcpdump output, or standardized datasets in order provide individualized recommendation.
you can check dns nameserver used with:
code:
nm-tool  dig www.google.com
here sample machine:
$ dig www.google.com

; <<>> dig 9.8.1-p1 <<>> www.google.com
;; global options: +cmd
;; got answer:
;; ->>header<<- opcode: query, status: noerror, id: 44597
;; flags: qr rd ra; query: 1, answer: 7, authority: 0, additional: 0

;; question section:
;www.google.com. in a

;; answer section:
www.google.com. 43199 in cname www.l.google.com.
www.l.google.com. 299 in a 173.194.75.103
www.l.google.com. 299 in a 173.194.75.104
www.l.google.com. 299 in a 173.194.75.99
www.l.google.com. 299 in a 173.194.75.147
www.l.google.com. 299 in a 173.194.75.106
www.l.google.com. 299 in a 173.194.75.105

;; query time: 29 msec
;; server: 8.8.8.8#53(8.8.8.8)
;; when: sun aug 19 12:11:37 2012
;; msg size rcvd: 148
attached images attached images


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [SOLVED] how to set the dns servers in 12.04 for a wired conection


Ubuntu

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues