Displaying 1 result from an estimated 1 matches for "ns_list".
Did you mean:
s_list
2009 May 29
0
[PATCH server] last patch to implement remote freeipa
..."Is FreeIPA already installed on another machine?")
if remote_ipa == "y"
ipa_host = prompt_for_answer("Enter the hostname of the FreeIPA server", :regex => IP_OR_FQDN)
else
@@ -196,14 +195,25 @@ ldap_dn_temp.each do |i|
# DNS Configuration
+ns_count = 0
+ns_list = {}
@cli.say( "\nThe following DNS servers were found:")
File.open('/etc/resolv.conf').each_line{ |line|
line = line.chomp
- puts line if line =~ /nameserver/
+ if line =~ /nameserver/
+ @cli.say(line)
+ ns,ip = line.split()
+ ns_list[ns_count] = ip
+ end...