Find the answer to your Linux question:
Results 1 to 6 of 6
When starting the computer...when it's probing for hardware and everything I get two warnings: Code: /etc/hostname should be in /etc/conf.d/hostname *AND* /etc/dnsdomainname should be in /etc/conf.d/domainname the warnings go something ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    Odessa, FL
    Posts
    586

    /etc/hostname and /etc/dnsdomainname warnings


    When starting the computer...when it's probing for hardware and everything I get two warnings:
    Code:
    /etc/hostname should be in /etc/conf.d/hostname
    
    *AND*
    
    /etc/dnsdomainname should be in /etc/conf.d/domainname
    the warnings go something like that...i don't remember exactly. is this a security issue or something? how should i fix it? i'm kind of afraid of logging in as root and just moving the folder to where it wants it...not sure what the effect would be, though it might just fix this without any problems

    thanks in advance for any info/advice/suggestions on this

    it's not really bothering me, but if the folders should be moved to where it wants them, i might as well do it...just not 100% sure how i should (a safe way)

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    I was wondering this myself (but I'm too lazy to post :P). The following did NOT work:

    Code:
    mv /etc/hostname /etc/conf.d/hostname
    mv /etc/dnsdomainname /etc/conf.d/dnsdomainname
    So if anyone has any other ideas, I'd be grateful also.

  3. #3
    Linux User
    Join Date
    Nov 2003
    Location
    Brooklyn, NY
    Posts
    347
    Well you do not have to move it. Try linking the files.
    Code:
    # cd /etc/conf.d/
    #ln -s /etc/hostname hostname
    #ln -s /etc/dnsdomainname dnsdomainname
    See if that works.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    Odessa, FL
    Posts
    586
    Quote Originally Posted by Slip
    Well you do not have to move it. Try linking the files.
    Code:
    # cd /etc/conf.d/
    #ln -s /etc/hostname hostname
    #ln -s /etc/dnsdomainname dnsdomainname
    See if that works.
    i'm on a fresh install now (learned a bit more about gentoo...cflags, use, etc,.. and wanted to start over) and typed that in and there's no more warning. it looks like it worked

    thanks

  6. #5
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Alrighty. Here's the actual solution, according to the updated Gentoo Handbook.

    The /etc/hostname and /etc/domainname files are now unneeded, and can be deleted. The /etc/conf.d/hostname file should be:

    Code:
    HOSTNAME=<YOUR HOSTNAME>
    HOSTNAME="tux"
    And the /etc/conf.d/domainname file is:

    Code:
    DNSDOMAIN=<YOUR DNS DOMAIN NAME>
    DNSDOMAIN="homenetwork"
    Make sure that domainname is in your runtime stuff:

    Code:
    rc-update add domainname default
    And there you have it!

  7. #6
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    Odessa, FL
    Posts
    586
    Quote Originally Posted by Cabhan
    Alrighty. Here's the actual solution, according to the updated Gentoo Handbook.

    The /etc/hostname and /etc/domainname files are now unneeded, and can be deleted. The /etc/conf.d/hostname file should be:

    Code:
    HOSTNAME=<YOUR HOSTNAME>
    HOSTNAME="tux"
    And the /etc/conf.d/domainname file is:

    Code:
    DNSDOMAIN=<YOUR DNS DOMAIN NAME>
    DNSDOMAIN="homenetwork"
    Make sure that domainname is in your runtime stuff:

    Code:
    rc-update add domainname default
    And there you have it!
    thanks!

    i'm going to do that now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •