Red Hat Bugzilla – Bug 37440
Proxy option doesn't work without DNS
Last modified: 2015-01-07 18:45:13 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
The proxy server option for rhn_register doesn't work when using just the
IP address for the for the proxy. Not running DNS on our LAN. Tried
using hostname in /etc/hosts. Still get error "Fatal error retreiving
welcome message: No route to host." Same error on RH 7.1.
Steps to Reproduce:
1.Use "rhn_register --configure" to set "enableProxy = Yes" and "httpProxy
= 192.168.1.150:3128" (running squid as proxy).
Using rhn_register version 1.3.2-0.6.x and rhn_register-gnome-1.3.2-
There was an error in the config comments about the format
of the the proxy host string. Basically, it said to enter
the format as "188.8.131.52:3000", but unfortunately, the
clients always expected it in the form of "http://192.168.0.1:3000",
so it's possible that it wasnt parsing the ip address correctly,
and was looking for a non-existent host.
The next version will rectify this (correct the comment, and a code
change to accept both formats).
The client should be able to use an ip address as the proxy host
without any problems, if the config option is in the right format.
Indeed this is fixed in CVS. rhn_register config now understands both IPs and
hostnames and they can be specified as 'hostname.machine.com:<port>' or