Setup Server Linux


Cuma mau bagi2 aja gmn caranya membuat server bisa jalan pelajaran pertama membuat DNS, yah siapa tau butuh

1. Setting NS1 dengan IP 192.168.0.1 sebagai nameserver dan domain yourdomain.com

server:~ # vi /etc/resolv.conf
nameserver 192.168.0.1

2. Setting file /etc/named.conf
server:~ # vi /etc/named.conf
zone “yourdomain.com” IN {
type master;
file “/var/lib/named/yourdomain.com.zone”;
allow-update { none; };
};
zone “0.168.192.in-addr.arpa” IN {
type master;
file “/var/lib/named/0.168.192.rev”;
allow-update { none; };
};

3. Setting file /var/lib/named/yourdomain.com.zone
untuk suse file zone ada di /var/lib/named/
server:~ # vi /var/lib/named/yourdomain.com.zone
$TTL 86400
@ IN SOA yourdomain.com. root.yourdomain.com. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS ns1.yourdomain.com.
@ IN A 192.168.0.1
ns1 IN A 192.168.0.1
@ IN MX 10 mail.yourdomain.com.
mail IN A 192.168.0.1
WWW IN A 192.168.0.1

4. Setting file /var/lib/named/0.168.192.rev
server:~ # vi /var/lib/named/0.168.192.rev
$TTL 86400
@ IN SOA yourdomain.com. root.yourdomain.com. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D) ; minimum
@ IN NS ns1.yourdomain.com.

5. Restart Service dns
server:~ # /etc/init.d/named restart
Shutting down name server BIND waiting for named to shut down (29s) done
Starting name server BIND done

6. jika ada pesan error coba liat file log
server:~ # tail -f /var/log/messages

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s