[Ask] Configurasi DNS Bind

Status
Not open for further replies.

xpreborn

Apprentice 1.0
Selamat malam Om,
Ini saya lagi belajar setting DNS dengan Bind, kira2 konfigurasi saya ini sudah benar belum yach ?
Karena sudah 1 jam setengah berlalu belum resolv juga
Saya menggunakan centos 6 dengan Bind 9.8.2.rc1

Berikut configurasinya :
/etc/named.conf
include "/etc/rndc.key";

controls {
inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
};

options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
allow-transfer {"none";};
recursion yes;

dnssec-enable yes;
dnssec-lookaside auto;
dnssec-validation yes;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
include "/etc/named.rfc1912.zones";

zone "ns1.domainsaya.com" {
type master;
file "/var/named/ns1.domainsaya.com.db";
};

zone "ns2.domainsaya.com" {
type master;
file "/var/named/ns2.domainsaya.com.db";
};

zone "domainsaya.com" {
type master;
file "/var/named/domainsaya.com.db";
};

zone "333.222.111.in-addr.arpa" IN {
type master;
file "/var/named/333.222.111.rev";
allow-update { none; };
};
/var/named/ns1.domainsaya.com.db (ns1 dan ns2 mirip hanya beda di ns1 dan ns2 saja):
; Zone file for ns1.domainsaya.com
$TTL 14400
@ 86400 IN SOA ns1.domainsaya.com. emailsaya.gmail.com. (
2016042401 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

ns1.domainsaya.com. 86400 IN NS ns1.domainsaya.com.
ns1.domainsaya.com. 86400 IN NS ns2.domainsaya.com.

ns1.domainsaya.com. IN A 111.222.333.444

localhost.ns1.domainsaya.com. IN A 127.0.0.1

ns1.domainsaya.com. IN MX 0 ns1.domainsaya.com.

mail IN CNAME ns1.domainsaya.com.
www IN CNAME ns1.domainsaya.com.
ftp IN CNAME ns1.domainsaya.com.
/var/named/domainsaya.com.db
; Zone file for domainsaya.com
$TTL 14400
domainsaya.com. 86400 IN SOA ns1.domainsaya.com. emailsaya.gmail.com. (
2016042409 ;Serial Number
86400 ;refresh
7200 ;retry
3600000 ;expire
86400 )

domainsaya.com. 86400 IN NS ns1.domainsaya.com.
domainsaya.com. 86400 IN NS ns2.domainsaya.com.

domainsaya.com. 14400 IN A 111.222.333.444

domainsaya.com. 14400 IN MX 0 domainsaya.com.

mail 14400 IN CNAME domainsaya.com.
www 14400 IN CNAME domainsaya.com.
ftp 14400 IN A 111.222.333.444
webmail 14400 IN A 111.222.333.444
ns1 14400 IN A 111.222.333.444
ns2 14400 IN A 111.222.333.444
Di sisi panel domain manager (saya hanya punya akses ke client area whmcs) yang saya lakukan :
1. Register ns1/ns2.domainsaya.com IP ke IP server yang saya coba setting DNS di atas
2. Kemudian NS nya saya rubah ke ns1/ns2.domainsaya.com
3. Kendala hingga sekarang belum resolv, apakah karena masih propagasi atau karena config saya yang salah yang Om ?

Sebelumnya terimakasih banyak
 

xpreborn

Apprentice 1.0
Kok kacau begitu?.
Nah yang benarnya gmn kira2 pak ?

Coba diperiksa via www.IntoDNS.com atau www.ViewDNS.info mas. Nanti kelihatan masalah yang belum selesai di bagian yang mana. Kalau sudah benar semua, tinggal tunggu resolve saja.
Sudah dicheck Om, Name servernya sudah mengarah ke ns yang baru,
Namun dns nya ga respon katanya
DNS servers responded ERROR: One or more of your nameservers did not respond:
The ones that did not respond are:

Missing nameservers reported by your nameservers You should already know that your NS records at your nameservers are missing, so here it is again:

SOA record No valid SOA record came back!
MX
MX Records Oh well, I did not detect any MX records so you probably don't have any and if you know you should have then they may be missing at your nameservers!

WWW A Recordnya masih mengarah ke IP lama
 

mustafaramadhan

Hosting Guru
Bentuk sederhana domainsaya.com.db adalah:
Code:
domainsaya.com. in A 111.111.111.111
ns1.domainsaya.com. in A 111.111.111.111
ns2.domainsaya.com. in A 111.111.111.111
domainsaya.com. in NS ns1.domainsaya.com.
domainsaya.com. in NS ns2.domainsaya.com.
 

xpreborn

Apprentice 1.0
Bentuk sederhana domainsaya.com.db adalah:
Code:
domainsaya.com. in A 111.111.111.111
ns1.domainsaya.com. in A 111.111.111.111
ns2.domainsaya.com. in A 111.111.111.111
domainsaya.com. in NS ns1.domainsaya.com.
domainsaya.com. in NS ns2.domainsaya.com.
Baik pak untuk ini sdh saya sesuaikan menjadi seperti ini tadi malam , kira2 untuk yg lain gmn pak soalnya masih belum resolv hingga pagi ini masih sama juga
 

xpreborn

Apprentice 1.0
coba service named status hasilnya paste disini
Mohon maaf Om telat replynya jarang bisa online soalnya, ini hasilnya om

[[email protected] ~]# /etc/init.d/named status
version: 9.8.2rc1-RedHat-9.8.2-0.47.rc1.el6
CPUs found: 2
worker threads: 2
number of zones: 21
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
named (pid 2855) is running...
[[email protected] ~]#
 

mustafaramadhan

Hosting Guru
Child nameserver dan nameserver di domain panel (aka 'tempat beli domain') sudah disesuaikan?.
 

xpreborn

Apprentice 1.0
Child nameserver dan nameserver di domain panel (aka 'tempat beli domain') sudah disesuaikan?.
Sudah pak saya editnya dari dns management client area whmcs dibagian register private nameserver:
ns1.domainsaya.com ke IP 111.222.333.44
ns2.domainsaya.com ke IP 111.222.333.44
 
Status
Not open for further replies.

    
Top