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
Message-Id: 87psm9csiz.fsf@newsguy.com
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)
but
  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
  HOSTNAME="chub"

# 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.
  OVERRIDE=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).
  # 
  DNSDOMAIN="local.net0"
  
  # This only set what /bin/hostname returns.  If you need to setup NIS, meaning
  # what /bin/domainname returns, please see:
  #
  #   http://www.linux-nis.org/nis-howto/HOWTO/
  # 
  # NISDOMAIN=

# cat /etc/hosts

  127.0.0.1	localhost      chub
  ## ============================
  192.168.0.4     chub.local.net0      chub     # gentoo
  #===========================================================
  192.168.0.3     mobile2.local.net0   mobile2  # winxp (home)
   [...]

domain local.net0
search local.net0
nameserver 192.168.0.20


-- 
gentoo-user@g.o mailing list