Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting domainname doesn't seem to work [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
01mf02
Veteran
Veteran


Joined: 21 Nov 2004
Posts: 1070
Location: Innsbruck, Austria

PostPosted: Sat Apr 29, 2006 11:08 am    Post subject: Setting domainname doesn't seem to work [SOLVED] Reply with quote

When I set DNSDOMAIN in /etc/conf.d/domainname to some value, the command "domainname" said that no domainname was specified. Now I've set NISDOMAIN to some value, and it was displayed by "domainname".

Problem is, that when I want to login to a virtual terminal, it shows following message: "This is tux.(none)"
As if it didn't accept my domain name.



This is my /etc/conf.d/domainname:
Code:

# /etc/conf.d/domainname

# When setting up resolv.conf, what should take precedence?
#  0 = let dhcp/whatever override DNSDOMAIN
#  1 = override dhcp/whatever with DNSDOMAIN

OVERRIDE=1

# To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf
# (domain entry in /etc/resolv.conf and FQDN in /etc/hosts).
#
# DNSDOMAIN merely sets the domain entry in /etc/resolv.conf, see
# the resolv.conf(5) manpage for more info.
 
DNSDOMAIN="homenetwork"

# For information on setting up NIS, please see:
#   http://www.linux-nis.org/nis-howto/HOWTO/
 
NISDOMAIN="homenetwork"



Any help?


Last edited by 01mf02 on Sat Apr 29, 2006 1:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Sat Apr 29, 2006 12:00 pm    Post subject: Re: Setting domainname doesn't seem to work Reply with quote

01mf02 wrote:
This is my /etc/conf.d/domainname:
Code:
# To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf
# (domain entry in /etc/resolv.conf and FQDN in /etc/hosts).
FYI /etc/{conf,init}.d/domainname have been removed in the latest baselayout. The comment in /etc/conf.d/domainname is still valid though.
Check this thread https://forums.gentoo.org/viewtopic-t-458112-highlight-.html

Hth
Back to top
View user's profile Send private message
01mf02
Veteran
Veteran


Joined: 21 Nov 2004
Posts: 1070
Location: Innsbruck, Austria

PostPosted: Sat Apr 29, 2006 1:10 pm    Post subject: Reply with quote

Thanks, that solved it!


For everybody who is curious, my line in /etc/hosts:
Code:
127.0.0.1       tux.homenetwork tux localhost
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Sat Apr 29, 2006 1:38 pm    Post subject: Reply with quote

Moved from Networking & Security to Duplicate Threads.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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