Red Hat Bugzilla – Bug 487620
[PATCH] Be able to resolve own hostname
Last modified: 2013-01-10 00:04:31 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.
Sorry, been off working on other stuff; this looks fine and I've pull it in for the next release.
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.