Note: These are all publicly available records and hence do not alert the target.
WHOIS is a request and response protocol that follows the RFC 3912 specification.
A WHOIS server listens on TCP port 43 for incoming requests.
The domain registrar is responsible for maintaining the WHOIS records for the domain names.
he WHOIS server replies with various information related to the domain requested, for example-
We can find the IP address of a domain name using nslookup.
nslookup stands for Name Server Lookup.
We need to issue the command- nslookup DOMAIN_NAME
, for example - nslookup tryhackme.com
.
We can also use - nslookup OPTIONS DOMAIN_NAME SERVER
The three main parameters are:-
OPTIONS- It contains the query type. For example - We can use A for IPv4 addresses and AAAA for IPv6 addresses.
Query type | Result |
---|---|
A | IPv4 Addresses |
AAAA | IPv6 Addresses |
CNAME | Canonical Name |
MX | Mail Servers |
SOA | Start of Authority |
TXT | TXT Records |
DOMAIN_NAME- It is the domain name we are looking up.
SERVER- It is the DNS server that we want to query. We can choose any public DNS server to query. Cloudflare offers 1.1.1.1
and 1.0.0.1
. Similarly Google offers 8.8.8.8
and 8.8.4.4
.
There are many more public DNS servers that we can choose.
Example syntax- nslookup -type=A tryhackme.com 1.1.1.1
can be used to return all the IPv4 addresses used by tryhackme.com.