| 1 |
.\" Generated by Mmark Markdown Processor - mmark.miek.nl |
| 2 |
.TH "URL" 7 "August 2026" "atomdns handlers" "atomdns authors" |
| 3 |
|
| 4 |
.SH "NAME" |
| 5 |
.PP |
| 6 |
\fIurl\fP \- serve zone data from an URL |
| 7 |
|
| 8 |
.SH "DESCRIPTION" |
| 9 |
.PP |
| 10 |
The \fIurl\fP handler is used for serving zone data that is fetched from an URL. The most prominent example of |
| 11 |
this is downloading the root zone from https://www.internic.net/domain/root.zone |
| 12 |
\[la]https://www.internic.net/domain/root.zone\[ra]. |
| 13 |
|
| 14 |
.PP |
| 15 |
The server will reply with minimal responses by default. The \fIurl\fP handler will watch the zone file and when |
| 16 |
it receives a (kernel) notify it will reload the zone after 2 seconds. |
| 17 |
|
| 18 |
.SH "SYNTAX" |
| 19 |
.PP |
| 20 |
.RS |
| 21 |
|
| 22 |
.nf |
| 23 |
url FILE { |
| 24 |
URL |
| 25 |
} |
| 26 |
|
| 27 |
.fi |
| 28 |
.RE |
| 29 |
|
| 30 |
.IP \(bu 4 |
| 31 |
\fBFILE\fP the zone file to save the data to and to serve from. If the path is relative, the path from the |
| 32 |
global root config will be prepended to it. |
| 33 |
.IP \(bu 4 |
| 34 |
\fBURL\fP the URL to fetch the zone from, a scheme must be used. This may be used multiple times, in which |
| 35 |
subsequent URLs are used as backup and downloaded when the earlier URL doesn't work. |
| 36 |
|
| 37 |
|
| 38 |
.PP |
| 39 |
If the handler block specification contains multiple zones, they all will use the \fIsame\fP \fBFILE\fP. And you must make |
| 40 |
sure that zone \fBFILE\fP is generic enough, i.e. use \fB\fC@\fR for zones instead of domain names. |
| 41 |
|
| 42 |
.SH "EXAMPLES" |
| 43 |
.PP |
| 44 |
Load the root zone from and save it in \fB\fCroot.transferred\fR. |
| 45 |
|
| 46 |
.PP |
| 47 |
.RS |
| 48 |
|
| 49 |
.nf |
| 50 |
\&. { |
| 51 |
url root.transferred { |
| 52 |
https://www.internic.net/domain/root.zone |
| 53 |
} |
| 54 |
} |
| 55 |
|
| 56 |
.fi |
| 57 |
.RE |