Insights

DNS service discovery: How apps find private services

DNS-SD lets apps list services by type and find their host and port. If a service appears in the list, it doesn't mean you can connect.

Illustration of desktop printer with recessed Ethernet jack.
On this page

Domain Name System (DNS) service discovery lets apps use DNS to find services without knowing their addresses in advance. With DNS-based Service Discovery (DNS-SD), an app asks for a service type, such as printing, in a domain. It gets a list of advertised instances, then looks up the host and port for the one you choose.

In short:

  • Browse by service type. A compatible app lists named instances advertised in the domain it checks.
  • Use a known name. You can skip browsing when the app already knows the host name and port.
  • Check access separately. A listing doesn't prove the app can connect.

How apps find services without a saved address

When you open a printer by its saved host name, the app looks up the address for that host. When you ask the app to find printers, it looks for printing services advertised in a domain instead. The results are named service instances, such as Office Printer, so you can pick a printer without knowing its address.

What the app looks up before it connects

Suppose a print app browses _ipp._tcp.example.com. for Internet Printing Protocol (IPP) over Transmission Control Protocol (TCP). It asks for a pointer (PTR) record, which returns the names of any advertised instances. In this example, one instance is called Office Printer.

When you pick Office Printer, the app reads its service (SRV) record to get the target host and port. The text (TXT) record for that instance carries extra details as key-value pairs. The app still needs an address for the target host before it can connect.

Where an app looks for services

DNS-SD isn't another name for Multicast DNS (mDNS). It can use either multicast or unicast DNS.

DNS methodWhere it asksWhat it finds
Multicast DNSOn the local link, the network segment the client is onServices advertised on that link
Unicast DNSThrough a resolver that can look up the domain, public or privateServices published in that domain, even beyond the local link

When a known service name is enough

Use a known DNS name when the app already knows which service it needs and which port to use. The port can be set in the app or fixed by the protocol. Use DNS-SD when a compatible app needs to list named instances. To diagnose a mismatch, compare browsing and direct connection from the same client to the same service.

If you can print to Office Printer by its known host name but it doesn't show up in the app, check browsing first. Does the app browse for that service type, is it looking in the right domain, and is the printer advertised there? The missing listing doesn't mean the printer is down.

If Office Printer shows up but you can't print, first check that the advertised host and port match the intended printer. Then check that the service is running, that the client can reach it, and that network and application rules allow access. A listing tells you what's advertised, not whether you're allowed to use it.

Where doxx.net fits. You can manage DNS records that give your service a name on the doxx.net private network. If you want to reach it by name, download the doxx.net app, connect the machine that runs the service, and set the DNS and access rules it needs.

Ask an AI assistant

Share this article

Private Everywhere

Stop giving the internet everything

Keep your browsing, messages, files, and agents private.