GithubHelp home page GithubHelp logo

cgreenza / azuredynamicdns Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 7 KB

Azure function app to remotely update DNS A and AAAA records hosted in Azure DNS. Useful if you need to remotely access your home network, but don't have a static public IP.

C# 100.00%

azuredynamicdns's Introduction

AzureDynamicDns

Function app to remotely update DNS A and AAAA records hosted in Azure DNS. Useful if you need to remotely access your home network, but don't have a static public IP.

Usage instructions:

  1. Create new function app using Azure portal/cli, use consumption plan for minimal costs
  2. Enable system assigned identity for function app
  3. Assign DNS Zone Contributor role access to function app's managed identity at DNS zone or record level
  4. Publish function app
  5. Configure function app environment variables that identify the target DNS zone resource:
    • DNS_SUBSCRIPTION_ID
    • DNS_RESOURCE_GROUP
    • DNS_ZONE
  6. Update DNS A (IPv4) or AAAA (IPv6) record by HTTP POST or GET on following URL https://your_app.azurewebsites.net/api/UpdateDns?code=your_function_key&host=example&ip=203.0.113.1 whenever your IP address changes. Configure your router or other device on your network (e.g. Raspberry Pi) to do this automatically when your router's public IP address changes
  7. DNS TTL defaults to 900 seconds (15 minutes) but can be customised by appending &ttl= to the URL

azuredynamicdns's People

Contributors

cgreenza avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

carpenike

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.