Operating System - HP-UX
1833696 Members
3394 Online
110062 Solutions
New Discussion

getting message "unable to qualify my own domain name"

 
SOLVED
Go to solution
Fernando Acevedo
Frequent Advisor

getting message "unable to qualify my own domain name"

I am getting the next message every 10 minutes aproximatelly in a root sesion:
Jan 19 14:18:54 k210 sendmail[29873]: unable to qualify my own domain name (k210) -- using short name

Everything looks to work fine but I want to fix the problem in order to avoid that message.
can anybody helpme

thanks!.
7 REPLIES 7
Mark Greene_1
Honored Contributor
Solution

Re: getting message "unable to qualify my own domain name"

Check the following:

- the CM setting in the sendmail.cf file containing the correct domain name. This mail actually be point to the file sendmail.cw, which contains the list of domains

- as root, run "mailq -d -v" to see what sendmail is now using for a domain name

- check your resolve.conf file for the correct name resolution order for your location and config syntax

- check your /etc/host file for correct spellings of your domain

mark
the future will be a lot like now, only later
Hoefnix
Honored Contributor

Re: getting message "unable to qualify my own domain name"

It will be fixed by adding your correct hostname and FQname in /etc/hosts

1.1.1.1 hostname hostname.domain.com


Regards,

Peter
Steven E. Protter
Exalted Contributor

Re: getting message "unable to qualify my own domain name"

DNS does not actually answer requests that don't include the network name juf.net in our case

dig servername

provides no answer

dig servername.juf.net

does

You can handle short names with /etc/hosts files

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff Schussele
Honored Contributor

Re: getting message "unable to qualify my own domain name"

Hi Fernando,

Make sure you have short & FQDN for this host in it's own /etc/hosts file - like:

111.222.111.222 hostname hostname.company.com

As a rule you want the shortname first & the FQDN as the alias

Then make sure the /etc/nsswitch.conf file uses files before DNS.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Fernando Acevedo
Frequent Advisor

Re: getting message "unable to qualify my own domain name"

The name of the server it is in my etc/hosts file, like

111.222.111.222 k210 k210

the "mailq -d -v" command reports that the mail is using the right server name.
Fernando Acevedo
Frequent Advisor

Re: getting message "unable to qualify my own domain name"

CASE RESOLVED!.

My domain name was only one word like "k210", I changed to "k210.company.com" and it works!. I haven't received the message any more.

thanks to all, I already submit the point.
Sridhar Bhaskarla
Honored Contributor

Re: getting message "unable to qualify my own domain name"

Hi,

Look at the following excerpt from sendmail.cf

//
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 #
#
//

If you have a domain your /etc/hosts will appear like

111.222.111.222 k210 k210.yourdomain.com

If you don't have a domain, then put a dot "." after the second name like this.

111.222.111.222 k210 k210.

Restart sendmail using /sbin/init.d/sendmail script.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try