edit /etc/resolv.conf malah jadi error ??

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
upik
Posts: 99
Joined: 05 Jun 2010, 14:52

edit /etc/resolv.conf malah jadi error ??

Postby upik » 14 Jun 2010, 02:22

halo para master ubuntu server,

saya mencoba install pdnsd pada ubuntu server 10.4, setelah sukses install mestinya dapat melakukan edit pada /etc/resolv.conf. Akan tetapi setelah diisi 127.0.0.1 dan reboot. akhirnya /etc/resolv.conf cuma tampil:
[size:8pt]# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN[/size]


isi nameserver dan search domainnya ilang, dicoba untuk input manualpun tidak menolong ??

adakah yang bisa membantu saya ??
terima kasih sebelumnya
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: edit /etc/resolv.conf malah jadi error ??

Postby Rh354 » 14 Jun 2010, 03:11

edit di pdnsd bro...langkah2nya gmn? di gw baik2 aja

ni cara gw bro
sudo cp /etc/resolv.conf /etc/resolv.conf.bak


sudo apt-get install resolvconf


sudo apt-get install pdnsd


pilih use resolvconf

sudo mv /etc/resolv.conf.bak /etc/resolvconf/run/interface/eth0


sudo resolvconf -u


edit pdnsd nya (make text editor kesenangan,di gw make gedit)
sudo gedit /usr/share/pdnsd/pdnsd-resolvconf.conf


contoh di gw

/* Debian specific configuration to work with resolvconf */

global {
perm_cache = 1024;
cache_dir = "/var/cache/pdnsd";
run_as = "pdnsd";
server_ip = 127.0.0.1; // Use eth0 here if you want to allow other
// machines on your network to query pdnsd.
status_ctl = on;
paranoid = on;
min_ttl = 15m; // Retain cached entries at least 15 minutes.
max_ttl = 1w; // One week.
timeout = 10; // Global timeout option (10 seconds).
}

server {
label = "resolvconf";
proxy_only = on;
}

server {
label=SpeedyDNS;
ip=202.134.0.155;
ip=203.130.196.155;
timeout=100;
interval=30;
uptest=ping;
ping_timeout=50;
purge_cache=off;
}
// jika selera tambahin juga yang ini (NawalaDNS,OpenDNS,GoogleDNS).

server {
label=NawalaDNS;
ip=180.131.144.144;
ip=180.131.145.145;
timeout=100;
interval=30;
uptest=ping;
ping_timeout=50;
purge_cache=off;
}

server {
label=OpenDNS;
ip=208.67.222.222;
ip=208.67.220.220;
timeout=100;
interval=30;
uptest=ping;
ping_timeout=50;
purge_cache=off;
}

server {
label=GoogleDNS;
ip=8.8.8.8;
ip=8.8.4.4;
timeout=100;
interval=30;
uptest=ping;
ping_timeout=50;
purge_cache=off;
}

source {
owner = localhost;
file = "/etc/hosts";
}

rr {
name = dns.rhesa.itvps.org;
reverse = on;
a = 127.0.0.1;
owner = localhost;
soa = localhost,root.localhost,42,86400,900,86400,86400;
}

/* vim:set ft=c: */


dns.rhesa.itvps.org itu suka2..aslinya localhost..klo mo ganti silahkan aja

save

edit dhcclient

sudo gedit /etc/dhcp3/dhclient.conf


hilangkan pagar di line 20 sehingga menjadi kek gini
prepend domain-name-servers 127.0.0.1;


save dan restart pdnsd
sudo /etc/init.d/pdnsd restart


sekarang coba lakukan ini di terminal
dig yahoo.com


klo jawabannya SERVER: 127.0.0.1#53(127.0.0.1)

berarti sukses..klo kurang silahkan lewat nslookup

nslookup ubuntu-indonesia.com


klo jawabannya

Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
Name: ubuntu-indonesia.com
Address: 113.197.35.151


udah working dnsnya...jadi ga' perlu edit lg di resolv.conf nya :D
User avatar
upik
Posts: 99
Joined: 05 Jun 2010, 14:52

Re: edit /etc/resolv.conf malah jadi error ??

Postby upik » 14 Jun 2010, 10:09

Wah punya Mas kok bisa ya ?

ada cara memperbaiki tanpa harus install ulang ga ya ?? karena sudah mencari banyak cara di google, ga ketemu juga untuk mengembalikan resolv.conf-nya itu

tks
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: edit /etc/resolv.conf malah jadi error ??

Postby Rh354 » 14 Jun 2010, 10:16

upik wrote:Wah punya Mas kok bisa ya ?

ada cara memperbaiki tanpa harus install ulang ga ya ?? karena sudah mencari banyak cara di google, ga ketemu juga untuk mengembalikan resolv.conf-nya itu

tks
sebelumnya cara instalasinya gimana bro..coba di chmod bro..
User avatar
upik
Posts: 99
Joined: 05 Jun 2010, 14:52

Re: edit /etc/resolv.conf malah jadi error ??

Postby upik » 14 Jun 2010, 15:24

chmod ?? untuk yang mana mas ?
resolv.conf sudah saya set 777, tapi tetep ga doyan diganti nih ??
User avatar
Rh354
Posts: 718
Joined: 14 Mar 2010, 19:56
Location: between the truth and the lies
Contact:

Re: edit /etc/resolv.conf malah jadi error ??

Postby Rh354 » 15 Jun 2010, 15:55

upik wrote:chmod ?? untuk yang mana mas ?
resolv.conf sudah saya set 777, tapi tetep ga doyan diganti nih ??
file aslinya di

/etc/resolvconf/resolv.conf.d/original

klo yg disini isinya apa bro

/etc/resolvconf/run/resolv.conf
User avatar
upik
Posts: 99
Joined: 05 Jun 2010, 14:52

Re: edit /etc/resolv.conf malah jadi error ??

Postby upik » 03 Aug 2010, 22:18

Pak, kalau boleh tanya..

bagaimana membuang pdnsd yang sudah dibuat diatas ? atau disable (hanya bisa hidup atas perintah yang diketik secara manual ).

mau eksperimen, karena sepertinya ada yang nyangkut dan malah jadi kurang cepet.

tks
User avatar
suryayusra
Posts: 394
Joined: 05 May 2010, 15:54
Location: Palembang, Indonesia
Contact:

Re: edit /etc/resolv.conf malah jadi error ??

Postby suryayusra » 04 Aug 2010, 09:39

ane menyaksikan aja :) blom perna coba,
tapi setelah baca ini, jadi pingin cubo.

Return to “Ubuntu Server”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest