Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[solved] This is (none) unknown_domain (Linux x86_64)

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
pstickar
Tux's lil' helper
Tux's lil' helper
Posts: 118
Joined: Sun Nov 26, 2006 11:22 am
Location: Germany

[solved] This is (none) unknown_domain (Linux x86_64)

  • Quote

Post by pstickar » Fri Feb 15, 2013 8:51 pm

Hi,

i'm not able to set the hostname. I can login and internet is reachable. During boot, syslog-ng gives the error message: "ERROR: syslog-ng needs (service(s): hostname".
If I type

Code: Select all

hostname laptop
I get a solution (there is a hostname at the next login), but I need to re-type that command after every reboot. I would prefer a more solid solution.

The context: this is an installation of Gentoo as a VirtualBox guest on windows, and

Code: Select all

#cat /etc/hosts
127.0.0.1 laptop.tenaris laptop localhost

#cat /etc/conf.d/hostname
hostname="laptop"

#cat /etc/conf.d/net
dns_domain_lo="tenaris"
config_eth0="dhcp"

#rc-update show 
...
dhcpcd | default
hostname | default
net.eth0 | default
net.lo | boot
syslog-ng | default
...
Thanks in avance!

Kind regards,
Last edited by pstickar on Sat Feb 16, 2013 5:10 pm, edited 1 time in total.
p.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Fri Feb 15, 2013 9:46 pm

I can't tell you when, i think going from baselayout1 to 2, but hostname is boot service for a long time.
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sat Feb 16, 2013 4:04 am

hostname should be in the boot runlevel
recommend deleting dns_domain_lo="tenaris" ; it causes an overwrite of resolv.conf.
Defund the FCC.
Top
666threesixes666
Veteran
Veteran
User avatar
Posts: 1248
Joined: Tue May 31, 2011 9:46 pm
Location: 42.68n 85.41w
Contact:
Contact 666threesixes666
Website

  • Quote

Post by 666threesixes666 » Sat Feb 16, 2013 4:24 am

mkultra@mksrv [ ~ ]$ cat /etc/conf.d/hostname
# Set to the hostname of this machine
hostname="mksrv"

yeah hostname is boot.....

mkultra@mksrv [ ~ ]$ sudo rc-update | grep hostname
hostname | boot

the 1st part of this response is because traditional linux systems command is hostname to set the hostname, and it is not controlled by a /etc/conf.d/hostname file.
http://www.funtoo.org/
Top
pstickar
Tux's lil' helper
Tux's lil' helper
Posts: 118
Joined: Sun Nov 26, 2006 11:22 am
Location: Germany

  • Quote

Post by pstickar » Sat Feb 16, 2013 1:31 pm

Hi!

Thank you for the suggestions and the comments.

First I removed the hostname service from the default runlevel, then re-added it to the boot runlevel:

Code: Select all

rc-update del hostname
rc-update add hostname boot
Besides, I commented out the line
dns_domain_lo="tenaris"
in /etc/conf.d/net.

After the reboot, still no luck.

#rc-update show | grep hostname
hostname | boot

And something very strange to me:

Code: Select all

# rc-status boot

Runlevel: boot
 hwclock                                                           [  started  ]
 sysctl                                                            [  started  ]
 modules                                                           [  started  ]
 fsck                                                              [  started  ]
 root                                                              [  started  ]
 mtab                                                              [  started  ]
 swap                                                              [  started  ]
 localmount                                                        [  started  ]
 tmpfiles.setup                                                    [  started  ]
 bootmisc                                                          [  started  ]
 net.lo                                                            [  started  ]
 procfs                                                            [  started  ]
 termencoding                                                      [  started  ]
 swapfiles                                                         [  started  ]
 urandom                                                           [  started  ]
 keymaps                                                           [  started  ]
It looks like I'm not getting the hostname service in the boot runlevel.

According to the installation guidelines, I shouldn't do anything. Just give "hostname laptop" and then move on to "emerge gentoo-sources". I'm now suspecting that I misstyped something somewhere, and I'm not able to realize where.

As before, any help will be very appreciated.

Kind regards
p.
p.
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sat Feb 16, 2013 2:35 pm

here:

Code: Select all

rc-status boot
does not show hostname, just as yours does not, --must be a "feature"--

Code: Select all

rc-update show boot
does show hostname

Code: Select all

/etc/init.d/hostname start
produces
* WARNING: hostname has already been started

Code: Select all

/etc/init.d/hostname restart
produces
* WARNING: you are stopping a boot service
* Setting hostname to fx8150 ...

Code: Select all

 cat /etc/init.d/hostname
produces
#!/sbin/runscript
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.

description="Sets the hostname of the machine."

depend() {
keyword -prefix -lxc
}

start()
{
hostname=${hostname-${HOSTNAME-localhost}}
ebegin "Setting hostname to $hostname"
hostname "$hostname"
eend $? "Failed to set the hostname"
}
suggesting you should either see an error message or Setting hostname to laptop on the screen
Defund the FCC.
Top
pstickar
Tux's lil' helper
Tux's lil' helper
Posts: 118
Joined: Sun Nov 26, 2006 11:22 am
Location: Germany

  • Quote

Post by pstickar » Sat Feb 16, 2013 2:56 pm

Donahue, your answer lead me to the solution. It seems to be that I misstakenly overwrote the file /etc/init.d/hostname (was identical to /etc/cond.d/hostname).
I just retyped it from your answer, rebooted, and now it works. Just hope gentoo does not preserve my modifications over upcoming upgrades.

Thank you very much for your help, people!

Kind regards,

PS. I should probably change the status of this question to "solved", but I do not realize how. I'll research some more...
p.
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sat Feb 16, 2013 4:22 pm

edit subject line of your original post
Defund the FCC.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy