A small piece of software for dynamically updating a DNS record for a Hostinger hosted domain.
Find a file
2026-06-02 22:28:38 -04:00
.idea Initial commit for updating A records. 2026-06-02 22:01:29 -04:00
.gitignore Initial commit 2026-06-02 21:08:38 -04:00
Dockerfile Updated Dockerfile to print out Python output. 2026-06-02 22:23:44 -04:00
LICENSE Initial commit 2026-06-02 21:08:38 -04:00
main.py Initial commit for updating A records. 2026-06-02 22:01:29 -04:00
README.md Update README.md 2026-06-02 22:28:38 -04:00
requirements.txt Initial commit for updating A records. 2026-06-02 22:01:29 -04:00

Hostinger-DDNS

A small piece of software for dynamically updating a DNS record for a Hostinger hosted domain.


Environment Variables

The following environment variables must be defined in your .env file:

  • DOMAIN
    The domain you want to check and/or modify.

  • SUBDOMAIN
    The subdomain you want to check and/or modify.

  • DNS_RECORD_TYPE
    The type of record you want to change.

  • TOKEN
    Your Hostinger token.


Docker Compose example

services:
  hostinger-ddns:
    build: .
    container_name: hostinger-ddns
    restart: unless-stopped
    environment:
      DOMAIN: "tannervanteeffelen.com"
      SUBDOMAIN: "pretzels"
      DNS_RECORD_TYPE: "A"
      HOSTINGER_TOKEN: "this1smy5up3r53cr3tt0k3nth4ty0uc4nth4v3"