Sponsored by

Thursday, May 1, 2008

Configure Primary DNS in Linux

Before install DNS in SuSE Linux
install packet bind , bind-chrootenv, bind-utils
Note logon as root to have full permission
after edit file /etc/named.conf
# The following zone definitions don't need any modification.
# The first oneis the definition of the root name servers. The second one defines# localhost while the third defines the reverse lookup for
localhost.zone "." in {
type hint;
file "root.hint";};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "angkor.biz." in {
type master;
file "master/angkor.biz.zone";
};
zone "65.168.192.in-addr.arpa" in {
type master;
file "master/65.168.192.zone";
};
-And create for Forward Lookup zone angkor.biz.zone in
/var/lib/named/master
$TTL 172800
@ IN SOA sisophon.angkor.biz. Omeka.sisophon.angkor.biz. (
200803022; serial number
1D ; Refresh
2H ; Retry
1W ; Expire
3H ); Minimum
@ IN NS sisophon.angkor.biz.
sisophon IN A 192.168.65.1
Omeka IN A 192.168.65.46
Student IN A 192.168.65.22
Mami IN A 192.168.65.128
www IN CNAME Omeka
-And after create Reverse Lookup Zone 65.168.192.zone in /var/lib/named/master
$TTL 172800

@ IN SOA sisophon.angkor.biz. Omeka.sisophon.angkor.biz. (
20080322 ; Serail Number
1D ; Refresh
2H ; Rretry
1W ; Expire
3H) ; Minimum
65.168.192.in-addr.arpa. IN NS Omeka.sisophon.angkor.biz.
46 IN PTR Omeka.sisophon.angkor.biz.
At the end restart our dns by command
Omeka#rcnamed restart

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More