Results 1 to 5 of 5

Thread: Why doesn't the install set /etc/hostname?

  1. #1
    Join Date
    Apr 2013
    Beans
    22

    Why doesn't the install set /etc/hostname?

    I'm working with a startup setting up a bunch of servers. So I'm documenting the steps. Is it just me or is it an oversight that the installation doesn't set /etc/hostname?

    Doc

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Why doesn't the install set /etc/hostname?

    It's been awhile since I set up a server (or desktop, for that matter), but I thought there was a selection for host name.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Apr 2012
    Beans
    7,084

    Re: Why doesn't the install set /etc/hostname?

    certainly seems like an oversight... @DetroitDoc perhaps you should mention which installer and which Ubuntu version?

  4. #4
    Join Date
    Apr 2013
    Beans
    22

    Re: Why doesn't the install set /etc/hostname?

    It does ask for the hostname during the install. It does put entries in /etc/hosts. But it doesn't create /etc/hostname.

    Sorry I should have mentioned the version. This is Ubuntu Server 13.10.

    Thanks!
    Doc

  5. #5
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    12,671
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Why doesn't the install set /etc/hostname?

    I haven't installed Debian in a long while, but this thread from 2012 indicates that it creates /etc/hostname, so if Ubuntu does not that had to be a decision by the Ubuntu developers. However there are some subtle issues raised in that thread that I have wondered about as well.

    I came from RedHat to Ubuntu and was accustomed to entering a fully-qualified domain name when prompted for the hostname, but Ubuntu and Debian specifically ask for just the host part. That thread points to some issues using just the host part creates when installing other common software like Postfix. Perhaps not creating /etc/hostname is just an oversight on the part of the developers, but maybe there are some non-obvious reasons that only the developers really understand.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Bookmarks

Posting Permissions

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