Menu

DNS

Host a domain's DNS on weird: zones and their nameservers, records by RRset, DNSSEC, and moving a live domain without interruption.

weird hosts the DNS of any domain, registered with weird or elsewhere. A zone holds a domain's records; each zone gets its own pair of nameservers, and the records take effect once the domain points at them.

Creating a zone#

$ weird dns create example.ro

The zone is created pending, with its nameserver pair. Add records, then point the domain at those nameservers at its registrar and ask for a check:

$ weird dns check example.ro

The delegation is also checked automatically, often in the first hours, so a zone goes live by itself; check just does it now. Once the domain points at the pair the zone becomes active and is served.

For a domain registered with weird, weird domains host example.ro creates the zone, copies the records the domain has today and tells you the nameservers; weird domains nameservers example.ro --use-weird-dns then switches it. Registering with --with-dns does both at once.

Zones are per domain and per account: you can hold one zone of a domain, and another account holding a zone of the same name is no obstacle (only the one the domain points at is served).

Credit charge: see the credit charges (contract dns.manage per_request)

Taken once when a zone is created, and again for each change of records; deleting a zone that never went live refunds its creation.

Credit charge: see the credit charges (contract recurring.dns-entry-hourly per_entry_hour)

Per record of a live zone (its own SOA and NS records excluded), billed by the hour; a full year of one record.

DNS answers served for a live zone are billed by use (contract dns.traffic-hourly, rate per_answer).

Records#

$ weird dns records example.ro$ weird dns set example.ro @ A 192.0.2.10$ weird dns set example.ro www CNAME app.example.net$ weird dns set example.ro @ MX 10 mail.example.net 20 backup.example.net$ weird dns set example.ro @ TXT "v=spf1 include:_spf.example.net -all"$ weird dns set example.ro @ TXT "site-verification=abc" --add$ weird dns delete example.ro www A

Records are set by RRset: all the records of one name and type together. Setting a name and type replaces every existing value of it, unless --add keeps the others. The name is @ for the domain itself or a name inside it (www, mail.eu); a target without a dot is a name inside the zone. --ttl sets the time-to-live in seconds (default: the zone's).

  • Types: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS and DS (below the apex), PTR, HTTPS, SVCB, TLSA and SSHFP.
  • A CNAME holds one value and never sits at the apex.
  • The apex NS records are the zone's nameserver pair and cannot be set.
  • Records another product wrote for you (a tunnel's hostname, a storage domain, a server's hostname, a one-command app) are managed by that product: change them through it. Writing over one is refused 409 managed-record.
  • The records replaced are not kept: to restore them, set them again.

A whole zone can be saved as a standard zone file and replaced from one:

$ weird dns export example.ro -o example.ro.zone$ weird dns import example.ro example.ro.zone

import replaces the zone's records with those of the file (a record the file does not hold is deleted); one refused record refuses the whole file. Keep an export first.

DNSSEC#

Every live zone is signed with DNSSEC (algorithm 13, ECDSA P-256 with SHA-256). To complete the chain of trust the domain's registrar needs the zone's DS record:

$ weird dns dnssec example.ro

For a domain registered with weird whose zone here is active, the DS record is published at the registry for you, at no charge, and kept in line whenever the domain is read (weird domains show example.ro). For a domain registered elsewhere, give the DS record to its registrar.

Moving a live domain to weird#

Moving a domain that already serves a site or mail should not interrupt either. weird reads what the domain publishes today and gives the safe order:

$ weird dns create example.ro$ weird dns move example.ro

The order is:

  1. Remove an old DS record at the current registrar, if the domain has one, and wait for its TTL to pass. A DS from the old provider left in place breaks the domain for validating resolvers the moment the nameservers change.

  2. Copy the current records into the zone while it is still pending, so it answers exactly like the domain does today:

    $ weird dns snapshot take example.ro$ weird dns seed example.ro --preview$ weird dns seed example.ro

    Records you already set win unless you pass --replace; a seed costs one record change in total.

  3. Lower the TTLs at the old DNS host a day before switching.

  4. Switch the nameservers at the registrar to the zone's pair, then run weird dns check example.ro.

  5. Add weird's DS record at the registrar (weird dns dnssec example.ro).

If records change at the old host after the seed, catch up before switching:

$ weird dns resync check example.ro$ weird dns resync preview example.ro$ weird dns resync apply example.ro

Zone states and events#

A zone is pending until the domain points at it, active while it is served, and suspended when it stops being served: when the domain no longer points at its nameservers, after a run of unpaid hours (its records are kept and it is served again once paid; left unpaid, it is deleted after a period announced beforehand; see billing), or after a review (restrictions).

$ weird dns events

lists what happened to your zones: went live, suspended, seeded.

Deleting a zone#

$ weird dns delete-zone example.ro

Deletes the zone and every record in it; a live zone stops answering at once and the domain stops resolving until its nameservers point elsewhere. It cannot be undone. Deleting a zone that never went live refunds its creation; deleting a live one refunds nothing.

Credit charge: see the credit charges (contract dns.zone-cancel per_request)

Taken when a zone is deleted (it may be free).

Reference#