Git Product home page Git Product logo

azuredynamicdns's Introduction

Azure DNS - Dynamic DNS

Now with Docker - That has been running beautifully for nearly a month.

Customized .NET 6 appplication based on https://github.com/FrodeHus/azure-dyndns

Used to update one or more DNS A records within an Azure DNS Zone to the IP of the host machine.

Usage

Short Long Info
-f --config-file Path to configuration file
-g --resource-group Azure resource group where Azure DNS is located
-z --zone Azure DNS zone name
-r --record DNS record name to be created/updated
-s --subscription-id Azure subscription ID
-t --tenant-id Azure tenant ID (or set AZURE_TENANT_ID)
-c --client-id Azure service principal client ID (or set AZURE_CLIENT_ID)
-x --client-secret Azure service principal client secret (or set AZURE_CLIENT_SECRET)
-t --ttl DNS Record TTL
--help Display this help screen.
--version Display version information.

Example Config File

See config.example.json

{
  "subscriptionId": "",
  "resourceGroup": "",
  "zoneName": "",
  "recordName": "",
  "clientId": "",
  "clientSecret": "",
  "tenantId": "",
  "ttl": 3600,
  "additionalRecords": [
    {
      "resourceGroup": "",
      "zoneName": "",
      "recordName": ""
    }
  ]
}

Notes

  • addtionalRecords is optional within the config file.

  • This can be run to be updated as often as necessary via Task Scheduler on Windows or as a cron task on Linux. For example:

    ## Run every 15 minutes with the config.json file.
    */15 * * * * /srv/azdyndns/azdyndns -f /etc/azdyndns/config.json
    

Docker

See ReadMe

Nuget Dependencies

https://www.nuget.org/packages/CommandLineParser/ https://www.nuget.org/packages/Microsoft.Azure.Management.Dns https://www.nuget.org/packages/Microsoft.Rest.ClientRuntime.Azure.Authentication/

Version History

See ChangeLog

azuredynamicdns's People

Contributors

techjosh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.