lib/wmap/utils/utils.rb
# Query the name-server to see if the dns record is still valid
Query the name-server to see if the dns record is still valid
Query the name - server to see if the dns record is still valid
def valid_dns_record? (hostname)
		puts "Validate the hostname record: #{hostname}" if @verbose
		begin
			ips=Resolv.getaddresses(hostname)
			if ips.empty?
				return false
			else
				puts "Found: #{hostname}" if @verbose
				return true
			end
		rescue => ee
			puts "Exception on method #{__method__} for host #{hostname}: #{ee}" if @verbose
			return false
		end
	end
def valid_dns_record? ( hostname ) puts "Validate the hostname record: #{hostname}" if @verbose begin ips = Resolv . getaddresses ( hostname ) if ips . empty? return false else puts "Found: #{hostname}" if @verbose return true end rescue => ee puts "Exception on method #{__method__} for host #{hostname}: #{ee}" if @verbose return false end end
Query the name-server to see if the dns record is still valid
Query the name - server to see if the dns record is still valid
hostname
<not_specific>