Home > artikel Ilmu > DNS Server Mandriva 2008.1

DNS Server Mandriva 2008.1

1. Install apache (kasus : Install LAMP)
2. install bind
dengan perintah :
media source ny saiya pake ftp://ftp.mirror.kernel.org

urpmi bind

file named terletak pada = /var/lib/named/etc/
edit pada named.conf, dan tambahi dengan source : contoh saja

zone "didin2009.net" IN { 
	type master;
	file "master/didin.zone";
	allow-update {none;};
};

zone "100.168.192.in-addr.arpa" IN {
	type master;
	file "reverse/didin.local";
	allow-update {none;};
};

buat fie .zone di /var/lib/named/var/named/master/
contoh isi dengan : (sebagai perterjemah ip ke nama domain)

$TTL	86400
@		IN SOA	ns1.didin2009.net.       root.didin2009.net. (
					2009040501	; serial (d. adams)
					3H		; refresh
					15M		; retry
					1W		; expiry
					1D )		; minimum

	        IN NS		ns1.didin2009.net
	 	IN MX	10	mail.didin2009.net
	 	IN A		192.168.100.100
;	 	IN AAAA		::1

mail	IN	A	192.168.100.100
ns1	IN	A	192.168.100.19
www	IN	CNAME	ns1
webmail	IN	CNAME	mail

buat file reverse di = /var/lib/named/var/named/reverse/
contoh : (sebagai penterjemah nama domain ke ip addrs)

$TTL	86400
@       IN      SOA     ns1.didin2009.net. root.didin2009.net.  (
                                      2009040501 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
	IN      NS      ns1.didin2009.net.

;PTR
19	IN      PTR     didin2009.net.
100	IN	PTR	mail.didin2009.net.

jalan perintah /etc/init.d/named restart

tes nya :

[root@localhost reverse]# dig didin2009.net

; <> DiG 9.5.0-P1 <> didin2009.net
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9154
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;didin2009.net.			IN	A

;; ANSWER SECTION:
didin2009.net.		86400	IN	A	192.168.100.100

;; AUTHORITY SECTION:
didin2009.net.		86400	IN	NS	ns1.didin2009.net.didin2009.net.

;; Query time: 0 msec
;; SERVER: 192.168.100.19#53(192.168.100.19)
;; WHEN: Sun Apr  5 22:37:38 2009
;; MSG SIZE  rcvd: 79

sumber : http://mandriva-user.or.id/

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: