How to check a DNS TXT record using OSX Terminal

Written by

in

A lot of services today authenticate DNS via TXT records and i find myself looking for web-services that checks those values for me. However, doing this will only give me the DNS record(s) for the DNS where the service is running, not actually my local DNS response.

Doing this via the Mac/OSX Terminal (command line) is trivially easy:

dig -t txt domain.com

Which will give you the TXT record for the specified domain. You can change the “txt” part to any other DNS parameters.

Tommie Podzemski

Building software for close to 30 years. Chief Product Officer at Yalta, and through my own company TomPod AB I build and run a portfolio of smaller products. I write here about development, product and running things.

About · Bluesky · X · GitHub

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *