I already have ddclient
3.8.2 working with OpenDNS. I'm running it on my laptop. I may travel with my laptop, and so I don't want to update the IP if I'm not home.
How do I restrict ddclient
to update the IP only if I'm on my home network? This selectively has to be automated.
There are at least two ways to define whether I'm on my home network:
Assume I use wifi, and that my home wifi SSID name is
home-ssid
. Assume I can configure this name.Alternatively, assume the MAC address of my router is
F7:C1:A2:54:4F:71
(fake). Assume I can configure this value. This approach is intended to work for both wifi and/or wired.
If nothing else, a hack could be to use use=cmd
instead of use=web
in /etc/ddclient.conf
. I can then potentially have the external command intelligently fail or return an unchanged IP if I'm not home. For this purpose, note that /var/cache/ddclient/ddclient.cache
caches the last known IP.
Please provide a complete working solution.