Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 487620

Summary: [PATCH] Be able to resolve own hostname
Product: [Retired] Fedora Hosted Projects Reporter: Lubomir Rintel <lkundrak>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: dcantrell
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-27 18:38:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Be able to resolve own hostname none

Description Lubomir Rintel 2009-02-27 02:53:38 UTC
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 10:35:12 UTC
Ping?

Comment 2 Clark Williams 2009-03-27 15:23:35 UTC
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 18:38:54 UTC
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.