General discussion
-
Topic
-
corret my DNS configure in linux
Lockedhi every body, hope you are all ok , i need tu seting up a dns server in mandriva, my domaine zone is cukm.dz, the hostname is serdns, and the IP is 192.168.0.1….. so i change the folloing files “named.conf, named.local, cukm.dz, cukm.dz.rev, reseolv.conf….” but my dns server don’t work ?!! i dunno why !!?? so i put what i write in the file here and correct me
first ” /etc/named.conf “;
// generated by named-bootconf.pl// secret must be the same as in /etc/rndc.conf
include “/etc/rndc.conf”;controls {
inet 127.0.0.1 allow { any; } keys { “key”; };
};options {
pid-file “/var/run/named/named.pid”;
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 53forwarders {
208.67.222.222;
208.67.220.220;
};
};//
// a caching only nameserver config
//
zone “.” {
type hint;
file “named.ca”;
};zone “0.0.127.in-addr.arpa” {
type master;
file “named.local”;
};zone “cukm.dz” {
notify no;
type master;
file “cukm.dz”;
};zone “0.168.192.in-addr.arpa” {
notify no;
type master;
file “cukm.dz.rev”;
};second: named.local
$TTL 1d
@ IN SOA serdns.cukm.dz. root.cukm.dz. (
2009052202 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS serdns.1 IN PTR localhost.
third: “cukm.dz”
$TTL 1d
@ IN SOA server1.cukm.dz. root.cukm.dz. (
2009052202 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; MinimumIN NS serdns.
;nous indiquant maitenant les adress des hote
localhost IN A 127.0.0.1
serdns IN A 192.168.0.14th: cukm.dz.rev
$TTL 1d
@ IN SOA serdns.cukm.dz. root.cukm.dz. (
2009052202 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS serdns.1 IN PTR serdns.cukm.dz.
waiting for your unswers thnx