View previous topic :: View next topic |
Author |
Message |
01mf02 Veteran
Joined: 21 Nov 2004 Posts: 1070 Location: Innsbruck, Austria
|
Posted: Sat Apr 29, 2006 11:08 am Post subject: Setting domainname doesn't seem to work [SOLVED] |
|
|
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 |
|
|
neysx Retired Dev
Joined: 27 Jan 2003 Posts: 795
|
Posted: Sat Apr 29, 2006 12:00 pm Post subject: Re: Setting domainname doesn't seem to work |
|
|
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 |
|
|
01mf02 Veteran
Joined: 21 Nov 2004 Posts: 1070 Location: Innsbruck, Austria
|
Posted: Sat Apr 29, 2006 1:10 pm Post subject: |
|
|
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 |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Sat Apr 29, 2006 1:38 pm Post subject: |
|
|
Moved from Networking & Security to Duplicate Threads. |
|
Back to top |
|
|
|