[ask] masalh DNS

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
doedo
Posts: 35
Joined: 12 Jan 2011, 15:54

[ask] masalh DNS

Postby doedo » 05 Jun 2011, 22:14

kenapa y setiap kali ganti koneksi mesti setting dns nya di resolv.conf ?
misalnya pke wireless,,gnti dlu dns nya,ntar klw pke modem gnti lgi dns nya.bgitu jg pke kbel lan...
gmn y supaya dns nya permanent trus g perlu di ganti2 lg??
User avatar
mat_angin
Posts: 145
Joined: 27 May 2011, 14:52
Location: The Blue Nowhere
Contact:

Re: [ask] masalh DNS

Postby mat_angin » 07 Jun 2011, 16:41

Pertama isi resolve nya

sudo gedit /etc/resolv.conf

nameserver 8.8.8.8
nameserver 4.4.4.4
# nameserver 192.168.1.1

Jika make dhcp, maka akan selalu berubah, lakukan step berikut :

1. Backup dahulu:
sudo cp /etc/dhcp3/dhclient.conf /etc/dhcp3/dhclient.conf.bak

2. Edit dhclient.conf file:
sudo gedit /etc/dhcp3/dhclient.conf

3. Lihat baris ini:

#prepend domain-name-servers 127.0.0.1;
Hapus comment (#) dan ganti ke:

prepend domain-name-servers 8.8.8.8, 4.4.4.4;

4. Next, periksa domain-name-servers, dan hapus kata itu:

prepend domain-name-servers 8.8.8.8, 4.4.4.4;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers (dihapus, tidak digunakan) , host-name,
netbios-name-servers, netbios-scope;
#require subnet-mask, domain-name-servers;

5. Restart
$ sudo/etc/init.d/networking restart

Return to “Pertanyaan Umum”

Who is online

Users browsing this forum: No registered users and 7 guests