Linux..command NsLookup

basic

$ nslookup hostname

reverse

$ nslookup 192.168.1.2

soa record

$ nslookup -type=soa redhat.com Server: 127.0.0.53 Address: 127.0.0.53#53 Non-authoritative answer: redhat.com origin = a1-68.akam.net mail addr = noc.redhat.com serial = 2023013100 refresh = 300 retry = 180 expire = 604800 minimum = 14400 Authoritative answers can be found from: a1-68.akam.net internet address = 193.108.91.68 a1-68.akam.net has AAAA address 2600:1401:2::44

ns record

$ nslookup -type=ns redhat.com

Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
redhat.com	nameserver = a13-66.akam.net.
redhat.com	nameserver = a9-65.akam.net.
redhat.com	nameserver = a10-65.akam.net.
redhat.com	nameserver = a16-67.akam.net.
redhat.com	nameserver = a28-64.akam.net.
redhat.com	nameserver = a1-68.akam.net.

Authoritative answers can be found from:
a10-65.akam.net	internet address = 96.7.50.65
a9-65.akam.net	internet address = 184.85.248.65
a16-67.akam.net	internet address = 23.211.132.67
a28-64.akam.net	internet address = 95.100.173.64
a16-67.akam.net	has AAAA address 2600:1406:1b::43
a13-66.akam.net	internet address = 2.22.230.66

a record

$ nslookup -type=a redhat.com

Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	redhat.com
Address: 52.200.142.250
Name:	redhat.com
Address: 34.235.198.240

mx record

$ nslookup -type=mx redhat.com

Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
redhat.com	mail exchanger = 10 us-smtp-inbound-2.mimecast.com.
redhat.com	mail exchanger = 10 us-smtp-inbound-1.mimecast.com.

Authoritative answers can be found from:
redhat.com	nameserver = a10-65.akam.net.
redhat.com	nameserver = a1-68.akam.net.
redhat.com	nameserver = a16-67.akam.net.
redhat.com	nameserver = a9-65.akam.net.
redhat.com	nameserver = a13-66.akam.net.
redhat.com	nameserver = a28-64.akam.net.
a9-65.akam.net	internet address = 184.85.248.65
a13-66.akam.net	internet address = 2.22.230.66
a10-65.akam.net	internet address = 96.7.50.65
a16-67.akam.net	internet address = 23.211.132.67
a28-64.akam.net	internet address = 95.100.173.64
a16-67.akam.net	has AAAA address 2600:1406:1b::43

txt record

$ nslookup -type=txt redhat.com

;; Truncated, retrying in TCP mode.
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
redhat.com	text = "google-site-verification=fkn6chapCdYNWIcpsgH0K6mkR0yo7ldeIRC7EH23yoo"
redhat.com	text = "docusign=c6aa79da-fde1-4b7e-8874-28eeb223ca63"
redhat.com	text = "MS=ms88428189"
redhat.com	text = "slack-domain-verification=dPrnI9sLvqvAbQUwzvFsPXSPEU1PLODdgGxLhEUr"
redhat.com	text = "status-page-domain-verification=hyls0f05cd87"
redhat.com	text = "v=spf1 ip4:107.21.15.141 ip4:108.177.8.0/21 ip4:128.17.0.0/20 ip4:128.17.128.0/20 ip4:128.17.192.0/20 ip4:128.17.64.0/20 ip4:128.245.0.0/20 ip4:128.245.64.0/20 ip4:13.110.208.0/21 ip4:13.110.216.0/22 ip4:13.110.224.0/20 ip4:13.111.0.0/16 ip4:136.147.128.0" "/20 ip4:136.147.176.0/20 ip4:148.105.8.0/21 ip4:149.72.0.0/16 ip4:159.183.0.0/16 include:spf1.redhat.com -all"
redhat.com	text = "google-site-verification=TaSjV4JOe2XfmL_vHFKJHkPk8sjgoLkuuTTWezDO0Pw"
redhat.com	text = "adobe-idp-site-verification=10154eb7d4abe67e9e45621e46476febbec28a97a4610d7c043c42c667aa18d4"
redhat.com	text = "amazonses:ablaZDaC37yeQUcZAZjbfqRELxucC+8pBdvhFEpTSlY="
redhat.com	text = "status-page-domain-verification=dfx5rbys1ts5"
redhat.com	text = "apple-domain-verification=xaB3GAa9xxzrpoS4"
redhat.com	text = "segment-site-verification=Kk3pC9UBfhioQzibTvTIhT4TFVwP4niP"
redhat.com	text = "google-site-verification=rl_wq5rq_W7A7OSyK08d8Ta_Hf6AKP5tqtdlo4iGTvs"
redhat.com	text = "MS=ms44845140"
redhat.com	text = "miro-verification=0bc02d4257d450b9f9034363a58f88b4b904dc22"
redhat.com	text = "atlassian-domain-verification=fHiTv781WbOHgzl6U1McyXa9JUSSO5B0ECvgSZzJ9+b4q8wv0Tf4iI75xdcyoC00"
redhat.com	text = "docusign=cfd355fc-11f9-4eaf-8ecf-64433ef46173"

Authoritative answers can be found from:
redhat.com	nameserver = a1-68.akam.net.
redhat.com	nameserver = a10-65.akam.net.
redhat.com	nameserver = a13-66.akam.net.
redhat.com	nameserver = a9-65.akam.net.
redhat.com	nameserver = a28-64.akam.net.
redhat.com	nameserver = a16-67.akam.net.
a13-66.akam.net	internet address = 2.22.230.66
a16-67.akam.net	internet address = 23.211.132.67
a16-67.akam.net	has AAAA address 2600:1406:1b::43
a10-65.akam.net	internet address = 96.7.50.65
a9-65.akam.net	internet address = 184.85.248.65
a28-64.akam.net	internet address = 95.100.173.64

Lookup any record

$ nslookup -type=any google.com

Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
google.com
	origin = ns1.google.com
	mail addr = dns-admin.google.com
	serial = 506265247
	refresh = 900
	retry = 900
	expire = 1800
	minimum = 60
google.com	rdata_65 = 1 . alpn="h2,h3"
Name:	google.com
Address: 2607:f8b0:400a:804::200e
Name:	google.com
Address: 142.251.211.238
google.com	nameserver = ns2.google.com.
google.com	nameserver = ns1.google.com.
google.com	nameserver = ns3.google.com.
google.com	nameserver = ns4.google.com.

Authoritative answers can be found from:
ns1.google.com	internet address = 216.239.32.10
ns2.google.com	internet address = 216.239.34.10
ns4.google.com	internet address = 216.239.38.10
ns3.google.com	internet address = 216.239.36.10
ns1.google.com	has AAAA address 2001:4860:4802:32::a
ns2.google.com	has AAAA address 2001:4860:4802:34::a
ns4.google.com	has AAAA address 2001:4860:4802:38::a
ns3.google.com	has AAAA address 2001:4860:4802:36::a