// SIP DNS

Private IP in a public SIP DNS record

Some address ranges are reserved for use inside a network: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks, and 100.64.0.0/10 for carrier-grade NAT. They are not routed on the internet. When a public SIP name resolves to one of them, a caller elsewhere gets an address it cannot reach, or one that leads to some unrelated device on its own network.

The usual source is split DNS done halfway. Inside the office the name should point at the server's internal address, and outside at the public address of the firewall or SBC in front of it. When the internal answer leaks into the public zone, internal phones keep working while carriers and remote users time out.

What the records look like

; public zone: the internal address leaked out
sbc.example.com. 3600 IN A 10.20.1.4
; public zone: the address the internet can reach
sbc.example.com. 3600 IN A 203.0.113.10
; internal zone (split DNS) keeps the private one for local phones
sbc.example.com. 3600 IN A 10.20.1.4

Messages you may see

  • dial tcp 10.20.1.4:5061: i/o timeout
  • SIP/2.0 408 Request Timeout

Common causes

  • The internal zone was copied to the public DNS host and kept its private addresses.
  • An A record was created by hand with the server's own interface address instead of the public one.
  • A cloud private DNS zone and the public zone share a name, and the wrong record was edited.
  • The server sits behind carrier-grade NAT and was registered with its 100.64.0.0/10 address.
  • An SRV target was given the internal name of a host, which only an internal resolver can answer.

How to fix it

  1. Query the name through a public resolver such as 1.1.1.1 to see exactly what callers outside get.
  2. Put the public address of the firewall, NAT or SBC in front of the server into the public record.
  3. Keep the private address in an internal zone only, so phones inside still take the short path.
  4. Make sure the firewall forwards SIP and media ports from that public address to the server.
  5. Check SRV targets the same way, since each one needs a public address of its own.

How the free check shows it

The free check never probes a private or reserved address, so such an endpoint is listed as not tested, and if no address of the name is public the check stops with a link here. It reads public DNS through public resolvers; a check that has to fall back to its host resolver hides private addresses instead of showing them. To monitor a server that is only reachable inside your network, run a PingVo agent there, which tests the private address directly.

See what your domain publishes. Run a free SIP SRV check

Questions

Is it ever right to publish a private address in public DNS?

It can be harmless for names only your own staff use over a VPN, but it leaks how your network is laid out. For anything a carrier or partner dials, publish the public address.

Why does it work from the office but not from outside?

Inside the office the private address is reachable, so the leaked record looks fine. Only a client on another network finds that the address goes nowhere.

Related problems

Know a line is down before your callers do

Line checks, real test calls and IVR verification for your call-center numbers, with alerts that say whose side failed.

Start free trial

14 days · full Pro features · no credit card