Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Domain Name Server for Phen

Project description

Simple DNS server for sites based on Phen, or for keeping track of computers with dynamic IP addresses. Other plugins can use the internal extension mechanism to add records, e.g. the mail plugin can add MX and SPF records.

Example configuration file /device-id/system/dns.jcfg:

  "verbose": false,     # log requests (default false)
  "http-path": "dns",   # for IP update through http(s) request (requires the
                        # http plugin to be loaded; default "", i.e. disabled)
  # file that keeps the dynamic IP associations:
  "dyn-state": "/path/to/state file",  # default /device-id/system/dns.state
  "recursive": false,   # for non-authoritative servers (default false)
  "zones": {
    "": [
        "mname": "",         # type SOA implied
        "rname": "",
        "serial": 201512150,            # if -1, makes a serial based on date
        "refresh": "20 min",
        "retry": "5 min",
        "expire": "14 days",
        "minimum": "5 min"
      {"type": "A", "address": ""},
      {"type": "AAAA", "address": "2a01:4f8:c17:1bff::2"},
      {"type": "NS", "name": ""},
      {"subdomain": "ns1", "type": "A", "address": ""},
      {"subdomain": "www", "type": "A", "address": ""},
      {"subdomain": "opo",
       "type": "CNAME", "name": "some.dyndns.moo", "ttl": "5 min"},

      {"subdomain": "cxs", "type": "A",
       # identity fingerprint to retrieve the IP address:
       "dynamic": "mlUDK5IPJYwAD0D6aINCAIbcc20QFqw4CHqwaUSJSIk",
       "ttl": 300},

      {"subdomain": "poa", "type": "A",
       # sha256(my-secret-password) for updates through http:
"dynamic": ">a9c90c47c231afb31950169ccb89951337eb0689d31660e32c34835bb7018c0c",
       "ttl": 300}

Phen’s shell has the sha256 command that can be used to calculate the value for the dynamic attribute. The to update the dynamic dns entry, you can use a tool such as w3m or wget:

wget ""

If you are using a self-signed certificate, use the --no-check-certificate option. You only have to inform the IP address explicitly if it is different than the one from the originating request.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for phen.dns, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size (9.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page