tryhackme: DNS in Detail: The practical side!
using nslookup, some commands:
1. nslookup website.com
2. nslookup subdomain.website.com
3. for A record
=> nslookup --type=A subdomain.domain.com
4. for CNAME record
=> nslookup --type=CNAME subdomain.domain.thm
5. for MX record
=> nslookup --type=MX subdomain.website.thm
6. for TXT record
=> nslookup --type=TXT subdomain.website.thm
-------------------------------------------------------------------------------------
~ Some examples ~
* command ~ nslookup --type=CNAME shop.website.thm
* output ~
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
shop.website.thm canonical name = shops.myshopify.com
-------------------------------------------------------------------------------------
* command ~ nslookup --type=TXT website.thm
* output ~
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
website.thm text = "THM{7012BBA60997F35A9516C2E16D2944FF}"
-------------------------------------------------------------------------------------
* command ~ nslookup --type=MX website.thm
* output ~
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
website.thm mail exchanger = 30 alt4.aspmx.l.google.com
---------------------------------------------------------------------------------------------------------------------
Thanks for reading,
Roger
Comments