/etc/host.conf
--------------------------------------------------------
order hosts,bind
multi off
--------------------------------------------------------
/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; };
.con};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "work24" IN{
type master;
file "work24.db"
};
zone "0.168.192. in-addr.arpa" IN{
type master;
file "db.192.168.0.124";
};
include "/etc/rndc.key";
----------------------------------------------------------
/var/named/work24.db
-----------------------------------------------------------
$TTL 86400
@ IN SOA ns.work24. root.work24. (
2002103000 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ); Mininum
IN NS ns.work24.
ns A 172.168.0.124
www A 192.168.0.124
mail A 192.168.0.124
MX 10 mail.work24.
-------------------------------------------------------------
/var/named/db.192.168.0.124
-------------------------------------------------------------
$TTL 86400
@ IN SOA ns.work24. root.work24.(
2002103000 ; Serial
28800 ; Retry
14400 ; Retry
3600000 ; Expire
86400 ); Minimum
IN NS ns.work24.
1 IN PTR ns.work24.
2 IN PTR www.work24.
3 IN PTR mail.work24.
------------------------------------------------------------
ok,let me start name
#/etc/rc.d/init.d/named start
Starting named: [FAILED]