Gentoo Archives: gentoo-user

From: reader@×××××××.com
To: gentoo-user@l.g.o
Subject: [gentoo-user] What is misconfigured in hostnaming proceedure?
Date: Mon, 30 Jan 2006 21:39:15
I've apparently got something wrong with the hostnaming process that
is causing sendmail to balk.

  Jan 30 12:41:02 localhost sendmail[10391]: My unqualified host name
  (localhost) unknown; sleeping for retry
  Jan 30 12:41:20 localhost sendmail[10445]: My unqualified host name
  (localhost) unknown; sleeping for retry

Other evidence of a problem is that the hostname cmd returns:

  hostname chub (as expected)
  hostname --long localhost 
  (should return chub.local.net0 I think)

I've setup the normal files for this like this:

# cat /etc/conf.d/hostname
  # Set to the hostname of this machine

# cat /etc/conf.d/domainname
  # When setting up resolv.conf, what should take precedence?
  # If you wish to always override DHCP/whatever, set this to 1.
  # To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf
  # properly (domain entry in /etc/resolv.conf, and FQDN in /etc/hosts).
  # This only set what /bin/hostname returns.  If you need to setup NIS, meaning
  # what /bin/domainname returns, please see:

# cat /etc/hosts	localhost      chub
  ## ============================     chub.local.net0      chub     # gentoo
  #===========================================================     mobile2.local.net0   mobile2  # winxp (home)

domain local.net0
search local.net0

gentoo-user@g.o mailing list