• Diniz Martins

DNS Lookup | Python

Here you have a simple script using Python to DNS Lookup.

- The sockets module provides an easy way to look up a host name's ip address.

GetHostByName_Ex() = Translate a host name to IPv4 address format, extended interface. Return a triple (hostname, aliaslist, ipaddrlist) where hostname is the primary host name responding to the given ip_address, aliaslist is a (possibly empty) list of alternative host names for the same address, and ipaddrlist is a list of IPv4 addresses for the same interface on the same host (often but not always a single address). gethostbyname_ex() does not support IPv6 name resolution, and getaddrinfo() should be used instead for IPv4/v6 dual stack support.

- Here you have the output script:


Recent Posts

See All

Python | Subnet Ping

This script will ping and display status of all hosts in a subnet we provide. import subprocess import ipaddress from subprocess import Popen, PIPE subnet = input("Please enter the network: ") network


Sublist3r is a python tool designed to enumerate subdomains of websites using OSINT. It helps penetration testers and bug hunters collect and gather subdomains for the domain they are targeting. Enume

Ansible | Some issues

In this post I want to share with you some problems that I was facing and that I managed to fix by searching on Google, making debugs and talking with friends. #1) Problem to connect to devices using