KONFIGURASI DNS SERVER PADA FEDORA CORE 6

KONFIGURASI DNS SERVER PADA FEDORA CORE 6

Dibawah ini adalah contoh konfigurasi DNS Server pada Fedora Core 6 (zod)
Dengan : domain ecs.com
address 192.168.100.1

# nano /etc/resolv.conf
search ecs.com
nameserver 192.168.100.1

# nano /etc/named.conf
options {
directory “/var/named/”;
allow-query {
127.0.0.1;
192.168.100.0/24;
};
allow-transfer {
192.168.100.1;
};
};

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; };
};

include “/etc/rndc.key”;

zone “ecs.com” IN {
type master;
file “/var/named/ecs.com.zone”;
allow-update { 192.168.100.1; };
};

zone “100.168.192.in-addr.arpa” IN {
type master;
file “/var/named/ecs.com.local”;
allow-update { 192.168.100.1; };
};

# nano /etc/named.rfc1912.zones

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; };
};

# nano /etc/named.caching-nameserver.conf

options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory “/var/named”;
dump-file “/var/named/data/cache_dump.db”;
statistics-file “/var/named/data/named_stats.txt”;
memstatistics-file “/var/named/data/named_mem_stats.txt”;
query-source port 53;
query-source-v6 port 53;
allow-query { localhost; };
};
logging {
channel default_debug {
file “data/named.run”;
severity dynamic;
};
};
view localhost_resolver {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes; };
include “/etc/named.rfc1912.zones”;
include “/etc/named.ecs.com.zones”;
};

# nano /etc/named.ecs.com.zones

zone “ecs.com” IN {
type master;
file “/var/named/ecs.com.zone”;
allow-update { 192.168.100.1; };
};

zone “100.168.192.in-addr.arpa” IN {
type master;
file “/var/named/ecs.com.local”;
allow-update { 192.168.100.1; };
};

# cp /etc/named.conf /var/named/chroot/etc/

# cp /etc/named.ecs.com.zones /var/named/chroot/etc/

# cp /var/named/named.local /var/named/ecs.com.local

# cp /var/named/localhost.zone /var/named/ecs.com.zone

# nano /var/named/ecs.com.zone
$TTL 86400
@ IN SOA ecs.com. root.ecs.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS ecs.com.
IN A 192.168.100.1
www IN CNAME ecs.com.

# nano /var/named/ecs.com.local
$TTL 86400
@ IN SOA ecs.com. root.ecs.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ecs.com.
1 IN PTR ecs.com.

# cp /var/named/ecs.com.zone /var/named/chroot/var/named/

# cp /var/named/ecs.com.local /var/named/chroot/var/named/

# cp /etc/named.conf /var/named/chroot/etc/

# cp /etc/named.ecs.com.zones /var/named/chroot/etc/

# chown named:named /var/named

# chown named:named /var/named/chroot/

# chmod 775 /var/named/

# chmod 775 /var/named/ecs.com.zone

# chmod 775 /var/named/ecs.com.local

# service named start

# dig ecs.com

# nslookup ecs.com

# nslookup http://www.ecs.com

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

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

%d blogger menyukai ini: