1830238 Members
3368 Online
109999 Solutions
New Discussion

message error

 
Bachelier
Occasional Contributor

message error

I change the IP address of my HP UX 10.20.
Now there is a message which appears at screen:
Unable to qualify my own domain name. Using short name. What is the signification of this message and how can I do to remove it.
regards
Nicolas Bachelier
7 REPLIES 7
John Palmer
Honored Contributor

Re: message error

Hi,

The message is from sendmail. It's complaining because it can no longer work out what the server's fully qualified name is.

If you haven't got sendmail specifiacally configured for routing mail then the easiest solution is to add an alias to your hostname of 'hostname.' in /etc/hosts.

For example:-

xx.xx.xx.xx yourhostname yourhostname.

Regards,
John
CHRIS_ANORUO
Honored Contributor

Re: message error

Hi Bachelier,

vi /etc/hosts and modify the server ip address alias to read:
123.0.0.123 hp.
Just put a .(dot) in front of the nodename.
stop and start sendmail(/sbin/init.d/sendmail stop/start)
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Darrel Louis
Honored Contributor

Re: message error

Also check if you don't have duplicate entries in your /etc/hosts file.
Search for the given ip-address.
If you're using DNS, check if the DNS Database is oke.

nslookup
nslookup
Check in the /etc/mail/sendmail.cw file:
localhosts
hostname
hostname.
Dan Hetzel
Honored Contributor

Re: message error

Hi Nicolas,

As Chris is a real clever guy, I'm sure he was meaning "a dot at the end of your hostname" and not at the front.
;-)

The reason is that, if you're not using DNS, and the first entry in /etc/hosts (your official hostname) is not fully qualified, sendmail will have difficulty resolving your domain name. You either add the . as prescribed above, or edit the /etc/mail/sendmail.cf. In both cases, you need to restart sendmail.

;-)

Best regards,

Dan

PS: (in French, just for fun) Le nom de domaine doit Otre complFtement dTfini, donc il faut ajouter un point (.) a la fin du nom de ton systFme dans le fichier /etc/hosts. RedTmarre sendmail aprFs la modification.

Salutations
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Dan Hetzel
Honored Contributor

Re: message error

Well, it looks like this forum doesn't like accented characters... Should I report this as a bug?

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Herve BRANGIER
Respected Contributor

Re: message error

Nicolas,

Do you when this message appears ?

I know a similar on when sendmail is unable
to find you domain name. You can also verify
if this message appears at boot time during
sendmail starting (or in /var/adm/rc.log after
starting).
Maybe it's a problem in /etc/hosts (to qualify
a domain name you need to be able to resolve
a request like : hostname.domain_name)

Herve

Steffi Jones_1
Esteemed Contributor

Re: message error

Hello,

here are a few steps you can look into:

1) if you use DNS, check the syntax of the /etc/resolv.conf file and include the line:

domain

2) if you use /etc/hosts checkt he syntax as described above

3) Set up the Dj$w macro in /etc/mail/sendmail.cf, change it from:
#Dj$w.Foo.com to read:

Dj$w.

4) Add . to the file /etc/mail/sendmail.cw:

5) restart sendmail

Steffi Jones