Beranda » Slack|Ware » DNS_Server On Linux

DNS_Server On Linux

Start here

Dns_server adalah sebuah server yang berfungsi menangani translasi ip penamaan host kedalam Ip Address atau menangani translasi IP address ke dalam hostname/domain.
Aplikasi Pendukung untuk Dns_server yaitu Bind/Bind9.. bind untuk linux slackware dan untuk bind9 di gunakan pada linux ubuntu.

ON Slackware
# nano /etc/named.conf

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
//
zone "." IN {
type hint;
file "caching-example/named.root";
};

zone "idseconf.com" IN {
type master;
file "/va/named/idseconf.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "/var/named/reverse.zone";
allow-update { none; };
};

# cp /var/named/caching-example/localhost.zone /var/named/idseconf.zone
# cp /var/named/caching-example/named.local /var/named/reverse.zone

# cd /var/named/
# nano idseconf.zone

TTL 86400
$ORIGIN idseconf.com.
@ 1D IN SOA ns1.idseconf.com. root.idseconf.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS ns1.idseconf.com.
1D IN A 127.0.0.1

ns1 IN A 127.0.0.1
www IN CNAME ns1.idseconf.com.

check Error

# named-checkzone idseconf.com /var/named/idseconf.zone
zone idseconf.com/IN: loaded serial 42
OK

# cd /var/named/
# nano reverse.zone

TTL 86400
@ IN SOA ns1.idseconf.com. root.idseconf.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns1.

1 IN PTR idseconf.com.

check error

# named-checkzone idseconf.zone reverse.zone
zone idseconf.zone/IN: loaded serial 1997022700
OK

# sh /etc/rc.d/rc.httpd start
# sh /etc/rc.d/rc.bind start


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