当前位置: 技术问答>linux和unix
Redhat 9 DNS 问题与 SendMail 问题。
来源: 互联网 发布时间:2016-02-25
本文导语: 本人原来想在 Redhat 9的电脑上配一个 SendMail服务器。 1,配置的 /etc/named.conf 如下 ======这里 named.conf 开始========== // generated by named-bootconf.pl options { directory "/var/named"; /* * If there is a firewall between you and...
本人原来想在 Redhat 9的电脑上配一个 SendMail服务器。
1,配置的 /etc/named.conf 如下
======这里 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 "xhmail.com" IN {
type master;
file "xhmail.com.zone";
};
zone "10.168.192.in-addr.arpa" {
type master;
file "10.168.192.in-addr.arpa.zone";
};
include "/etc/rndc.key";
======这里 named.conf 结束=========
2,配置的 /var/10.168.192.in-addr.apra如下
======这里 10.168.192.in-addr.apra 开始=========
$ORIGIN .
$TTL 86400 ; 1 day
10.168.192.in-addr.apra IN SOA 10.168.192.in-addr.arpa. root.localhost.10.168.192.in-addr.arpa. (
2005071401; serial
28800 ; refresh (8 huors)
7200 ; retry (2 hours)
604800 ; expire (1 week)
86400 ; minimun (1 day)
)
NS dnsserver.xhmail.com.
MX 10 mail.xhmail.com.
PTR dnsserver.xhmail.
$ORIGIN 10.168.192.in-addr.arpa.
3 PTR hc079.xhmail.com.
251 PTR dns.xhmail.com.
======这里 10.168.192.in-addr.apra 结束=========
3,配置的 /var/xhmail.com如下
======这里 xhmail.com 开始=========
$ORIGIN .
$TTL 3600 ;
xhmail.com IN SOA xhmail.com. root.localhost. (
20051117 ; serial
21029 ; refresh (5 hours 50 minutes 29 seconds)
7200 ; retry (2 hours)
604800 ; expire (1 week)
86400 ; minimun (1 day)
)
NS xhmail.com.
A 192.168.10.251
$ORIGIN xhmail.com.
www A 192.168.10.251
mail A 192.168.10.251
dnsserver A 192.168.10.251
======这里 xhmail.com 结束=========
但是在windows客户端上 用nslookup 却出现如图
DNS.bmp
1,配置的 /etc/named.conf 如下
======这里 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 "xhmail.com" IN {
type master;
file "xhmail.com.zone";
};
zone "10.168.192.in-addr.arpa" {
type master;
file "10.168.192.in-addr.arpa.zone";
};
include "/etc/rndc.key";
======这里 named.conf 结束=========
2,配置的 /var/10.168.192.in-addr.apra如下
======这里 10.168.192.in-addr.apra 开始=========
$ORIGIN .
$TTL 86400 ; 1 day
10.168.192.in-addr.apra IN SOA 10.168.192.in-addr.arpa. root.localhost.10.168.192.in-addr.arpa. (
2005071401; serial
28800 ; refresh (8 huors)
7200 ; retry (2 hours)
604800 ; expire (1 week)
86400 ; minimun (1 day)
)
NS dnsserver.xhmail.com.
MX 10 mail.xhmail.com.
PTR dnsserver.xhmail.
$ORIGIN 10.168.192.in-addr.arpa.
3 PTR hc079.xhmail.com.
251 PTR dns.xhmail.com.
======这里 10.168.192.in-addr.apra 结束=========
3,配置的 /var/xhmail.com如下
======这里 xhmail.com 开始=========
$ORIGIN .
$TTL 3600 ;
xhmail.com IN SOA xhmail.com. root.localhost. (
20051117 ; serial
21029 ; refresh (5 hours 50 minutes 29 seconds)
7200 ; retry (2 hours)
604800 ; expire (1 week)
86400 ; minimun (1 day)
)
NS xhmail.com.
A 192.168.10.251
$ORIGIN xhmail.com.
www A 192.168.10.251
mail A 192.168.10.251
dnsserver A 192.168.10.251
======这里 xhmail.com 结束=========
但是在windows客户端上 用nslookup 却出现如图
DNS.bmp
|
不知,帮顶
|
顶..
|
顶一下