LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2005, 07:02 PM   #1
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
domain name issues in gentoo


I did a search and found several different threads but none of the solutions helped, or I did them incorrectly. perhapse the problem is that I do not understand where I am going wrong.

anyway when I start my system I get "This is Abydos.(none)" when I first setup the system it had "Abydos.unknown domain" but somewhere along the lines of following the other threads I managed to get to this, weather it is an improvement or a backstep I am not sure.

Note: The system name is Abydos, and it is on a domain registered to me: open-exodus.net

here is my /etc/conf.d/domainname file:
Code:
# /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="open-exodus.net"

# 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=""
/etc/conf.d/hostname
Code:
# /etc/conf.d/hostname

# Set to the hostname of this machine
HOSTNAME="Abydos"
/etc/host.conf
Code:
# /etc/host.conf:
# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/2.3.4/host.conf,v 1.2 2004/11/24 05:31:58 vapier Exp $

# The  file /etc/host.conf contains configuration information specific to
# the resolver library.  It should contain one configuration keyword  per
# line,  followed by appropriate configuration information.  The keywords
# recognized are order, trim, mdns, multi, nospoof, spoof, and reorder.



# This keyword specifies how host lookups are to be performed. It
# should be followed by one or more lookup methods, separated by
# commas.  Valid methods are bind, hosts, and nis.
#
order hosts,bind


# Valid values are on and off. If set to on, the resolv+ library treats
# the .local top level domain as link-local domain and sends multicast
# DNS requests to the multicast address 224.0.0.251 port 5353 instead
# of normal DNS requests. If you already use the .local domain in your
# nameserver configuration you will have to switch this option off.
#
mdns off


# Valid  values are on and off.  If set to on, the resolv+ library
# will return all valid addresses for a host that appears  in  the
# /etc/hosts  file,  instead  of  only  the first.  This is off by
# default, as it may cause a substantial performance loss at sites
# with large hosts files.
#
multi on
/etc/hosts
Code:
# /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: /var/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 2003/08/04 20:12:25 azarah Exp $
#

# *****I originally just had 127.0.0.1 and copied it for each of the systems ip's (the net one is static) but one thread suggested this way*****:
127.0.0.1	localhost	Abydos	Abydos.open-exodus.net	abydos.open-exodus.net
192.168.0.2	localhost	Abydos	Abydos.open-exodus.net	abydos.open-exodus.net
69.104.32.163	localhost	Abydos	Abydos.open-exodus.net	abydos.open-exodus.net
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
system:
athlon64 3500, 1gb ram, gentoo 2005.1 updated daily amd64 w/ 32bit chroot

probably not important but:
emerge info:
Code:
Abydos-64 exodist # emerge info
Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6                      
.13-gentoo-r5-amd64 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r5-amd64 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share                      
/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/shar                      
e/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/                      
distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa aspell bitmap-fonts cups esd flac fluxbox ghostscript gimp-pri                      
nt gtk gtk2 imlib java jpeg lm_sensors mad mp3 mpg oggvorbis openal opengl pcre                       
pdf perl png python sndfile spell ssl tiff true-type truetype truetype-fonts typ                      
e1-fonts unicode vorbis xinerama xmms xprint xv xvmc zlib userland_GNU kernel_li                      
nux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
rc-update -s:
Code:
Abydos-64 exodist # rc-update -s
           alsasound |                               
            bootmisc | boot                          
             bttrack |                               
             checkfs | boot                          
           checkroot | boot                          
               clock | boot                          
         consolefont | boot                          
         crypto-loop |                               
               cupsd |                               
              custom |      default                  
          domainname | boot                          
              esound |                               
                famd |                               
            gkrellmd |                               
             hddtemp |                               
              hdparm |                               
            hostname | boot                          
             keymaps | boot                          
          lm_sensors |      default                  
               local |      default nonetwork        
          localmount | boot                          
             modules | boot                          
            net.eth0 |                               
              net.lo | boot                          
            netmount |      default                  
                 nfs |                               
            nfsmount |      default                  
                nscd |                               
          ntp-client |      default                  
                ntpd |                               
             numlock |      default                  
             portmap |                               
             proftpd |                               
             pwcheck |                               
           rmnologin | boot                          
              rsyncd |                               
           saslauthd |                               
                sshd |      default                  
           syslog-ng |      default                  
             urandom | boot                          
          vixie-cron |      default                  
                 xdm |                               
              xprint |
*side note: some woudl ask why I have some of these installed but not used, this is a fresh install and not all is configured yet, I want to get my domain issue worked out first.
 
Old 11-16-2005, 07:31 PM   #2
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Original Poster
Rep: Reputation: 47
problem was the order in the /etc/hosts file. fixed.
 
Old 11-17-2005, 03:03 AM   #3
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
That's down in the Gentoo wiki somewhere as it caught me after a first install. Never thought of sticking hostname.domainname into the /etc/hosts file
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SBS2003 domain, Fedora C3 client, kerberos authentication issues Spida Linux - Networking 0 11-23-2005 10:07 PM
Gentoo domain name 46&2 Linux - Networking 6 09-12-2005 12:03 AM
gentoo file manager install issues (not Gentoo) windeath Fedora 2 03-01-2004 07:17 PM
Gentoo issues zigmund555 Linux - Distributions 2 02-21-2004 09:05 AM
Gentoo issues rommel Linux - Distributions 0 04-19-2002 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration