SETTING SERVER

MELIHAT KONFIGURASI NIC

root@tkjserver1:/home/administrator# ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:30:18:ab:66:cd

inet addr:192.168.88.1 Bcast:192.168.88.255 Mask:255.255.255.0

inet6 addr: fe80::230:18ff:feab:66cd/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:249 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 B) TX bytes:13226 (13.2 KB)

Interrupt:16

SETTING IP ADDRESS NIC

root@tkjserver1:/home/administrator# vim /etc/network/interfaces

# The primary network interface

# Tambahkan baris berikut (jika belum ada)

auto eth0

iface eth0 inet static

address 192.168.88.1

netmask 255.255.255.0

network 192.168.88.0

broadcast 192.168.88.255

gateway 192.168.88.1

# dns-* options are implemented by the resolvconf package, if installed

dns-nameservers 192.168.88.1

KONFIGURASI FILE DNS

root@tkjserver1:/home/administrator# vim /etc/bind/named.conf

#Tambahkan baris perintah berikut :

zone "tekaje-talaga.net" {

type master;

file "/etc/bind/db.tekaje-talaga.zone";

};

zone "88.168.192.in-addr.arpa" {

type master;

file "/etc/bind/db.tekaje-talaga.rev";

};

MEMBUAT FILE FORWARD (ZONE)

root@tkjserver1:/home/administrator# vim /etc/bind/db.tekaje-talaga.zone

$TTL 86400

$ORIGIN tekaje-talaga.net.

@ IN SOA ns1.tekaje-talaga.net. admin.tekaje-talaga.net. (

2007020109 ;serial

1H ;refresh

15M ;retry

1W ;expire

1D ) ;minimum

IN NS ns1.tekaje-talaga.net.

IN MX 10 mail.tekaje-talaga.net.

ns1 IN A 192.168.88.1

server IN CNAME ns1

www IN CNAME ns1

mail IN CNAME ns1

ftp IN CNAME ns1

proxy IN CNAME ns1

secure IN CNAME ns1

ws-01 IN A 192.168.88.2

ws-02 IN A 192.168.88.3

ws-03 IN A 192.168.88.4

MEMBUAT FILE REVERSE (REV)

root@tkjserver1:/home/administrator# vim /etc/bind/db.tekaje-talaga.rev

@ IN SOA ns1.tekaje-talaga.net. admin.tekaje-talaga.net. (

2007020109 ;serial

1H ;refresh

15M ;retry

1W ;expire

1D ) ;minimum

IN NS ns1.tekaje-talaga.net.

1 IN PTR ns1.tekaje-talaga.net.

2 IN PTR ws-01.tekaje-talaga.net.

3 IN PTR ws-02.tekaje-talaga.net.

4 IN PTR ws-03.tekaje-talaga.net.

RESTART APLIKASI DNS

root@tkjserver1:/home/administrator# /etc/init.d/bind9 restart

* Stopping domain name service... bind9 [ OK ]

* Starting domain name service... bind9 [ OK ]

MENDEFINISIKAN IP DNS-SERVER

root@tkjserver1:/home/administrator# vim /etc/resolv.conf

#Tambahkan baris berikut (jika belum ada)

domain ns1.tekaje-talaga.net

nameserver 192.168.88.1

TEST DNS-SERVER

root@tkjserver1:/home/administrator# nslookup

> set type=any

> tekaje-talaga.net

Server: 192.168.88.1

Address: 192.168.88.1#53

tekaje-talaga.net

origin = ns1.tekaje-talaga.net

mail addr = admin.tekaje-talaga.net

serial = 2007020109

refresh = 3600

retry = 900

expire = 604800

minimum = 86400

tekaje-talaga.net nameserver = ns1.tekaje-talaga.net.

tekaje-talaga.net mail exchanger = 10 mail.tekaje-talaga.net.

TEST DNS-SERVER DGN MEMANGGIL ADDRESS LANGSUNG

root@tkjserver1:/home/administrator# nslookup ns1.tekaje-talaga.net

Server: 192.168.88.1

Address: 192.168.88.1#53

Name: ns1.tekaje-talaga.net

Address: 192.168.88.1

TEST DNS-SERVER DGN MEMANGGIL IP-ADDRESS LANGSUNG

root@tkjserver1:/home/administrator# nslookup 192.168.88.1

Server: 192.168.88.1

Address: 192.168.88.1#53

1.88.168.192.in-addr.arpa name = ns1.tekaje-talaga.net.

0 komentar:



Posting Komentar