Skip to content

How to verify your Office 365 DNS records from command line

March 14, 2013

A typical Office 365 deployment requires one or more TXT records adding to your external DNS zones. When you attempt to check these DNS entries the command line, nslookup may return no results.

Remember to add a trailing period to the domain name to specify an explicit FQDN. This isn’t always necessary, but is *always* best practice. Windows 7 in particular can treat root queries without the trailing period as relative queries rather than absolute queries.

Use the following syntax:

nslookup -q=txt {fqdn}. {DNS_Server_you_want_to_query}

For example:

nslookup -q=txt microsoft.com. 8.8.8.8

Example of a ‘problem’ query without the trailing period:

dns_txt_lookup1

Example of a valid query with the trailing period:

dns_txt_lookup2

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: