I'm using Fedora core 2
One beautiful day, I want to configure DNS server .I did everything the same in books , but it didn't work !` ! !
(
I installed RedHat 8.0 and did the same , wow it worked ! ! ! I saved all files (etc/named.config , etc/host , var/named/192.168.3 , var/named/caocon.com) and installed Fedora core 2 .After that, I copied all that files into Fedora core 2! ! ! aha ahahah.a.a.a... It didn't work ! ! !
So could you help me to solve this problem ?
This is my DNS config
etc/named.conf
// generated by named-bootconf.pl
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
//
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; };
};
zone "caocon.com" IN {
type master;
file "caocon.com";
allow-update { none; };
};
zone "3.168.192.in-addr.arpa" IN {
type master;
file "192.168.3";
allow-update { none; };
};$TTL 86400
@ IN SOA ns.caocon.com. hostmaster.caocon.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
TXT "caocon.com, your DNS consultants"
NS ns ; Inet Address of name server
NS ns.friend.com.
MX 10 mail ; Primary Mail Exchanger
MX 20 mail.friend.bogus. ; Secondary Mail Exchanger
localhost A 127.0.0.1
gw A 192.168.3.1
TXT "The router"
ns A 192.168.3.1
MX 10 mail
MX 20 mail.friend.bogus.
www CNAME ns
donald A 192.168.3.2
MX 10 mail
MX 20 mail.friend.bogus.
TXT "DEK"
mail A 192.168.3.3
MX 10 mail
MX 20 mail.friend.bogus.
ftp A 192.168.3.4
MX 10 mail
MX 20 mail.friend.bogus.
include "/etc/rndc.key";
==================================
var/named/caocon.com
$TTL 86400
@ IN SOA ns.caocon.com. hostmaster.caocon.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
TXT "caocon.com, your DNS consultants"
NS ns ; Inet Address of name server
NS ns.friend.com.
MX 10 mail ; Primary Mail Exchanger
MX 20 mail.friend.bogus. ; Secondary Mail Exchanger
localhost A 127.0.0.1
gw A 192.168.3.1
TXT "The router"
ns A 192.168.3.1
MX 10 mail
MX 20 mail.friend.bogus.
www CNAME ns
donald A 192.168.3.2
MX 10 mail
MX 20 mail.friend.bogus.
TXT "DEK"
mail A 192.168.3.3
MX 10 mail
MX 20 mail.friend.bogus.
ftp A 192.168.3.4
MX 10 mail
MX 20 mail.friend.bogus.
================================================
var/named/192.168.3
$TTL 86400
@ IN SOA ns.caocon.com. hostmaster.caocon.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.caocon.com.
1 IN PTR gw.caocon.com.
2 IN PTR ns.caocon.com.
3 IN PTR donald.caocon.com.
4 IN PTR mail.caocon.com.
5 IN PTR ftp.caocon.com.
==================================================
etc/host
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.3.1 caocon.com.
================================================
etc/rndc.conf
key "rndckey" {
algorithm hmac-md5;
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
options {
default-server 192.168.3.1;
default-key "rndckey";
};
server 192.168.3.1 {
key "rndckey";
};
=======================================================
rndc.key
key "rndckey" {
algorithm hmac-md5;
secret "9hPhuIbBEFY2GyVO5QQZbznkjxXucHV1PSuY7er0MqDooXgSq8eclOdSu7F2";
};
=============================================================
Thanks for youe help !