How does DDNS work?
DDNS works by having a device at your site check in. DNS is the internet's directory: it turns a name into the numeric address computers connect to. Ordinary DNS records are set by hand and rarely change. Most internet connections, though, are given a public IP address that changes from time to time, for example when the router restarts.
A small updater in the router or the recorder notices the new address and reports it to a DDNS provider, which then points your chosen hostname at it. Anyone using the hostname is sent to whatever the address is today. Many router and recorder makers include a DDNS service, and independent providers exist too. The hostname is normally a name you pick in front of the provider's own domain.
What does a DDNS settings page look like?
On a recorder it is a page in the network menu, and on a router it usually sits with the internet or advanced settings. The fields are much the same everywhere: a box to switch DDNS on, a list of providers to choose from, the hostname you registered, and the user name and password of your account with that provider. A status line then reads something like connected or updated.
Suppose the hostname is cornershop.example-ddns.net and the router forwards outside port 5540 to the recorder. The recorder's first camera is then reached from anywhere at rtsp://user:password@cornershop.example-ddns.net:5540 followed by the camera's path. The name stays the same next month, whatever the address has become.
Where does a CCTV owner meet DDNS?
You meet DDNS in the network menu of a DVR or NVR, or when an installer sets up remote viewing without a paid static IP address. It solves one problem: finding the site. It doesn't open the door. The router still needs port forwarding so that a request arriving at the hostname is passed to the recorder.
DDNS also fails on some connections. Many mobile and fibre providers share one public address among many customers, known as carrier-grade NAT or CGNAT. The hostname then points at the provider's equipment, not your router, and nothing can reach in. Remote viewing through the maker's app can keep working on such a line, which hides the problem until you try to connect anything else.
How do you tell whether DDNS can work on your connection?
Compare two numbers. Open the router's status page and note the internet or WAN address it shows. Then, from a computer on the same network, open any website that displays your public IP address. If the two match, the router holds a public address and DDNS can point at it.
If they differ, the provider is sharing an address. Another sign is a WAN address that begins with 10, with 192.168, with 172.16 to 172.31, or with 100.64 to 100.127, the range set aside for carrier-grade NAT. In that case ask the provider for a public address, which is often a paid extra, or use a connection method that doesn't need one.
How is DDNS different from a static IP, the maker's app and a VPN?
All four get you to a recorder from outside, by different routes.
- Static IP: the provider gives the line one address that never changes. No updater is needed, and there is usually a monthly charge.
- DDNS: the address keeps changing and a name follows it. Often free, and one more thing that can stop.
- The maker's app service: you scan a code on the recorder and the app reaches it through the maker's servers. It works behind a shared address, but only that app can use it; it gives other software no address to open.
- VPN: an encrypted tunnel into the site's network. Nothing on the recorder is exposed, but each viewer needs the VPN set up on their device.
What are the common DDNS problems and how do you recognise them?
A DDNS fault usually looks like cameras that were reachable yesterday and time out today, while everything works inside the building.
- The hostname points at an old address: the updater stopped, or the account password changed. The status line on the DDNS page shows a failure.
- The hostname no longer exists: some free hostnames lapse unless confirmed every so often.
- The router was replaced: the new one has neither the updater nor the forwarding rules.
- The menu offers a service that has closed: recorder makers have retired some of their own DDNS services, and older firmware still lists them.
- The name is right but nothing answers: the recorder's local address changed, so the forwarding rule now points at nothing.
What should you ask an installer about DDNS?
Ask which provider the hostname is with and whose account it is under. It should be yours: if the installer registered it in their own name, you lose it when they stop looking after it. Ask which device runs the updater, the router or the recorder, and which ports are forwarded behind the name.
Ask what happens when the router is replaced, because that is when most DDNS setups break. A note of the hostname, the account and the forwarding rules, kept with the recorder's password, lets anyone rebuild it.
Do you need DDNS to get alerts from your cameras?
Only if you connect your recorder directly. GoKavach reads the recorder's RTSP stream, and one way is to give it a DDNS name or public IP with the RTSP port forwarded. You type the DDNS name where the recorder's address goes, with the outside port number, and GoKavach builds the rest of the address from the brand you choose.
The other way needs neither. The site connector is a small app on any always-on computer at the location that makes an outgoing connection, so it works behind CGNAT and with no router changes. The guide to viewing CCTV remotely without a static IP compares the options, and either way a camera offline alert tells you if the link drops. See the DVR page for both connection methods.