Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FQDN problems [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
-Craig-
Guru
Guru


Joined: 03 Jun 2004
Posts: 333

PostPosted: Sun Feb 10, 2008 9:15 pm    Post subject: FQDN problems [SOLVED] Reply with quote

I already read http://gentoo-wiki.com/TIP_Setup_Your_FQDN but it just does not work for me.
I just cannot set the dommainname correctly. :(

/etc/conf.d/net:
Code:
config_eth0=("192.168.0.6");
routes_eth0=("default via 192.168.0.1");
dns_domain="dd"
dns_servers_eth0="192.168.0.1"


/etc/hosts:
Code:
127.0.0.1 localhost
127.0.0.1 cell.dd cell
192.168.0.6 cell.dd cell


/etc/conf.d/hostname:
Code:
HOSTNAME="cell"


Code:
cell ~ # hostname
cell
cell ~ # hostname -f
cell.dd
cell ~ # domainname
(none)


And on the login screen, I get:
Code:
This is cell.unknown_domain (Linux i686...)

emerge --info:
Code:
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r1 i686)
=================================================================
System uname: 2.6.24-gentoo-r1 i686 Pentium III (Coppermine)
Timestamp of tree: Sun, 10 Feb 2008 21:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://192.168.0.2:66/ http://gentoo.intergenia.de/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Last edited by -Craig- on Fri Feb 22, 2008 6:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Thu Feb 14, 2008 8:00 am    Post subject: Reply with quote

You don't have a problem with your domain... but your method of checking domain is not correct.
Use hostname -d or dnsdomainname to look at DNS domain, not domainname (that one shows NIS domain, which hardly anybody uses anymore).
Back to top
View user's profile Send private message
sedorox
Apprentice
Apprentice


Joined: 13 Feb 2004
Posts: 207

PostPosted: Fri Feb 15, 2008 4:35 am    Post subject: Re: FQDN problems Reply with quote

-Craig- wrote:

/etc/hosts:
Code:
127.0.0.1 localhost
127.0.0.1 cell.dd cell
192.168.0.6 cell.dd cell



I don't know if it's your problem, but usually you don't have two of the same IP (127.0.0.1), and I would also try removing your actual hostnames off of the loopback IP. Here is my hosts file, and my fqdn works fine (I had to fix it for sending email, yay)
Code:

# IPv4 and IPv6 localhost aliases
127.0.0.1   localhost statse.webtrendslive.com www.google-analytics.com
::1      localhost
10.0.3.3   Nereus.my.domain.name.com Nereus

Code:

brandon@Nereus ~ $ hostname -d
my.domain.name.com
brandon@Nereus ~ $ hostname   
Nereus


And yes, I run both IPv4 and IPv6
_________________
Home Desktop: Ryzen 3900X 3.8ghz | 32G Ram | 2x 1TB NVMe
Previous 7 Year Build: Intel i5-2400 3.1ghz | 16G Ram | 1x 60G SSD, 1x 1TB HDD
Back to top
View user's profile Send private message
-Craig-
Guru
Guru


Joined: 03 Jun 2004
Posts: 333

PostPosted: Fri Feb 22, 2008 6:31 pm    Post subject: Reply with quote

Deleting the duplicate line with 127.0.0.1 fixed it!
Thanks to you! :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum