List TXT records for a domain with Windows nslookup

Solution 1:

First start nslookup without parameters, then type set type=txt, then type the domain name.

nslookup <enter>
set type=txt <enter>
villagevines.com

Example

C:\Users\wilfried>nslookup

Default Server:  mydnsserver
Address:  192.168.1.1

> set type=txt

> villagevines.com

Server:  mydnsserver

Address:  192.168.1.1

*** No text (TXT) records available for villagevines.com

>

Solution 2:

I have no ideea why but if you add an IP of a nameser at the end it will work.
I have added google's dns name in this case:

nslookup -type=TXT villagevines.com 8.8.8.8

It can be your local DNS service.

HTH next time when you need to query your TXT records.

Solution 3:

The link for Get-Dns does not work, the standard Powershell cmdlet to do this is

PS> Resolve-DnsName villagevines.com -Type TXT

See more on Resolve-DnsName