Bug 117334 - redhat-config-date enters IP address instead of host-name
redhat-config-date enters IP address instead of host-name
Product: Fedora
Classification: Fedora
Component: redhat-config-date (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Brent Fox
Depends On:
  Show dependency treegraph
Reported: 2004-03-02 16:43 EST by Ambarish Sridharanarayanan
Modified: 2007-11-30 17:10 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-03-10 18:36:10 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ambarish Sridharanarayanan 2004-03-02 16:43:04 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET 
CLR 1.1.4322)

Description of problem:
redhat-config-date does a name lookup on the NTP server name entered 
and enters the IP address in /etc/ntp.conf instead of the hostname. 
This breaks setups where the name resolves randomly to multiple IP 
addresses to balance the server-load. (e.g. ntp.uiuc.edu resolves 
randomly to 3 time providers).

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

How reproducible:

Steps to Reproduce:
1. Launch redhat-config-date
2. Check "Enable Network Time Protocol"
3. Enter, say, ntp.uiuc.edu for "Server", and hit "OK"

Actual Results:  /etc/ntp.conf should now contain an entry "server 

Expected Results:  /etc/ntp.conf should have contained "server 
ntp.uiuc.edu" instead

Additional info:
Comment 1 Ambarish Sridharanarayanan 2004-03-02 17:21:31 EST
Looks like redhat-config-date may also have to figure out the 
appropriate netmask for the "restrict" line from the list of IP 
addresses that the name resolves to.
Comment 2 Brent Fox 2004-03-10 18:36:10 EST
Please see bug #70557 for an explanation of why we use the IP address
on the server line instead of the hostname.
Comment 3 Ambarish Sridharanarayanan 2004-03-10 23:41:10 EST
If my understanding is correct, redhat-config-date does a DNS lookup
on the entered hostname since hostnames may be spoofed. I don't quite
understand the reasoning, considering that IP spoofing is also
possible. On a purely rhetorical note, why not enter the Hardware
addresses instead of the IP addresses?

Hostnames are supposed to provide a layer of abstraction over IP
addresses, and as such are commonly used for purposes such as load
balancing. Resolving breaks such applications. I'm not reopening the
bug, as I'm not entirely sure if entering hostnames is necessarily a
good thing either.

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