Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.

Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (9.8 kB) Copy SHA256 Checksum SHA256 Source Jan 1, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting