red welcome letters

Video

Penari Latar


dancing chicken

More Pics @ MySpaceAntics.com

Jumat, 03 Juni 2011

Setting DNS

Domain : setia.com
Net ID : 192.168.2.2
Konfigurasi file named.conf di dalam direktori etc
[root@server root]# vi /etc/named.conf
// generated by named-bootconf.pl
options {
directory “/var/named”;

/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };

};
zone “.” IN {
type hint;
file “named.ca”;
};
zone “localhost” IN {
type master;
file “localhost.zone”;
allow-update { none; };
};
zone “0.0.127.in-addr.arpa” IN {
type master;
file “named.local”;
allow-update { none; };
};
zone “setia.com” IN {
type master;
file “anang.zone”;
};
zone “2.168.192.in-addr.arpa” IN {
type master;
file “aone.zone”;
};
include “/etc/rndc.key”;
Simpan dan keluar dari file dengan menekan tombol Esc+:wq kemudian Enter. Kemudian pindah ke direktori named,file pada direktori /var/named/. Dengan perintah dibawah ini:
[root@server root]# cd /var/named
setelah itu copy file localhost.zone ke anang.zone dan named,local ke aone.zone
[root@server named]# cp localhost.zone anang.zone
[root@server named]# cp named.local aone.zone
Kemudian setelah dicopy edit file tersebut dengan perintah seperti dibawah ini:
[root@server named]# vi anang.zone
· Isi dari file : anang.zone
$TTL 86400
$ORIGIN setia.com
@ IN SOA @ root.setia.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS setia.com.
@ IN A 192.168.2.2
WWW IN CNAME @
Simpan dan keluar dari file dengan menekan tombol Esc+:wq kemudian Enter.



[root@server named]# vi aone.zone
· Isi file : aone.zone
$TTL 86400
@ IN SOA @ root. setia.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS setia.com.
2 IN PTR setia.com.
Simpan dan keluar dari file dengan menekan tombol Esc+:wq kemudian Enter.
Setelah selesai melakukan instalasi dan konfigurasi yang kita inginkan sebagaimana tersebut diatas, maka jalankan services named kita.
[root@server named]# service named start
[root@server named]# [ OK ]
Lakukan pengujian dari client dengan melakukan ping ke domain kita : setia.com
[root@server named]# ping setia.com
64 bytes from 192.168.1.16: icmp_seq=0 ttl=128 time=0.366 ms
64 bytes from 192.168.2.2: icmp_seq=0 ttl=128 time=0.366 ms
64 bytes from 192.168.2.2: icmp_seq=0 ttl=128 time=0.366 ms
64 bytes from 192.168.2.2: icmp_seq=0 ttl=128 time=0.366 ms
64 bytes from 192.168.2.2: icmp_seq=0 ttl=128 time=0.366 ms
192.168.2.2 ping statistics –
5 packets transmitted, 5 received, 0% packet loss, time 4044ms
rtt min /avg/max/dev = 0.250/0.297/0.354/0.044 ms
Alhamdullilah settingan DNS kita berhasil dan Merdeka untuk kita semua…..ha…ha…ha…

Tidak ada komentar:

Posting Komentar


More Pics @ MySpaceAntics.com
-
MatHoer ThaNk YoU..........
Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Pecinta Music | Cah Gunung Ananag Bonang - Special Theme | Styalaras477@yaho.co.id