Skip to content

black.box Unzoner DNS server

License

Notifications You must be signed in to change notification settings

belodetek/unzoner-dns

Repository files navigation

unzoner-dns

black.box Unzoner DNS server, inspired by this post

This block implements a simple DNS server, which responds to A and AAAA dns queries, using responses from Unzoner API backend. The format for the DNS query follows {{alpha-2}}.{{dns_sub_domain}}.{{dns_domain}}. ISO-3166 country codes are described here (e.g.)

$ dig +short CA.blackbox.unzoner.com
174.138.72.255

Delegate your {{dns_sub_domain}} under {{dns_domain}} to the endpoint running the DNS server and ensure public access to 53/udp port (e.g.)

$ dig +short NS blackbox.unzoner.com
ns1.blackbox.unzoner.com.

usage

  • ensure the API backend is deployed and configured
  • add the latest unzoner-dns block to your balenaCloud fleet composition (e.g. amd64)
version: '2.4'

services:
  unzoner-api:
    ...

  unzoner-dns:
    # https://www.balena.io/docs/learn/develop/blocks/#using-your-block-in-other-projects
    image: bh.cr/belodetek/unzoner-dns-amd64
    restart: unless-stopped
    ports:
      - "53:53/udp"
    # https://www.balena.io/docs/reference/supervisor/docker-compose/#labels
    labels:
      io.balena.update.strategy: download-then-kill
  • set API_SECRET fleet environment variable to match API backend

About

black.box Unzoner DNS server

Resources

License

Stars

Watchers

Forks

Languages