Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to qualify my own domain name

SOLVED
Go to solution
robert_15
Occasional Contributor

unable to qualify my own domain name

Hi

The following message flashes on my server screen every 10 minutes:

Feb 20 04:30:01 servername sendmail[2325]: unable to qualify my own domain name (servername) -- using short name

Does anyone know how to disable/resolve it (other than switching off the screen) or whether there are any repercussions to not being able to qualify the domain name?

appreciate any help :)

robert
6 REPLIES
Neale Machin
Advisor
Solution

Re: unable to qualify my own domain name

We've come across this a few times
In your host file put another alias for the host followed by a full stop

ie

xx.xx.xx.xx hostname hostname.
Just cos I look after Unix Boxes doesnt mean I wear sandals
Steven Sim Kok Leong
Honored Contributor

Re: unable to qualify my own domain name

Hi,

Perform an nslookup servername.

Check that
1) Entries for the DNS server is present in /etc/resolv.conf and your servername can be resolved by the DNS.
2) /etc/hosts contain your servername entry.
3) /etc/nsswitch.conf contains the correct sequence for hosts: line eg. hosts: files [NOTFOUND=continue] dns.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Email: steven@beepz.com. Homepage: https://www.beepz.com
Philip Chan_1
Respected Contributor

Re: unable to qualify my own domain name

Hi,

That warning should be coming out of the sendmail program startup. To fix that try the following steps,

1. edit /etc/mail/sendmail.cf, locate the line containing "Dj$w.hp.com", change that to "Dj$w." then uncomment that line.
2. edit /etc/hosts, locate your hostname entry, at the line end append " ."
3. now restart sendmail by "/sbin/init.d/sendmail stop" follow by "/sbin/init.d/sendmail start", if you don't see the warning message then the problem has been fixed.

Philip Chan_1
Respected Contributor

Re: unable to qualify my own domain name

Robert,

Just saw under the comment part of /etc/mail/sendmail.cf file some description on warnings about un-qualified domain name. Take a look at that.

Cheers,
Philip
Marcel Boon
Trusted Contributor

Re: unable to qualify my own domain name

Hi Robert,

You use a shortname instead of a qualified name.

You need an alias for your shortname.
1) vi /etc/hosts
change the line:
your_ip_nummer your_hp your_hp.
(Don't forget the dot on the end)

2)vi /etc/mail/sendmail.cw
Add your_hp. to this file
It looks like:
localhost
your_hp
your_hp.

3) restart the sendmail deamon

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

I hope it helps

Marcel
See the man pages
Dave Kelly_1
Respected Contributor

Re: unable to qualify my own domain name

Please note that if you specify the DS macro (smart host) with a domain name, you need to set your Dj$w value to have the same domain name.