Bug 508176

Summary: RFE: ipa-client-install could search resolv.conf to discover DNS, additionally
Product: [Retired] freeIPA Reporter: Don Davis <dodavis>
Component: ipa-clientAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: benl, dpal, jgalipea, mkosek
Target Milestone: future release   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: freeipa-2.0.0-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-28 09:33:15 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:
Bug Depends On:    
Bug Blocks: 565950    

Description Don Davis 2009-06-25 22:11:58 UTC
Description of problem:
currently, ipa-client-install examines only the client's hostname, 
in order to figure out which DNS domain the client belongs in.  
in weird zone/domain setups, though, the client may be configured 
to use a different DNS server than the one that the client's FQDN 
would lead you to expect.  nevertheless, even in these weird DNS
setups, ipa-client-install usually could still run pretty 
automatically, by looking through the client's /etc/resolv.conf
file to search for the right DNS server.  note that the goal here
is for ipa-client-install to do the right setup more often, 
without CLI options, and without throwing any warning messages or
prompts to the user for easily-mistyped names.

note that the proposal here is not to replace i-c-i's current
analysis of the client's FQDN.  rather, the proposal would
supplement that search, after the FQDN parsing fails to yield
a successful DNS lookup.

FWIW, i'm filing this RFE at simo's suggestion, after he, edewata,
and sgallagh helped me through my confusing newbie experience while
setting up ipa-client in just such a messed-up DNS config (my own).

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

How reproducible:  yes, reliable

Steps to Reproduce:
1. change a desktop's FQDN, so that the donmain-suffix doesn't match
   the host's actual DNS domain.
2. set up the DNS server's .rev file to list the new hostname correctly
3. run ipa-client-install, without CLI options.
  
Actual results:   i-c-i throws a warning:  "Discovery of DNS failed!"

Expected results: i-c-i should say, "Discovery of DNS succeeded," or
                  whatever i-c-i sings for its happy song.

Additional info:

Comment 3 Rob Crittenden 2010-09-16 13:42:39 UTC
see ticket https://fedorahosted.org/freeipa/ticket/234