- 论坛徽章:
- 0
|
我现在要搞个邮件服务器,看了好多sendmail的配置,好像得先搞成dns服务器才行~于是找文章搞dns服务器,看了这里的好多帖子,安装什么的都没有问题了,运行/usr/local/sbin/named -gc /usr/local/etc/named.conf & 后,有了错误提示,不能work,似乎是我写的zone文件有问题,错误提示如下:
Oct 18 16:55:05.840 using 1 CPU
Oct 18 16:55:05.882 loading configuration from '/usr/local/etc/named.conf'
Oct 18 16:55:06.013 no IPv6 interfaces found
Oct 18 16:55:06.016 listening on IPv4 interface lo, 127.0.0.1#53
Oct 18 16:55:06.034 listening on IPv4 interface eth0, 192.168.0.1#53
Oct 18 16:55:06.040 listening on IPv4 interface ppp0, 61.48.25.26#53
Oct 18 16:55:06.083 command channel listening on 127.0.0.1#953
Oct 18 16:55:06.085 ignoring config file logging statement due to -g option
Oct 18 16:55:06.105 dns_rdata_fromtext: lserver.com.zone:11: near 'A': extra input text
Oct 18 16:55:06.112 zone lserver.com/IN: loading master file lserver.com.zone: extra input text
Oct 18 16:55:06.122 dns_master_load: localhost.zone:3: no current owner name
Oct 18 16:55:06.127 zone localhost/IN: loading master file localhost.zone: no ownerOct 18 16:55:06.129 running
named.conf如下:options {
directory "/var/namedb";
pid-file "named.pid";
};
zone "."{
type hint;
file "named.root";
};
//zone "0.0.127.in-addr.arpa" {
// type master;
// file "localhost.rev";
// notify no;
//};
zone "localhost" IN{
type master;
file "localhost.zone";
notify no;
};
zone "lserver.com" IN {
type master;
file "lserver.com.zone";
notify no;
};
key "rndc-key" {
algorithm hmac-md5;
secret "yDDgYXKLKsoRRiaR9FGqcw==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
lserver.com.zone如下:
$TTL 86400
@ IN SOA ns.lserver.com. root.lserver.com. (
20001001; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.lserver.com.
IN MX 10 ns.lserver.com.
IN A 192.168.0.1
ns IN A 192.168.0.1
www IN CNAME ns
mail IN CNAME ns
localhost.zone如下:
$TTL 86400
$ORIGIN localhost.
@ IN SOA @ root (
20031001; serial (d. adams)
28800; refresh
14400; retry
3600000 ; expiry
86400 ) ; minimu
IN NS @
IN A 127.0.0.1
resolv.conf如下:
search lserver.com
nameserver 192.168.0.1
nameserver 202.96.128.68
请老大们看看是啥问题,礼拜一就要用了,搞不定老板要××~~,先谢过了。
因为没想到啥地方用反向解析,所以就没做,不知道是否可以。 |
|