Anthony E Caudel wrote:
Phil Sexton wrote:
Anthony E Caudel wrote:
Mike wrote:
Anthony E. Caudel wrote:
As of baselayout-1.12.4, the domainname init script is no longer used
and the Gentoo Handbook no longer tells how to set the domainname.
domainname now returns "(none)"
/etc/conf.d/net.example talks about setting up dns_domain but if
this is
used, it overwrites /etc/resolv.conf.
So how is the domainname now set?
Tony
/etc/hosts ?
Well, perhaps. It is in my /etc/hosts. But domainname still returns
(none)
Tony
You should stop using /etc/hostname and use /etc/conf.d/hostname
I don't use /etc/hostname and I DO use /etc/conf.d/hostname. What has
this to do with the domainname? Are they both set there?
Tony
I thought domainname was set in /etc/hosts. I put the whole kaboodle in
it and it seems to work OK.
Here is my /etc/conf.d/hostname:
# Set to the hostname of this machine
HOSTNAME="uilleann.fancypiper.info"
And my /etc/hosts:
# /etc/hosts: This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
2003/08/04 20:12:25 azarah Exp $
#
127.0.0.1 localhost local.domain
192.168.0.1 dsl modem
192.168.0.2 gravity.twi-31o2.org gravity
192.168.0.3 bones.fancypiper.info bones
192.168.0.4 tinwhistle.fancypiper.info tinwhistle
192.168.0.5 uilleann.fancypiper.info uilleann
#192.168.0.6 Windows_XP_Pro.fancypiper.info windowsxppro
And resopnse to hostname command:
# uilleann / # hostname
uilleann.fancypiper.info
<shrug>
I'm no expert, but that was what I gleaned when I read the docs and the
emerge e-mails.
--
Phil Sexton
My Home Page: http://fancypiper.info/
Free tunes: ftp://fancypiper.info/
Naomi's Fancy: http://www.naomisfancy.net/
Our 2nd CD: http://www.cdbaby.com/naomisfancy/
--
gentoo-user@gentoo.org mailing list