IF Commons GitHub

logical/dns

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-estate-endpoints-readers FR-005

DNS zone files (the master file format of RFC 1035): every name that owns a record is a domain (signed where its zone has a DNSKEY at the apex), and a CNAME to another name of the zone links the two (resolves-to). The zone is read as text: $ORIGIN and $TTL are honoured, a record may span lines in parentheses, a missing owner is the one before, and a comment is dropped. Addresses and text are not copied.

import { importZone } from "./dns.ts";
importZone("z.db", "$ORIGIN example.test.\nwww IN A 192.0.2.1\n").assets.length; // 1

Source: commons/estate-endpoints/src/logical/dns.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

logical.importZonefunctionno test imports it
function importZone(source: string, text: string, origin?: string): Found

The names of a zone as domains, with the links of its CNAMEs. origin is the zone's name where the text does not say it.

importZonefunction
function importZone(source: string, text: string, origin?: string): Found

The names of a zone as domains, with the links of its CNAMEs. origin is the zone's name where the text does not say it.

Imported by 8 tests of the run (8 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.