免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234下一页
最近访问板块 发新帖
查看: 8182 | 回复: 33

每天还在报这些信息??? [复制链接]

论坛徽章:
0
发表于 2003-02-12 11:42 |显示全部楼层
每天console上或/var/adm/mail.log里仍报这种信息:
Feb 11 21:02:46 hpaps sendmail[10632]: My unqualified host name (hpaps) unknown;
sleeping for retry
Feb 11 21:02:46 hpaps sendmail[10632]: unable to qualify my own domain name (hpaps) -- using short name

本机主机名:hpaps(10.85.17.10)

我上次按照大哥们的提示也改了些东西:
1)/etc/hosts:
10.85.17.10     hpaps hpaps1
127.0.0.1       localhost       loopback
10.85.15.5      aps-hp
10.82.15.5      api-hp1
10.85.17.5      hpastp
2)#vi /etc/mail/sendmail.cf
、、、、、、、、、、
# #Dj$w.Foo.COM
Dj$w.hpaps
#/sbin/init.d/sendmail stop
#/sbin/init.d/sendmail start
、、、、、、、、、、
3)#vi /etc/nsswitch.conf
#hosts:         dns nis files
hosts:          files nis dns
services:       nis files
protocols:      nis files
networks:       nis files
rpc:            nis files
netgroup:       nis files
automount:      nis files


可反复试还是报这些信息在屏幕上,真不知道怎么回事??

论坛徽章:
0
发表于 2003-02-12 11:57 |显示全部楼层

每天还在报这些信息???

#mv /etc/resolf.conf /etc/resolv.conf.bak
重启系统,就不信!

论坛徽章:
0
发表于 2003-02-12 12:09 |显示全部楼层

每天还在报这些信息???

可是大哥,在/etc下就没有这个文件:resolf.conf ,怎么办???
如:
hpaps@/etc -# ll resolf.conf
resolf.conf not found
hpaps@/etc -#

论坛徽章:
0
发表于 2003-02-12 12:11 |显示全部楼层

每天还在报这些信息???

不好意思是:/etc/resolv.conf

论坛徽章:
0
发表于 2003-02-12 12:11 |显示全部楼层

每天还在报这些信息???

hpux不小心打错了,是/etc/resolv.conf

论坛徽章:
0
发表于 2003-02-12 12:13 |显示全部楼层

每天还在报这些信息???

resolv.conf

论坛徽章:
0
发表于 2003-02-12 12:16 |显示全部楼层

每天还在报这些信息???

可是也没有呀,如下:都没有,那怎么回事?要从那里COPY吗????
hpaps@/etc -# ll resolv.conf
resolv.conf not found
hpaps@/etc -#hpaps@/etc -# ll re*
lrwxr-xr-t   1 root       sys             16 Feb 26  2000 reboot >; /usr/sbin/re
boot
lr-xr-xr-t   1 root       sys             18 Feb 26  2000 repquota ->; /usr/sbin/
repquota
lrwxr-xr-t   1 root       sys             17 Feb 26  2000 restore ->; /usr/sbin/r
estore
hpaps@/etc -#

论坛徽章:
0
发表于 2003-02-12 12:28 |显示全部楼层

每天还在报这些信息???

由于你没有用到域名,所以/etc/mail/sendmail.cf中“Dj$w.hpaps”  这一行应该注释掉,否则系统sendmail时会把hpaps 作为域名加到主机名后组成完整的长名 hpaps.hpaps来访问,系统当然就会报“unable to qualify my own domain name (hpaps)” ,因为此时根据你的配置,hpaps还是你的域名,系统肯定找不到。

论坛徽章:
0
发表于 2003-02-12 13:07 |显示全部楼层

每天还在报这些信息???

[quote]原帖由 "albert"]由于你没有用到域名,所以/etc/mail/sendmail.cf中“Dj$w.hpaps”  这一行应该注释掉,否则系统sendmail时会把hpaps 作为域名加到主机名后组成完整的长名 hpaps.hpaps来访问,系统当然就会报“unable to qualify my o..........[/quote 发表:

Dj$w就是为了没有域名的时候,在Dj$w.后面加上自己的域名用的!
所以,若不用FQDN域名(一般用/etc/hosts)做名字解析的时候,要把这行的注释去掉!
=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-====-=-=-=-=-=-=-=
#  My official domain name or Fully Qualified Domain Name - FQDN (Dj):         #
#                                                                              #
#      This is required only if sendmail cannot automatically determine your   #
#      domain.  If you are not using DNS, and the official host name (ie,      #
#      the first entry in /etc/hosts following your IP address) is not a       #
#      fully-qualified host name, then sendmail will have difficulty resolving #
#      your domain name.  You MUST modify the $j macro by replacing .Foo.COM   #
#      with your actual domain name.  If you do not, you will see a warning    #
#      message in your syslog, that might even get echo'd to your console      #
#      when sendmail starts up.                                                #
#                                                                              #
#      For example, if you see this warning:                                   #
#                                                                              #
#      WARNING: local host name (sys1) is not qualified; fix $j in config file #
#                                                                              #
#      then you need to uncomment the Dj macro and add your domain.            #
#                                                                              #
#      Change the line:                                                        #
#      #Dj$w.Foo.COM                                                           #
#       to                                                                     #
#      Dj$w.hp.com                                                             #
#                                                                              #
#      where hp.com would be the name of your domain. Then that warning        #
#      message will go away.                                                   #

论坛徽章:
0
发表于 2003-02-12 13:15 |显示全部楼层

每天还在报这些信息???

是不是这样就会好了:但Dj$w没有了,会不会有问题???

#vi /etc/mail/sendmail.cf
、、、、、、、、
# #Dj$w.Foo.COM这还要不要??
#Dj$w.hpaps
#/sbin/init.d/sendmail stop
#/sbin/init.d/sendmail start
、、、、、、、、、、、
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP