pastesite.com New paste

Share a DNS lookup without the internal names

By · Published 2026-12-05 · reviewed 2026-12-04 · 2 min read

AI-assisted article. Reviewed by Codebuff automated editorial review on 2026-12-04. Examples are illustrative, not real user data.

Every troubleshooting thread about a missing record starts the same way: someone pastes the output of dig or nslookup. It is short, it is easy to read, and it can also list internal hosts, a private mail relay and the token that proves a domain to a third party. The record you are asking about is usually one line. Reduce the answer to that line and the context that makes it checkable.

What does a DNS lookup actually show?

A resolver answer has three parts: the question, the answer, and the authority that supplied it. The question names the record and type. The answer carries a TTL and one or more values. The authority section names the nameservers, which may be internal even when the record itself is public.

That distinction decides what to redact. A public A record for a marketing site is not sensitive. An internal name such as db-7.corp.example is, because it maps your network. The resolver address at the top of the output can also name a VPN or a private DNS zone.

Which names should you remove before pasting?

Remove internal hostnames, private zone suffixes, and any CNAME chain that passes through them. Replace the left-hand label and keep the suffix, so db-7.corp.example becomes <host>.corp.example and the reader can still see that it is an internal zone.

TXT records deserve their own pass. Verification records often contain a token that proves control of the domain, and SPF records list every mail provider you use. Keep the record type and the shape, replace the token. MX targets can name an internal relay; replace the host and keep the priority.

How do you keep the answer useful after redaction?

A redacted answer is still useful when it keeps the record type, status code, TTL and the relationship between records. If the question is whether a CNAME resolves, the reader needs to see the chain and the final type, not the original hostname.

Say what you replaced. A reader who sees <host> knows the value is a placeholder and will not test it as if it were live. If the TTL is the interesting part, leave it alone: a five-minute TTL and a one-hour TTL point at different caching problems.

$ dig +noall +answer api.example.test
api.example.test.  300  IN  CNAME  edge-7.internal.example.
edge-7.internal.example. 60 IN A 10.20.30.40

# Redacted, same shape
api.example.test.  300  IN  CNAME  <edge>.internal.example.
<edge>.internal.example. 60 IN A <private-ip>

When is the resolver itself the problem?

If two people get different answers, the record may be fine and the resolvers may disagree. Paste the resolver address, the query time and whether the answer came from cache. Replace the resolver address if it is a private one, but keep the fact that it was private, because that explains why the public resolver saw something else.

A timeout is different from NXDOMAIN. Include the exact status and how long the query waited. The timing often identifies split-horizon DNS or a firewall rule faster than the record contents do.

Sources and editorial review

Prepared with AI assistance and checked against the text and configuration sharing pages at the reviewed revision: the structure of a resolver answer, the split between public and internal records, TXT and MX redaction, TTL and status as evidence. The hostnames, addresses and zones are fabricated.