# use ex-ipudate to dynamically update your DNS record ## install ``` apt install ez-ipupdate ``` when the package asks you how to configure it, select "manual" to configure it manually. ## configure head to `/etc/ez-ipupdate`: ``` cd /etc/ez-ipupdate ``` here we will create a file for DynDNS provider, named `dyndns.conf`, with the contents: ``` #!/usr/sbin/ez-ipupdate -c # # example config file for ez-ipupdate # # this file is actually executable! service-type=dyndns user=${username:?}:${password:?} host=${hostname:?}.alemor.org interface=wan0 max-interval=2073600 # if you don't use a cache file your dyndns account will probably get banned. run-as-user=ez-ipupd cache-file=/var/cache/ez-ipupdate/default-cache # uncomment this once you have everything working how you want and you are # ready to have ez-ipupdate running in the background all the time. to stop it # you can use "killall -QUIT ez-ipupdate" under linux. #daemon ``` don't forget to make it executable: ``` chmod +x dyndns.conf ``` run it to see if it works: ``` ./dyndns.conf ``` once everything is working, uncomment the `daemon` line.