Mau tanya tentang DNS Server :D

89 views
Skip to first unread message

Andree Pratama

unread,
Feb 18, 2013, 8:39:49 PM2/18/13
to id-u...@googlegroups.com
Numpang nanya bos :D saya sudah buat DNS server di kompi saya. Waktu saya cek lewat terminal ( kebetulan domainnya andrepratama.com ) dengan perintah :
nslookup andrepratama.com, muncul :
server : 192.168.1.27

tapi kenapa waktu saya cek kebalikannya :
nslookup 192.168.1.27
kenapa error ya? server not found katanya.
Tolongin ya mas / mbak :)

Muhammad A. Fatahna

unread,
Feb 18, 2013, 9:20:16 PM2/18/13
to id-u...@googlegroups.com
Cek reverse DNS nya mas. 

2013/2/19 Andree Pratama <andreep...@gmail.com>

Andree Pratama

unread,
Feb 18, 2013, 9:32:41 PM2/18/13
to id-u...@googlegroups.com
cara ceknya gimana mas? apa yg harus diperbaiki ?

2013/2/19 Muhammad A. Fatahna <mafa...@gmail.com>
--
--
---------------------------------------------------------
Cara bertanya yang baik: http://wiki.linux.or.id/Cara_bertanya_yang_baik
Etika Milis: http://wiki.ubuntu-id.org/EtikaMilis
Milis: http://groups.google.com/group/id-ubuntu
 
---
Anda menerima pesan ini karena Anda berlangganan grup "id-ubuntu" dari Grup Google.
Untuk berhenti berlangganan dan berhenti menerima email dari grup ini, kirim email ke id-ubuntu+berhenti berlan...@googlegroups.com .
Untuk opsi lainnya, kunjungi https://groups.google.com/groups/opt_out.
 
 

Muhammad A. Fatahna

unread,
Feb 18, 2013, 9:48:44 PM2/18/13
to id-u...@googlegroups.com
cara ceknya gimana mas?
Jika masih error berarti masih belum benar 
 
apa yg harus diperbaiki ?
Coba cek lagi konfigurasinya, biasanya ada yang salah dalam penulisannya

Endy Muhardin

unread,
Feb 18, 2013, 10:58:38 PM2/18/13
to id-ubuntu
Coba dipaste konfig yang kamu bikin. 
Kalo gak lihat confignya, gimana mau ngasi tau salahnya dimana.



2013/2/19 Andree Pratama <andreep...@gmail.com>

--

egi.a...@gmail.com

unread,
Feb 19, 2013, 12:31:56 AM2/19/13
to id-ubuntu
reverse domainnya kamu bermasalah jadi ga bisa di detek
--
ubuntu user # 30968

Andree Pratama

unread,
Feb 19, 2013, 2:23:32 AM2/19/13
to id-u...@googlegroups.com
Error nya seperti ini : 
"andree@andree-K84L:~$ nslookup 192.168.1.27
Server: 192.168.1.27
Address: 192.168.1.27#53

** server can't find 27.1.168.192.in-addr.arpa.: NXDOMAIN"

konfigurasi zone saya "/etc/bind/named.conf.local" :

      type master;
      file "/etc/bind/db.andrepratama";
};

zone "1.168.192.in-addr.arpa" {
      type master;
      file "/etc/bind/db.andrepratama.rev";
};

konfigurasi db.andrepratama saya :

;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ns.andrepratama.com. admin.andrepratama.com. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      ns.andrepratama.com.
@       IN      A       192.168.1.27
@       IN      AAAA    ::1

ns      IN      A       192.168.1.27
www     IN      CNAME   ns
ftp     IN      CNAME   ns
mail    IN      CNAME   ns

konfigurasi db.andrepratama.rev saya :

;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ns.andrepratama.com. admin.andrepratama.com. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      ns.andrepratama.com.
1       IN      PTR     ns.andrepratama.com.
1       IN      PTR     www.andrepratama.com.

konfigurasi /etc/resolv.conf saya :
nameserver 192.168.1.27
search           www.andrepratama.com
domain          andrepratama.com

konfigurasi /etc/network/interfaces saya :

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address         192.168.1.27
netmask         255.255.255.0
gateway         192.168.1.27
dns-nameservers 192.168.1.27


Kira - kira ada mas/mbak yang berbaik hati yang bisa menolong saya ? :D

egi.a...@gmail.com

unread,
Feb 19, 2013, 3:24:10 AM2/19/13
to id-ubuntu
coba file reversenya, 1 di ganti 27

Muhammad A. Fatahna

unread,
Feb 19, 2013, 3:25:30 AM2/19/13
to id-u...@googlegroups.com

1       IN      PTR     ns.andrepratama.com.
1       IN      PTR     www.andrepratama.com.

Harusnya IP Servernya (27)

Masim "Vavai" Sugianto

unread,
Feb 19, 2013, 2:39:11 AM2/19/13
to id-u...@googlegroups.com
2013/2/19 Andree Pratama <andreep...@gmail.com>
>
> Error nya seperti ini :
> "andree@andree-K84L:~$ nslookup 192.168.1.27
> Server: 192.168.1.27
> Address: 192.168.1.27#53
>
> ** server can't find 27.1.168.192.in-addr.arpa.: NXDOMAIN"
>

Pada db untuk rev, check ulang, ns-nya ke IP 1.27 atau ke IP 1.1 ??

Tertulis :
Semestinya :

@ IN NS ns.andrepratama.com.
27 IN PTR ns.andrepratama.com.

BTW, ini PTR buat apa? PTR biasanya dibutuhkan untuk mail server dan
itupun menggunakan IP public. Kalau untuk web dan sejenisnya secara
default tidak butuh PTR.

--
Best Regards,

Masim "Vavai" Sugianto - Talk is Cheap, Show Me the Code!
Excellent Enterprise Zimbra VPS/Cloud : http://bit.ly/11moiqr
PT. Excellent Infotama Kreasindo, http://www.excellent.co.id
VMWare Professional Solution Provider; Authorized Zimbra, SUSE & Red Hat Partner
Reply all
Reply to author
Forward
0 new messages