#3926 [RFE] When asking for DNS forwarders in ipa-server-install, show the current resolv.conf values
Closed: Fixed None Opened 10 years ago by adelton.

When {{{ipa-server-install}}} is run, it may ask about DNS forwarders:

Do you want to configure DNS forwarders? [yes]: 
Enter the IP address of DNS forwarder to use, or press Enter to finish.
Enter IP address for a DNS forwarder:

I assume that at least in some cases, the user installing the IPA server will want to just reuse the {{{nameserver}}} values from their {{{/etc/resolv.conf}}}. Which right now means to either stop the command to look up the values and the rerun it, or open new ssh session to look up the values.

It'd be nice if when asking about the DNS forwarders, ipa-server-install could show the values from {{{resolv.conf}}}, or maybe even give the user a chance to reuse them easily:

Do you want to configure DNS forwarders? [yes]: 
The current nameserver values in resolv.conf are 10.0.0.56, 10.3.3.15, and 10.8.8.2.
Enter the IP address of DNS forwarder to use, "copy" to use the above values, or press
Enter to finish.
Enter IP address for a DNS forwarder:

python-dns excerpt:

>>> import dns.resolver
>>> r = dns.resolver.Resolver()
>>> r.nameservers
['192.0.2.26', '192.0.2.19']

Fixed per 5d9d4e8ae524cdc91effc05ce3fe1c06cfb750e

Metadata Update from @adelton:
- Issue assigned to pspacek
- Issue set to the milestone: Future Releases

7 years ago

Login to comment on this ticket.

Metadata