{"id":20154337,"url":"https://github.com/max-pfeiffer/simple-dynamic-dns-aws","last_synced_at":"2026-05-08T20:33:00.194Z","repository":{"id":249628600,"uuid":"831649642","full_name":"max-pfeiffer/simple-dynamic-dns-aws","owner":"max-pfeiffer","description":"Cost efficient Dynamic DNS with AWS Lamda and Route 53","archived":false,"fork":false,"pushed_at":"2025-09-20T10:42:51.000Z","size":208,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T12:30:08.151Z","etag":null,"topics":["aws","aws-lambda","dns","dns-server","dynamic-dns","infrastructure-as-code","opentofu"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/max-pfeiffer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-21T07:55:01.000Z","updated_at":"2025-09-20T10:41:21.000Z","dependencies_parsed_at":"2024-07-22T10:46:46.895Z","dependency_job_id":"749051cf-b3e1-4f28-b5c8-f54558db1359","html_url":"https://github.com/max-pfeiffer/simple-dynamic-dns-aws","commit_stats":null,"previous_names":["max-pfeiffer/dynamic-dns-aws","max-pfeiffer/simple-dynamic-dns-aws"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/max-pfeiffer/simple-dynamic-dns-aws","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-pfeiffer%2Fsimple-dynamic-dns-aws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-pfeiffer%2Fsimple-dynamic-dns-aws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-pfeiffer%2Fsimple-dynamic-dns-aws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-pfeiffer%2Fsimple-dynamic-dns-aws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/max-pfeiffer","download_url":"https://codeload.github.com/max-pfeiffer/simple-dynamic-dns-aws/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-pfeiffer%2Fsimple-dynamic-dns-aws/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32795924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-lambda","dns","dns-server","dynamic-dns","infrastructure-as-code","opentofu"],"created_at":"2024-11-13T23:26:13.200Z","updated_at":"2026-05-08T20:33:00.189Z","avatar_url":"https://github.com/max-pfeiffer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![codecov](https://codecov.io/gh/max-pfeiffer/simple-dynamic-dns-aws/graph/badge.svg?token=8btmoZksZb)](https://codecov.io/gh/max-pfeiffer/simple-dynamic-dns-aws)\n![pipeline workflow](https://github.com/max-pfeiffer/simple-dynamic-dns-aws/actions/workflows/pipeline.yaml/badge.svg)\n\n# Simple Dynamic DNS with AWS\nSimple and cost-efficient Dynamic DNS build with AWS Lamda and Route 53.\n\nThis project provides an AWS Lambda function with which you can set **A-records** dynamically for **one** domain\nyou have configured in AWS Route 53. For authentication, a token is used which is stored using AWS Secrets Manager.\n\nThis project uses an ARM64 Docker image as it is more cost-efficient to run AWS Lambda functions on ARM64 architecture.\n\nUsually consumer grade routers (Linksys, AVM, etc.) provide a dynamic DNS feature which just supports calling a URL with\nHTTP GET method. All dynamic DNS settings need to be sent via URL query parameters.\n\nPlease also have a look at my [dynamic-dns-update-client](https://github.com/max-pfeiffer/dynamic-dns-update-client)\ncompanion project. I created a CLI tool for sending IP address updates to dynamic DNS Servers or Dynamic DNS solution\nlike this here.\n\n## Usage\n### OpenTofu\nI like infrastructure-as-code, so deployment is fully automated with [OpenTofu](https://opentofu.org/).\n\nPrerequisites:\n* [AWS CLI installed](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) and configured\n* [OpenTofu installed](https://opentofu.org/docs/intro/install/)\n\nIn `opentofu` directory create your own `credentials.auto.tfvars` from `credentials.auto.tfvars.example` file\nand edit it to your liking:\n```shell\n$ cp credentials.auto.tfvars.example credentials.auto.tfvars\n$ vim credentials.auto.tfvars\n```\n\nThen do in `opentofu` directory what you usually need to do for [OpenTofu](https://opentofu.org/) provisioning:\n```shell\n$ tofu init\n$ tofu plan\n$ tofu apply\n```\nThe infrastructure state isn't persisted in this repository as this is public. So you probably want to\nfork/clone this repository and tweak the [.gitignore](.gitignore) file to your liking.\n\nThe Lambda function URL and API token are provided as output. As `api_token` is marked as security sensitive you need\nto call for it specifically:\n```shell\n$ tofu output lambda_function_url\n$ tofu output api_token\n```\n\n### Manual configuration\nIf you really want, you can also provision the AWS resources manually without [OpenTofu](https://opentofu.org/):\n1. Create a private container registry in AWS ECR\n2. Build and push the Docker image to that registry:\n   ```shell\n    aws ecr get-login-password --region \u003cyour region\u003e | docker login --username AWS --password-stdin \u003cyour ECR registry\u003e\n    docker build -t simple-dyn-dns --platform linux/arm64 -f ./container/Dockerfile .\n    docker tag simple-dyn-dns:latest \u003cyour ECR registry\u003esimple-dyn-dns:latest\n    docker push \u003cyour ECR registry\u003e/simple-dyn-dns:latest\n   ```\n3. Add secret in AWS Secrets Manager:\n   1. configure a secure token for your client_id\n4. [Create a AWS Lambda function](https://docs.aws.amazon.com/lambda/latest/dg/getting-started.html):\n   1. use the just created Docker image from AWS ECR for the function\n   2. [configure environment variables for the function](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html):\n      1. ROUTE_53_HOSTED_ZONE_ID (required)\n      2. ROUTE_53_RECORD_TTL (optional, default=3600sec)\n      3. SECRETS_MANAGER_REFRESH_INTERVAL (optional, default=86400sec)\n   3. [configure an URL for AWS Lambda function](https://docs.aws.amazon.com/lambda/latest/dg/urls-configuration.html)\n   4. [configure permissions for AWS Lambda function (execution role)](https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html):\n      1. read secret from AWS Secrets Manager\n      2. read and write DNS Records with AWS Route 53\n\n### Router configuration\n#### Web UI\nMany routers have a web user interface which lets you configure a Dyn DNS server by calling a URL. \nConfigure your router to call the AWS Lambda function URL with query parameters like this:\n`https://uwigefgf8437rgeydbea2q40jedbl.lambda-url.eu-central-1.on.aws/?domain=www.example.com\u0026ip=123.45.56.78\u0026client_id=myrouter\u0026token=78234rtgf438g7g43r4bfi3784fgh`\n\n#### OpenWRT\nIf you own a router with an [OpenWRT](https://openwrt.org/) operating system, you can also configure a\n[dynamic DNS client through the LuCI web interface](https://openwrt.org/docs/guide-user/services/ddns/client)\nor by other means.\n\nI personally found that quite cumbersome and error-prone. Plus, I could not cover my use case with it properly, so I\nwrote my own [dynamic-dns-update-client](https://github.com/max-pfeiffer/dynamic-dns-update-client).\nIt's easy to install on OpenWrt (if you happen to have some MB of free storage space).\n[After installing it](https://github.com/max-pfeiffer/dynamic-dns-update-client?tab=readme-ov-file#openwrt),\nyou can you run it like this:\n```shell\n$ dynamic-dns-update-client https://uwigefgf8437rgeydbea2q40jedbl.lambda-url.eu-central-1.on.aws/ \\\n      --ip-address-provider openwrt_network \\\n      --ip-address-url-parameter-name ip \\\n      --url-parameter domain=www.example.com \\\n      --url-parameter client_id=myrouter \\\n      --url-parameter token=78234rtgf438g7g43r4bfi3784fgh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-pfeiffer%2Fsimple-dynamic-dns-aws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmax-pfeiffer%2Fsimple-dynamic-dns-aws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-pfeiffer%2Fsimple-dynamic-dns-aws/lists"}