URL(7)

NAME

url - serve zone data from an URL

DESCRIPTION

The url handler is used for serving zone data that is fetched from an URL. The most prominent example of this is downloading the root zone from https://www.internic.net/domain/root.zone ⟨https://www.internic.net/domain/root.zone⟩.

The server will reply with minimal responses by default. The url handler will watch the zone file and when it receives a (kernel) notify it will reload the zone after 2 seconds.

SYNTAX

    url FILE {
        URL
    }

•   FILE the zone file to save the data to and to serve from. If the path is relative, the path from the global root config will be prepended to it.

•   URL the URL to fetch the zone from, a scheme must be used. This may be used multiple times, in which subsequent URLs are used as backup and downloaded when the earlier URL doesn't work.

If the handler block specification contains multiple zones, they all will use the same FILE. And you must make sure that zone FILE is generic enough, i.e. use @ for zones instead of domain names.

EXAMPLES

Load the root zone from and save it in root.transferred.

    . {
        url root.transferred {
            https://www.internic.net/domain/root.zone
        }
    }