mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Some more changes for DNS forwarders prompt
This commit is contained in:
parent
04182bf68f
commit
9dc7cf9338
@ -151,9 +151,8 @@ def read_ip_address(host_name, fstore):
|
|||||||
|
|
||||||
def read_dns_forwarders():
|
def read_dns_forwarders():
|
||||||
addrs = []
|
addrs = []
|
||||||
if ipautil.user_input("Do you wish to configure DNS forwarders?", False):
|
if ipautil.user_input("Do you want to configure DNS forwarders?", True):
|
||||||
print "Please enter the IP addresses of DNS forwarders that you want to use."
|
print "Enter the IP address of DNS forwarder to use, or press Enter to finish."
|
||||||
print "After you are done, enter a blank line to stop."
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
ip = ipautil.user_input("Enter IP address for a DNS forwarder",
|
ip = ipautil.user_input("Enter IP address for a DNS forwarder",
|
||||||
@ -164,6 +163,7 @@ def read_dns_forwarders():
|
|||||||
print "You cannot use localhost as a DNS forwarder"
|
print "You cannot use localhost as a DNS forwarder"
|
||||||
continue
|
continue
|
||||||
if not verify_ip_address(ip):
|
if not verify_ip_address(ip):
|
||||||
|
print "DNS forwarder %s not added" % ip
|
||||||
continue
|
continue
|
||||||
|
|
||||||
print "DNS forwarder %s added" % ip
|
print "DNS forwarder %s added" % ip
|
||||||
|
Loading…
Reference in New Issue
Block a user