lib/wmap/host_tracker.rb
# Perform DNS lookup on the local host repository. Not to confuse with the DNS lookup from the Internet
Perform DNS lookup on the local host repository. Not to confuse with the DNS lookup from the Internet
Perform DNS lookup on the local host repository . Not to confuse with the DNS lookup from the Internet
def local_host_2_ip (host)
		puts "DNS lookup from the local host repository" if @verbose
		host=host.strip unless host.nil?
		if @known_hosts.key?(host)
			return @known_hosts[host]
		else
			return nil
		end
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}"
		return nil
	end
def local_host_2_ip ( host ) puts "DNS lookup from the local host repository" if @verbose host = host . strip unless host . nil? if @known_hosts . key? ( host ) return @known_hosts [ host ] else return nil end rescue => ee puts "Exception on method #{__method__}: #{ee}" return nil end
Perform DNS lookup on the local host repository.
Perform DNS lookup on the local host repository .
host
<not_specific>