I use OpenDNS for filtering on my home network, and like most of us I’m on a residential connection where the public IP changes whenever it feels like it. When it changes, OpenDNS stops recognizing your network and your filtering quietly stops applying. The fix is ddclient running on an always-on box at home. Mine is a little Manjaro Pi. Here’s the setup, minus anything personal.
1. Install ddclient
sudo pacman -S ddclient # Arch/Manjaro
sudo apt install ddclient # Debian/Ubuntu
2. Configure it
Edit /etc/ddclient.conf (or /etc/ddclient/ddclient.conf on some distros). Use your own OpenDNS account and the exact name of your OpenDNS network, and keep the file readable by root only, because it holds a password.
daemon=300
syslog=yes
ssl=yes
use=web, web=myip.dnsomatic.com
protocol=dyndns2
server=updates.opendns.com
login=YOUR_OPENDNS_LOGIN
password='YOUR_OPENDNS_PASSWORD'
YOUR_NETWORK_LABEL
sudo chmod 600 /etc/ddclient.conf
daemon=300 checks every 5 minutes and only sends an update when the IP actually changes.
3. Test once, then enable at boot
sudo ddclient -daemon=0 -debug -verbose -noquiet
sudo systemctl enable --now ddclient
systemctl status ddclient
journalctl -u ddclient --since "1 hour ago"
Look for a “SUCCESS” line in the debug run. Then go to your OpenDNS dashboard and confirm the network shows your current IP.
Tips
- Use a dedicated OpenDNS login if you can, not the one you use for everything else.
- Pick a box that’s always on and wired. If it reboots, systemd brings ddclient back.
- If you manage your machines with Ansible, template the config and the service so it’s reproducible instead of hand-edited.
God Bless, and Happy hacking!