Masalah setting DNS, koq SERVFAIL

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
Post Reply
User avatar
caredox

Masalah setting DNS, koq SERVFAIL

Post 13 Dec 2011, 15:05

uda coba install bind9,,
tapi pas nslookup yang kluar error gneh,,
** server can't find : SERVFAIL

help dumz,,


User avatar
Jikey

Post 13 Dec 2011, 15:13

isi DNS nya lewat edit connection aja bro lbih gampang


User avatar
yudiarbi
Contact:

Post 13 Dec 2011, 15:16

Jikey wrote:isi DNS nya lewat edit connection aja bro lbih gampang
ini ubuntu server kayake bro...


User avatar
caredox

Post 13 Dec 2011, 15:19

iya rencana bt setting dns di ubuntuserver


User avatar
caredox

Post 13 Dec 2011, 15:22

===named.conf===
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

zone "web.us.mn" {
type master;
file "/etc/bind/db.web.us.mn.zone";
};

zone "68.1.118.in-addr.arpa" {
type master;
file "/etc/bind/db.web.us.mn.rev";
};


===db.web.us.mn.zone===
$TTL 86400
$ORIGIN web.us.mn.
SOA ns.web.us.mn. root.web.us.mn.
(
2010052001 ; serial
1H ; refresh
15M ; retry
1W ; expire
1D ) ; minimum
IN NS ns.web.us.mn.
IN MX 50 mail.web.us.mn.
ww.web.us.mn. IN A 118.1.68.50
mail.web.us.mn. IN A 118.1.68.50
web.us.mn. IN A 118.1.68.50


===db.web.us.mn.rev===
@ IN SOA ns.web.us.mn. root.web.us.mn. (
2007020109 ; serial
1H ; refresh
15M ; retry
1W ; expire
1D ) ; minimum
IN NS ns.web.us.mn.
1 IN PTR ns.web.us.mn.
1 IN PTR http://www.web.us.mn.
1 IN PTR mail.web.us.mn.
1 IN PTR web.us.mn.

======================
nslookup web.us.mn
Server: 118.1.68.50
Address: 118.1.68.50#53

** server can't find web.us.mn.ns.web.us.mn: SERVFAIL


User avatar
Jikey

Post 13 Dec 2011, 15:40

yudiarbi wrote: ini ubuntu server kayake bro...
hehehe... sory masbro ane ngga liat klo ini daftar forum server,,, :blush:

buat masbro caredox: coba mampir di sini masbro https://help.ubuntu.com/community/BIND9ServerHowto


User avatar
caredox

Post 13 Dec 2011, 15:51

mksudnya bro Jikey : ngga liat klo ini daftar forum server..??

coba mnuju TKp bro,,,


User avatar
blackshirt
Contact:

Post 14 Dec 2011, 10:00

If you are just adding zones, please do that in /etc/bind/named.conf.local
sesuai yang disarankan, sebaiknya kalau mau menambah konfigurasi buat zones, sebaiknya tambahkan di file /etc/bind/named.conf.local saja,
ww.web.us.mn. IN A 118.1.68.50
mail.web.us.mn. IN A 118.1.68.50
web.us.mn. IN A 118.1.68.50
itu alamat sama, kenapa gak pakai CANONICAL NAME saja ??


User avatar
caredox

Post 14 Dec 2011, 11:07

mksudnya bro blackshirt..???
lebih detil dumz bro,,


User avatar
yudiarbi
Contact:

Post 14 Dec 2011, 12:56

mencoba membantu ya bro, sepakat spt kt bro blackshirt, sesuai ini :

Code: Select all

If you are just adding zones, please do that in /etc/bind/named.conf.local
jd jgn bikin apa2 di named.conf
sebaiknya bikin di
named.conf.local, edit isinya menjadi:

Code: Select all

include "/etc/bind/zones.rfc1918";
zone "web.us.mn" {
type master;
file "/etc/bind/db.web.us.mn";
};
zone "68.1.118.in-addr.arpa" {
type master;
file "/etc/bind/db.118";
};
include "/etc/bind/rndc.key";
kemudian duplicate file db local spt yg disebutkan di named.conf.local
isi dari /etc/bind/db.web.us.mn
[spoiler];
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.web.us.mn. mail.web.us.mn. (
20111214 ;Serial
604800 ;Refresh
86400 ;Retry
2419200 ;Expire
604800 ) ;Negative Cache TTL
;
localhost IN A 127.0.0.1
@ IN NS ns.web.us.mn.
ns IN A [ip server]
www IN CNAME ns[/spoiler]
bikin db.118 isinya sama dg diatas, hanya berbeda di :

