Bug 994654 - anaconda not create usable /etc/hostname for httpd server on local network
Summary: anaconda not create usable /etc/hostname for httpd server on local network
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 19
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-07 17:36 UTC by Marian
Modified: 2013-08-07 20:31 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-07 18:00:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Marian 2013-08-07 17:36:07 UTC
Description of problem:
After install cat /etc/hostname is the form "local_ip.domainname" useless for
httpd(apache) server

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
cat /etc/hostname 
127.0.0.1         localhost  #usable for httpd(apache server) on local network

Additional info:

Comment 1 David Shea 2013-08-07 18:00:19 UTC
From "man 5 hostname"

The /etc/hostname file configures the name of the local system that is set during boot, with the sethostname(2) system call. It should contain a single newline-terminated host name string.


Your hostname file contains a hostname, and that is correct. /etc/hosts contains address to name mappings, and should include a line similar to:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

Comment 2 Steve Tyler 2013-08-07 20:12:47 UTC
(In reply to Marian from comment #0)
...
> Expected results:
> cat /etc/hostname 
> 127.0.0.1         localhost  #usable for httpd(apache server) on local
> network
...

As David noted, that is not the syntax for /etc/hostname.

Did you mean this?
$ cat /etc/hosts
127.0.0.1		localhost.localdomain localhost
::1		localhost6.localdomain6 localhost6

BTW, on Fedora now, the recommended command for managing host names is:
$ hostnamectl
$ man hostnamectl

Comment 3 Steve Tyler 2013-08-07 20:22:11 UTC
(In reply to Marian from comment #0)
> Description of problem:
> After install cat /etc/hostname is the form "local_ip.domainname" useless for
> httpd(apache) server
...

Were expecting the installer to configure /etc/hosts?

Comment 4 Steve Tyler 2013-08-07 20:31:09 UTC
See also:
$ man hosts
http://man7.org/linux/man-pages/man5/hosts.5.html


Note You need to log in before you can comment on or make changes to this bug.