Bug 487620 - [PATCH] Be able to resolve own hostname
[PATCH] Be able to resolve own hostname
Status: CLOSED WONTFIX
Product: Fedora Hosted Projects
Classification: Retired
Component: mock (Show other bugs)
unspecified
All Linux
low Severity medium
: ---
: ---
Assigned To: Clark Williams
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-26 21:53 EST by Lubomir Rintel
Modified: 2013-01-10 00:04 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-07-27 14:38:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Be able to resolve own hostname (2.78 KB, text/plain)
2009-02-26 21:53 EST, Lubomir Rintel
no flags Details

  None (edit)
Description Lubomir Rintel 2009-02-26 21:53:38 EST
Created attachment 333428 [details]
Be able to resolve own hostname

As mentioned in bug 238101 comment #3, copying /etc/hosts along with resolv.conf might be a good idea. Apart from that, being able to resolve own hostname can be useful in other scenarios, such as certain tests (such as perl-libwww-perl ones).

Attached is the patch that adds own hostname to loopback's entry in /etc/hosts in case use_host_resolv is not used, otherwise copies /etc/hosts along with /etc/resolv.conf.
Comment 1 Lubomir Rintel 2009-03-20 06:35:12 EDT
Ping?
Comment 2 Clark Williams 2009-03-27 11:23:35 EDT
Sorry, been off working on other stuff; this looks fine and I've pull it in for the next release.
Comment 3 Clark Williams 2010-07-27 14:38:54 EDT
This change causes big problems with koji, in that it makes all the packages built say that they were built on localhost rather than the build host. So, we can't merge this patch.

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