Operating System - HP-UX
1832928 Members
2711 Online
110048 Solutions
New Discussion

Re: Enable qualify my own domain name( hostname) use short name

 
j773303
Super Advisor

Enable qualify my own domain name( hostname) use short name

As titile, the error message will show
in terminal? Does anyone know what happend
on the machine? Thanks.
Hero
9 REPLIES 9
Clemens van Everdingen
Honored Contributor

Re: Enable qualify my own domain name( hostname) use short name

Hi,

I guess you need to enter your fully qualified domain name (FQDN) in the /etc/hosts file.

100.100.333.444 server.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Ravi_8
Honored Contributor

Re: Enable qualify my own domain name( hostname) use short name

Jean-Louis Phelix
Honored Contributor

Re: Enable qualify my own domain name( hostname) use short name

Hi,

That's because sendmail cannot determine your domaine name :

- stop sendmail (/sbin/init.d/sendmail stop)
- edit /etc/mail/sendmail.cf and look for #Dj$w.Foo.COM line. change it to :
D$jw.
The trailing '.' is important !
- add an alias in you /etc/host file with your hostanme and a trailing '.' ie :
w.x.y.z host host.
- restart sendmail (/sbin/init.d/sendmail start)

Regards.
It works for me (© Bill McNAMARA ...)
Michael Tully
Honored Contributor

Re: Enable qualify my own domain name( hostname) use short name

You can get this problem from within sendmail when the 'Dj' macro has not been defined or defined correctly.

Dj$w.

Check you /etc/resolv.conf file and /etc/nsswitch file to make sure they are resolved correctly.


Anyone for a Mutiny ?
Jean-Louis Phelix
Honored Contributor

Re: Enable qualify my own domain name( hostname) use short name

Hi,

Sorry but my recommandations are only if you don't have a domain name of course :^) ...

Regards.
It works for me (© Bill McNAMARA ...)
Ravi_8
Honored Contributor

Re: Enable qualify my own domain name( hostname) use short name

Hi,

if this message is from sendmail, then

edit the /etc/mail/sendmail.cf file and edit the line Dj$w line by adding a "." at the end of it.

also edit the /etc/hosts file add the name of the machine at the end of the entry. i.e,


never give up
Niraj Kumar Verma
Trusted Contributor

Re: Enable qualify my own domain name( hostname) use short name

Hi,

I agree with Jean !!!

if you don't need sendmail on your
server

edit the file

/etc/rc.config.d/mailservs

export SENDMAIL_SERVER=0

Regards
-Niraj
Niraj.Verma@philips.com
T G Manikandan
Honored Contributor

Re: Enable qualify my own domain name( hostname) use short name

Modify the /etc/mail/sendmail.cw which needs a list of all the names by which this host will be known.

YOu can make entry in the file like


.domainname
Then re-start sendmail to
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

check those messages dont appear again.

Thanks
Jochen Heuer
Respected Contributor

Re: Enable qualify my own domain name( hostname) use short name

Hi,

if you have access to the knowledge trees have a look at

http://europe.itrc.hp.com/service/iv/node.do?node=prod%2FWW_Start%2FN1%7C20%7C5%7C3%7C2%7C13

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?