ip_dns_resolve¶
Author: Athanasios Gkaraliakos email: a.gkaraliakos@gmail.com email: athanasios.gkaraliakos@cern.ch
The script is written on python >=2.6
Script to get IPv4 and/or IPv6 (if exists) for every machine in the given set
Depends on python-dns ” yum install python-dns “
Script uses as default username the –> dbsystem
-
bin.ip_dns_resolve.
ip_dns_resolver
(hostname, iptype, silent=False)[source]¶ This function receives a host name and tries to resolve it via DNS and get the IPv4/IPv6 address/es
Parameters: - hostname – Hostname
- iptype – Type of ip address ( IPv4 or IPv6 or both )
Returns: IP addresses found ( IPv4 or IPv6 or both )