Code: Select all

;
@ IN NS ns.
www IN CNAME ns
untuk serial sesuaikan dengan tanggal pembuatan
untuk www opsional aj jika ada webserver
definisikan juga ip dns server di /etc/hosts
sekali lagi, mencoba bantu aj, monggo dianalisa


User avatar
caredox

Post 14 Dec 2011, 13:12

ane coba bro yudiarbi,,
tpi skrang gra2 bind error g bisa ngapa2en,,,
klo bind9 restart,,jadi bgni
* Stopping domain name service... bind9 rndc: connect failed: 127.0.0.1#953: connection refused


User avatar
yudiarbi
Contact:

Post 14 Dec 2011, 13:33

rndc.key nya bro, gak ngoprek2 disitu?ato masukin dulu
nameserver dan search domain di /etc/resolv.conf


User avatar
caredox

Post 14 Dec 2011, 13:51

uda tak coba cara diatas,,
tapi pas bind9 restart,,jadi bgni
* Stopping domain name service... bind9 rndc: connect failed: 127.0.0.1#953: connection refused

:-(


User avatar
caredox

Post 14 Dec 2011, 14:04

isi network interfaces :
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 118.1.68.50
netmask 255.255.255.240
network 118.1.68.47
broadcast 118.1.68.62
gateway 118.1.68.47
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 118.1.68.48
dns-search ubuntuserver
==========================================
isp => modem => hub => komputer


User avatar
yudiarbi
Contact:

Post 14 Dec 2011, 14:18

jd ini lancard cmn satu bro?wah mana bisa dimana eth0 ke isp jdi satu dgn dns server, setahuq loh


User avatar
caredox

Post 14 Dec 2011, 14:40

emg yg bro bilang ntu bener,,:D

intinya gni bro,,,web server ini masih pake ip publik,,
trz klnjutannya gmn bro..????

sory y bro2 sxan pertnyaan bodoh gene tak lempar ke forum :D
smoga berkenan..:D


User avatar
yudiarbi
Contact:

Post 14 Dec 2011, 14:56

sama bro, aq juga lg belajar juga, gini aj bro, tuh eth0 mengarah ke ISP kan?digunain ke clien2 dlm satu jaringan lokal gak?


User avatar
blackshirt
Contact:

Post 15 Dec 2011, 06:11

* Stopping domain name service... bind9 rndc: connect failed: 127.0.0.1#953: connection refused
biasanya karena ada kesalahan dalam konfigurasi bind, syntak-nya, tanda titik (.), juga berpengaruh


User avatar
caredox

Post 15 Dec 2011, 09:11

syntak dmn bro..???


User avatar
blackshirt
Contact:

Post 15 Dec 2011, 13:01

kamu cek aja lewat #tail -f /var/log/messages
atau menjalankannya secara manual
#named -g
dan lihat, kemungkinan errornya..


atau lebih mudah lagi, install bind9utils, dan gunakan tool named-checkconf, named-checkzone untuk mengecek konfigurasi named yang sudah ada


User avatar
caredox

Post 15 Dec 2011, 14:23

pk named -g
kluar : /etc/bind/named.conf.local:16: open: /etc/bind/rndc.key: permission denied

ntu np bro.??


User avatar
blackshirt
Contact:

Post 15 Dec 2011, 14:43

pakai root donk gan (atau pakai sudo) .... named membaca rndc.key yang berisi "informasi sensitif" yang ijin permisinya biasanya "sangat terbatas"


User avatar
caredox

Post 15 Dec 2011, 15:07

uda bro,,tapi pas tak jlanin nslookup web.us.mn
statusnya
;; connection timed out; no servers could be reached
klo ga
NXDOMAIN gtu,,,


User avatar
caredox

Post 15 Dec 2011, 15:20

yudiarbi wrote:m
named.conf.local, edit isinya menjadi:

Code: Select all

include "/etc/bind/zones.rfc1918";
zone "web.us.mn" {
type master;
file "/etc/bind/db.web.us.mn";
};
zone "68.1.118.in-addr.arpa" {
type master;
file "/etc/bind/db.118";
};
include "/etc/bind/rndc.key";
kemudian duplicate file db local spt yg disebutkan di named.conf.local
isi dari /etc/bind/db.web.us.mn
[spoiler];
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.web.us.mn. mail.web.us.mn. (
20111214 ;Serial
604800 ;Refresh
86400 ;Retry
2419200 ;Expire
604800 ) ;Negative Cache TTL
;
localhost IN A 127.0.0.1
@ IN NS ns.web.us.mn.
ns IN A [ip server]
www IN CNAME ns[/spoiler]
yang diatas uda tak coba bro,,,cuma bagian ini
[/quote]
bikin db.118 isinya sama dg diatas, hanya berbeda di :

Code: Select all

;
@ IN NS ns.
www IN CNAME ns
untuk serial sesuaikan dengan tanggal pembuatan
untuk www opsional aj jika ada webserver
definisikan juga ip dns server di /etc/hosts
[/quote]


User avatar
yudiarbi
Contact:

Post 16 Dec 2011, 09:10

maksudnya db.118 isinya sama dengan db.web.us.mn cuman berbeda di bagian bawahh
di db.web.us.mn kan ada bagian ini:

Code: Select all

;
localhost IN A 127.0.0.1
@ IN NS ns.web.us.mn.
ns IN A [ip server]
www IN CNAME ns
itu diganti
[spoiler]@ IN NS ns.
www IN CNAME ns[/spoiler]


User avatar
caredox

Post 16 Dec 2011, 09:33

uda bisa koq bro,,:D

btw trz klo mw setting dns dengan mail server gmn yakk..???
cz ntu kan brhubngan,,,


User avatar
yudiarbi
Contact:

Post 16 Dec 2011, 10:15

wah, udah bisa to, wah hrs dishare ini solvednya diapain?
ya tinggal tambahin bro di dbnya
mail.(domain)


User avatar
caredox

Post 16 Dec 2011, 11:58

utk db.web.us.mn
=======
$TTL 604800
@ IN SOA ns.web.us.mn. admin.web.us.mn. (
20111214 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
;#localhost IN A 127.0.0.1
;#@ IN NS ns.web.us.mn.
;#ns IN A 118.1.68.50
;#www IN CNAME ns
@ IN NS ns.web.us.mn.
@ IN A 118.1.68.50
@ IN AAAA ::1
ns IN A 118.1.68.50
www IN CNAME ns

db.118
=======
$TTL 604800
@ IN SOA ns.web.us.mn. admin.web.us.mn. (
20111214 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
;# @ IN NS ns.web.us.mn.
;# ns IN A 118.1.68.50
;# www IN CNAME ns
@ IN NS ns.web.us.mn.
10 IN PTR ns.web.us.mn.
10 IN PTR http://www.web.us.mn.
===EOF=====

cuma klo buat nambahin buat email gmna ya..??
masih error...help,,,


User avatar
blackshirt
Contact:

Post 16 Dec 2011, 12:05

gunakan MX record di configurasi bind-nya


User avatar
caredox

Post 16 Dec 2011, 12:05

coba check thread ane juga,,xixixi
masih berhubungan juga dengan thread ini,,

http://ubuntu-indonesia.com/forums/ubbt ... #Post85648


User avatar
caredox

Post 16 Dec 2011, 12:22

contohnya gmn bro ,,,mengikuti settingan bind ane yg diatas..?


User avatar
blackshirt
Contact:

Post 16 Dec 2011, 12:31

IN MX 1 mail.web.us.mn.
mail IN A 118.1.68.50
Catatan:
MX record digunakan untuk mendefinisikan seharusnya suatu email itu dikirim. MX harus menunjuk ke sebuah A record, dan tidak boleh sebuah CNAME.
CMIIW


User avatar
caredox

Post 16 Dec 2011, 12:41

ane tambahin geneh uda berhasil koq bro
IN MX 10 mail
mail IN A 118.1.68.50
di file db.web.us.mn,,

thx ya,,

tapi bantuin lageh dumz buat setting mail server dengn postfix
http://ubuntu-indonesia.com/forums/ubbt ... #Post85648


User avatar
caredox

Post 16 Dec 2011, 14:47

tapi np ya klo nslookup web.us.mn =>status:noerror
tapi klo nslookup 118.1.68.50 =>status:NXDOMAIN

trz kayaknya settingan buat MX nya juga blom bner ya..???


Post Reply

Who is online

Users browsing this forum: No registered users and 46 guests