Skip to content

bash script to operate as DynDNS with Azure-DNS-service

License

Notifications You must be signed in to change notification settings

fle108/azure-dyndns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

azure-dyndns

bash script to operate as DynDNS with Azure-DNS-zone


Usage and Env

works on debian and ubuntu
tested on raspberry Pi - Raspbian (original goal of that project)

download dyndns.sh and make it executable

chmod +x ./dyndns.sh

Cron it (e.g twice a day or every hour)

sudo crontab -e

Dependencies

This script require python3, azure-cli, curl, and jq

  • python
sudo apt install python3
  • azure-cli

following method is used with Raspbian because of no package available in sources repository however on Ubuntu or Debian use sudo apt install azure-cli

  curl https://azurecliprod.blob.core.windows.net/install.py >> installAzureCliPython.py
  sudo chmod +x installAzureCliPython.py
  python3 installAzureCliPython.py
  exec -l $SHELL
  az --version
  • curl (if not installed)
sudo apt install curl
sudo apt install jq

External services

  • Azure tenant with existing azureDNSzone
  • External echo/mirror ip service In order to get current ip address you need a echo/miror ip service
    you can use third party service as the excellent ifconfig.co
    or use you own based on works already present on GitHub.
    Use Greenstatic/echo-ip deved in Go that fits very well with a microk8s deploy. \

Greenstatic/echo-ip is a good tool for docker/k8s env because it's able to recover X-Forwarded source ip through proxy/ingress.

About

bash script to operate as DynDNS with Azure-DNS-service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages