找回密码
 注册
查看: 448|回复: 6

dns的困惑

[复制链接]
发表于 2003-5-3 22:15:55 | 显示全部楼层 |阅读模式
我想让我的squirrelmail能正常运着http://xxx.3322.org/mail/squirrelmail,便配制dns,请各位大侠帮看看哪些出错,哪些是多余的,不胜感激,

named.conf
我的网站的域名是xxx.3322.org,网关比如是202.111.20.3,ip比如是202.111.77.177
是不是应该这么设置
zone "xxx.3322.org" {
type master;
file "named.host";
};

zone "77.111.202.in-addr.arpa" {
type master;
file "name.202.111.77";
};

配制
host.conf如下
order hosts,bind
multi off
配制
/etc/resolv.conf如下
nameserver 202.111.20.3
search abcxyz.3322.org
domain abcxyz.3322.org
然后配制
named.host
$TTL 86400
@ IN SOA xxx.3322.org. root.xxx.3322.org. (
2002042302; serial
28800; refresh
14400; retry
3600000; expire
86400; minimu
)
IN NS xxx.3322.org.
配制name.202.111.77
TTL 43200
@ IN SOA xxx.3322.org. root.xxx.3322.org. (
2002042302; serial
28800; refresh
14400; retry
3600000; expire
86400; minimu
)
IN NS xxx.3322.org.
 楼主| 发表于 2003-5-3 22:26:33 | 显示全部楼层
大家帮帮小弟吧,我发邮件总有这样的错误 (reason: 553 5.5.4 <[email protected]>... Real domain name required for
sender address)
回复

使用道具 举报

发表于 2003-5-4 17:20:48 | 显示全部楼层
检查一下你的 /etc/hosts 文件内容看看。
回复

使用道具 举报

 楼主| 发表于 2003-5-9 03:56:25 | 显示全部楼层
我已经把把正向和反向解析配制好了,用nslookup能看到
202.111.77.177
ns.xxx.3322.org了
/etc/hosts是
202.111.77.177        hudfs        localhost.localdomain        localhost
但还是

553 5.5.4 <[email protected]>... Real domain name required for sender address
root... Using cached ESMTP connection to [127.0.0.1] via relay.


而且
用echo test | /usr/sbin/sendmail -v [email protected]
[email protected]... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.12.9/8.12.9; Fri, 9 May 2003 03:47:00 +0800
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost [127.0.0.1] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI LOGIN PLAIN
250-DELIVERBY
250 HELP
>>> MAIL From:<[email protected]> SIZE=5 [email protected]
553 5.5.4 <[email protected]>... Real domain name required for sender address
root... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<> SIZE=1029
250 2.1.0 <>... Sender ok
>>> RCPT To:<[email protected]>
>>> DATA
250 2.1.5 <[email protected]>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 h48Jl0Te004864 Message accepted for delivery
root... Sent (h48Jl0Te004864 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection
You have new mail in /var/spool/mail/root
回复

使用道具 举报

 楼主| 发表于 2003-5-9 04:58:17 | 显示全部楼层
一气之下,在系统设置-网络里把主机名字localhost.localdomain改成ns.xxx.3322.org
终于sender  okl了,不知道其他地方是否换汤不换药
回复

使用道具 举报

发表于 2003-5-9 08:39:21 | 显示全部楼层

我的dns,无奈的很!情帮我一把

我也有dns的问题
我的域名未注册,主机名为foraec.fora,域名为fora. 文件/etc/reserve.conf设置为为search  fora , name server为服务器内网卡地址192.168.0.1,然后设置named.conf和/var/named下的文件,这样可以吗?
回复

使用道具 举报

 楼主| 发表于 2003-5-9 19:42:03 | 显示全部楼层
我不清楚,我的squirrelmnail用的是3322.org的域名,首先把sendmail配制好,配制好/etc/hosts
/etc/named  /var/named下的文件  就可以收发信件了,
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-3-4 19:59 , Processed in 0.044497 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表