For small service studios managing their own web presence, confirming that domain changes have taken effect is a critical step before launching or updating a site. This article explains how to use standard command-line utilities like dig and nslookup to inspect DNS records directly, ensuring that your configuration matches your expectations without relying solely on browser caches or third-party checkers.
Setting Up Your Local Verification Environment
Imagine a two-person studio preparing a small service website, with a laptop, a router, and a notes file open on the desk. The author has three working names for the test material: “studio-demo-a,” “studio-demo-b,” and “studio-demo-c.” These are self-made placeholders, not registered domains or live examples, and their spelling is simply how the author records them. The studio uses one small checklist before any DNS change: confirm the zone, note the record type, write down the expected value, and decide which tool answers which question.
For a quick first pass, the author opens two terminal windows. In the first, the planned query is written out in plain form: the dig command followed by the name being checked and the record type, with the resolver left at the system default. In the second window, the same check is planned with nslookup, using the name and record type as separate arguments. The checklist puts dig first when the author wants the full response, including the answer section and the authority section; nslookup is reserved for a second, simpler view that answers “what does this resolver return?” without pretending to be a second opinion from elsewhere. One concrete choice is recorded as a trade: “Use dig for the A record and the NS record; use nslookup only to confirm the A record from the local resolver.” The reason is practical—dig shows more of the response structure, while nslookup gives a readable summary the author can compare at a glance.
A second checklist entry covers results that disagree. The author plans to run each query twice, once with the default resolver and once with a public resolver named explicitly, keeping the name and record type unchanged. Each query is logged with the date, the resolver used, and the returned value. If the two results differ, the note reads “compare again before editing,” not “wait and assume.” A third entry assigns a destination for each link used in the notes: documentation links point to the vendor documentation site, and resolver-status links point to the resolver operator’s own status page. These destinations are fixed in the notes so the author does not drift between sources. The workspace rule is simply that every command, resolver, and expected value is written down before execution, and every observed value is copied into the log afterward. These are illustrative preparations drawn up for this exercise, not recordings of a real launch or completed tests.
Understanding Basic nslookup Commands for Record Queries
You can treat your own domain as a specimen before touching DNS settings: write the exact name in a notes file, then decide which record you want to inspect—an address record for the host, a mail-related record for email, or a name-server record to see which servers answer. That choice, not the tool, determines whether a result is meaningful.
For a first pass, consider running nslookup in its plain interactive form and typing the name. The reply separates the server that answered from the name and address it returned. In your notes, record both: a "answered by" line and a "returned" line. If the returned address differs from the one you expect, you have a concrete discrepancy to investigate rather than a vague worry.
Next, query a record type explicitly. The author's planned example is the mail exchange type: the query asks for that type, and the answer lists a preference number plus a host name. Record the preference number separately from the host so the two are not merged in your notes. A common beginner mistake is copying the whole line as a single value; keeping the fields apart makes later comparison simpler.
You might also compare the answer from your default resolver with one from a public resolver. Write the two results as adjacent rows under the same date. If they agree, note that; if they differ, mark the row and plan to check again later rather than concluding anything immediately. This is preparation, not proof.
Finally, keep a small comparison table in your notes with columns for date, query name, record type, resolver used, and returned value. Fill one row per query. The table becomes your own record of what you asked and what came back, which is more useful than memory when several names and record types are in play. You can adjust the columns to fit the records you actually care about.
Specifying Resource Record Types with set querytype
In nslookup, the query type can be changed with the set querytype command, which the Microsoft documentation presents as identical to set type. The parameter takes a resource record type value. The default is A, and documented alternatives include A, ANY, CNAME, GID, HINFO, MB, MG, MINFO, MR, MX, NS, PTR, SOA, TXT, UID, UINFO, and WKS. The page describes MX as the mail exchanger record and NS as the DNS name server for a named zone, so a studio inspecting mail routing or delegation would pick the corresponding value rather than leaving the default.1
The documentation lists this command for Windows Server 2025, 2022, 2019, and 2016, Windows 11 and 10, and Azure Local 2311.2 and later.1
You can choose which record type to ask for before you run any lookup, rather than accepting whatever type a tool shows by default. In an interactive nslookup session, consider typing a set querytype line followed by the record type you want, then entering the name. For a studio planning a launch, the likely first choice is the address record type; if the studio also wants to inspect a mail-related name, the mail exchange type is a separate query with its own answer.
A useful author demonstration is to keep the same name and change only the type between runs. Write two adjacent note lines: one for the address type, one for the mail exchange type, each with date, name, type, resolver, and the returned value. If the mail exchange answer lists a preference number and a host, record both rather than only the host. Neither line proves propagation by itself; they are your own records of what each query returned at that moment.
You might also choose to disregard reply fields that fall outside the type you asked for, since a single answer can include more than one section. If a returned value differs from what you expected, note the difference without deciding yet which one is correct. Consider saving the exact type name used in each line so a later re-run repeats the same query rather than a near-match. The choice of which types matter first remains yours.
Interpreting A and CNAME Records in Command Output
You can start by choosing one name from your own project and writing a short “expected answer” line before any lookup: the name, the record type you want, and what you believe should come back. For a service site, that line might read “shop name, address type, expected value from your hosting notes.” Keeping that expectation visible is what makes the eventual command output interpretable, since you are comparing a guess against a returned result rather than reading a wall of text cold.
When reading the output, the practical distinction is simple: an address record answers with one or more numeric addresses, while a canonical-name record answers with another name that must then be resolved. You might write these as two separate note lines, each labelled by type. One line could say “asked for address type; got two addresses,” and another could say “asked for canonical-name type; got a target name, not an address.” If your query returns a target name, you can decide whether to follow it with a second query for the address type, and record both answers under the same date.
Try re-running the same name but asking explicitly for each type in turn. The author’s planned demonstration is a pair of rows in a notes table: one row for the address query and one for the canonical-name query, same name, same resolver. Filling both rows helps you see whether the two answers describe the same destination or drift apart. You can also mark which section of the reply each value came from, so you do not confuse an additional answer with the main one.
For any table you keep, the columns can stay modest: date, name queried, type requested, resolver used, returned value, and a short “matches expectation” note. A filled example might read “today, shop name, address type, default resolver, two addresses, yes,” followed by the next row for the canonical-name query. Consider treating a mismatch as information to investigate later, not a verdict, and record what you saw rather than what you hoped for.
Using dig for Detailed Propagation Checks
You can take one planned hostname from your own project and write a five-field worksheet row before running any command: date, query name, record type, resolver used, and expected value. For a current announcement, a filled example might read: today's date, the studio's own site name, address type, default resolver, and the numeric address the host is meant to resolve to. For an archived announcement, the same fields can hold the old host label and its recorded address, with a note that the entry is historical. Keeping one row per lookup lets you compare current and retired entries without mixing them.
When you use dig, consider starting with the plain query and then following it with an explicit type, so the two lines in your notes differ only in the type asked for. The author's demonstration: first line asks for the address type and returns a numeric address; second line asks for the mail-exchange type and returns a preference number plus a host name. If a reply includes sections outside the type you requested, you might record only the answer section that matches your question and leave the rest unmarked.
A second worksheet column can track disagreement. If the default resolver returns one value and a public resolver returns another, write both values with the resolver name beside each. You can decide to wait and repeat the same row later rather than treating either value as final; mark the later row as a repeat and note whether the values now agree. This is a plan for your own records, not a verdict on the domain.
For a template, use these fields with a filled example: date, 2025-06-01; query name, the studio site name; type requested, address; resolver, default; returned value, the numeric address; matches expectation, yes for the current entry and "archived, not checked live" for the old one. You can adjust the columns to suit your notes, but keeping the name and type constant between rows makes differences easier to read.
Common Pitfalls When Reading DNS Tool Results
A common trap is treating one tool’s first answer as settled. If you plan to run dig once and copy the first address into your notes, consider adding a second line for the same name and record type from a different resolver. The two answers may match, or they may differ; either way, the comparison tells you whether you are reading a cached reply or a fresh one, without assuming a cause.
Another pitfall is reading a field you did not ask for. Suppose your worksheet row requests the address type for your studio site name. If the reply also includes a canonical-name line, you might note the alias and the address on separate lines rather than merging them into one “final” value. That keeps the record type you requested visible and makes a later re-run easier to compare. You can choose which line matters for your launch decision and mark the other as context.
Watch for stale entries in your own table. If you fill a row today from the default resolver and a row from last week from a public resolver, label the dates clearly. A filled example of the worksheet might read: date, 2025-06-01; query name, the studio site name; type requested, address; resolver, default; returned value, the address shown; matches expectation, yes. A second row with a different date should not be read as a contradiction until you confirm both rows refer to the same change.
Finally, do not let a single non-answer become a verdict. A timeout or an empty section might mean you asked the wrong type or used a resolver that could not reach the name. Before you conclude anything about your own domain, consider re-running the same name with the type written explicitly and recording the resolver each time.
Frequently asked questions
How can I use my own domain as a starting specimen before changing any DNS settings?
You can treat your own domain as a specimen before touching DNS settings: write the exact name in a notes file, then decide which record you want to inspect—an address record for the host, a mail-related record for email, or a name-server record to see which servers answer.
What should I write down before doing any lookup for one name in my own project?
You can start by choosing one name from your own project and writing a short “expected answer” line before any lookup: the name, the record type you want, and what you believe should come back. For a service site, that line might read “shop name, address type, expected value from your hosting notes.”
How should I write two results under the same date when I compare my default resolver with a public resolver?
You might also compare the answer from your default resolver with one from a public resolver. Write the two results as adjacent rows under the same date.
nslookup set querytype | Microsoft Learn . Retrieved 2026-11-21. ↩︎ ↩︎