Menu

weird dns

DNS zones and records hosted with weird.

weird dns [flags]

DNS zones hosted with weird: the records of your domains.

weird dns create example.ro                 host a domain's DNS (gives you its nameservers)
weird dns list                              your zones
weird dns records example.ro                every record of a zone
weird dns set example.ro www A 192.0.2.10   create or replace a record
weird dns delete example.ro www A           delete a record
weird dns check example.ro                  after switching nameservers: check now
weird dns export example.ro -o zone.txt     the zone as a file; import does the reverse

Moving a live domain? weird dns move example.ro gives the safe order of steps; weird dns snapshot take + weird dns seed copy its current records.

Every record change spends credits (charge key dns.manage, in weird credits charges); you are asked before any credits are taken.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Subcommands: check, create, delete, delete-zone, dnssec, events, export, import, list, move, records, resync, seed, set, snapshot.

weird dns check#

Check now whether the domain points at its zone (after switching nameservers).

weird dns check <domain> [flags]

Runs the nameserver check at once instead of waiting for its next turn; a zone the domain now points at goes live. Free.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: checkDnsZoneNow.

weird dns create#

Host a domain's DNS with weird (gives you its nameservers).

weird dns create <domain> [flags]

Creates the domain's DNS zone with its own pair of nameservers. Add records, then point the domain at those nameservers at its registrar and run weird dns check. Deleting a zone that never went live refunds its creation. For a domain registered with weird, weird domains host also copies its current records.

Cost, in credits (every credit charge is in weird credits charges): dns.manage per_request, taken before it runs (returned if it fails); recurring.dns-entry-hourly per_entry_hour × records, taken every hour while it exists; dns.traffic-hourly per_answer, taken for what is used. You are shown the credits it takes and asked first.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: createDnsZone.

weird dns delete#

Delete the records of a name (of one type, if given).

weird dns delete <domain> <name> [type] [flags]

Deletes every record of the name, or only those of one type.

weird dns delete example.ro www A
weird dns delete example.ro old            every record of old.example.ro

To delete the whole zone: weird dns delete-zone <domain>.

Cost, in credits (every credit charge is in weird credits charges): dns.manage per_request, taken before it runs (returned if it fails); dns.reads per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getDnsZone, deleteDnsRecord.

weird dns delete-zone#

Delete a DNS zone and all its records (cannot be undone).

weird dns delete-zone <domain> [flags]

Deletes the zone and every record in it. A live zone stops answering at once: the domain stops resolving until its nameservers point elsewhere. Deleting a zone that never went live refunds its creation.

Cost, in credits (every credit charge is in weird credits charges): dns.zone-cancel per_request, taken before it runs (returned if it fails); dns.reads per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getDnsZone, deleteDnsZone.

weird dns dnssec#

The DNSSEC (DS) record to give the domain's registrar.

weird dns dnssec <domain> [flags]

Every live zone is signed with DNSSEC. To complete the chain of trust, the domain's registrar needs this DS record. For domains registered with weird it is published for you.

Cost, in credits (every credit charge is in weird credits charges): dns.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getDnsZoneDnssec.

weird dns events#

What happened to your zones: went live, suspended, seeded….

weird dns events [flags]

What happened to your zones: went live, suspended, seeded….

Cost, in credits (every credit charge is in weird credits charges): dns.reads per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--afterstringonly events after this one (the last id seen)
--limitstringhow many (1 to 500)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listDnsEvents.

weird dns export#

Save a zone as a standard zone file.

weird dns export <domain> [flags]

Prints the zone as a standard (RFC 1035) zone file, or saves it with -o.

weird dns export example.ro > example.ro.zone
weird dns export example.ro -o example.ro.zone

Cost, in credits (every credit charge is in weird credits charges): dns.reads per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--forcebooloverwrite the file if it exists
--output, -ostringwrite to this file instead of the screen

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: exportDnsZone.

weird dns import#

Replace a zone's records with those of a zone file.

weird dns import <domain> <file|-> [flags]

REPLACES the zone's records with those of a standard zone file ("-" reads standard input): a record the file doesn't hold is deleted. The zone's own SOA and nameserver records are managed by weird and skipped, as are lines that can't be read (listed afterwards). One refused record refuses the whole file and changes nothing.

weird dns export example.ro -o backup.zone     keep a copy first
weird dns import example.ro example.ro.zone

Cost, in credits (every credit charge is in weird credits charges): dns.manage per_request, taken before it runs (returned if it fails). You are shown the credits it takes and asked first.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: importDnsZone.

weird dns list#

Your DNS zones.

weird dns list [flags]

Also: weird dns zones.

Your DNS zones.

Cost, in credits (every credit charge is in weird credits charges): dns.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listDnsZones.

weird dns move#

The safe order of steps to move a live domain's DNS to weird.

weird dns move <domain> [flags]

Reads what the domain publishes today (an old DNSSEC record left in place breaks the domain the moment the nameservers change) and lists the safe order of steps, with the record lifetimes to lower first.

Cost, in credits (every credit charge is in weird credits charges): dns.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getDnsMigrationAdvice.

weird dns records#

Every record of a zone, its state and its nameservers.

weird dns records <domain> [flags]

Also: weird dns show.

Every record of a zone, its state and its nameservers.

Cost, in credits (every credit charge is in weird credits charges): dns.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getDnsZone.

weird dns resync#

Catch up a seeded zone with changes made at the old DNS host.

weird dns resync [flags]

While a seeded zone waits for the nameserver switch, the domain's records may still change at its current DNS host. weird re-reads them every few hours by itself; these commands do it now and apply the difference.

weird dns resync check example.ro      re-read the live DNS and show what changed
weird dns resync preview example.ro    what applying would write
weird dns resync apply example.ro      write it (records you edited here are kept)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Subcommands: apply, check, preview.

weird dns resync apply#

Write the re-sync into the zone.

weird dns resync apply <domain> [flags]

Write the re-sync into the zone.

Cost, in credits (every credit charge is in weird credits charges): dns.manage per_request, taken before it runs (returned if it fails); dns.reads per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--overwrite-editedboolalso overwrite records you edited here since the seed
--snapshotstringthe re-read to use (default: the newest)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: previewDnsResync, applyDnsResync.

weird dns resync check#

Re-read the domain's live DNS and show what changed since the seed.

weird dns resync check <domain> [flags]

Re-read the domain's live DNS and show what changed since the seed.

Cost, in credits (every credit charge is in weird credits charges): dns.manage per_request, taken before it runs (returned if it fails). You are shown the credits it takes and asked first.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: resyncDnsZone.

weird dns resync preview#

What applying the re-sync would write.

weird dns resync preview <domain> [flags]

What applying the re-sync would write.

Cost, in credits (every credit charge is in weird credits charges): dns.reads per_request per successful request. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--overwrite-editedboolalso overwrite records you edited here since the seed
--snapshotstringthe re-read to use (default: the newest)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: previewDnsResync.

weird dns seed#

Fill a zone that isn't live yet from a copy of the domain's live DNS.

weird dns seed <domain> [flags]

Writes a snapshot's records into a zone that isn't live yet, so it answers exactly like the domain does today before you switch nameservers. Shows the plan first. By default records you already set win (merge); --replace takes the copy's instead. It spends the credits of one record change in total.

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

Cost, in credits (every credit charge is in weird credits charges): dns.manage per_request, taken before it runs (returned if it fails). You are shown the credits it takes and asked first.

FlagTypeDefaultMeaning
--previewboolonly show what would be written
--replacebooltake the copy's records over the ones you set
--snapshotstringthe copy to use (default: the newest usable one)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: previewDnsSeed, seedDnsZone.

weird dns set#

Create or replace a DNS record (shows what changed).

weird dns set <domain> <name> <type> <value...> [flags]

Creates or replaces the records of one name and type. The name is "@" for the domain itself, or a name inside it ("www", "mail.eu").

weird dns set example.ro @ A 192.0.2.10
weird dns set example.ro @ A 192.0.2.10 192.0.2.11        two A records
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   keep the other TXT records
weird dns set example.ro _sip._tcp SRV 10 5 5060 sip.example.net
weird dns set example.ro @ CAA 0 issue letsencrypt.org

Setting replaces every existing value of that name and type, unless --add. A target without a dot is a name inside the zone ("mail" is mail.example.ro). Supported types: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS, DS, PTR, HTTPS, SVCB, TLSA, SSHFP.

Cost, in credits (every credit charge is in weird credits charges): dns.manage per_request, taken before it runs (returned if it fails); dns.reads per_request per successful request. You are shown the credits it takes and asked first. A refused or failed call is free of the per-request charges.

FlagTypeDefaultMeaning
--addbooladd to the existing records of this name and type instead of replacing them
--ttlint0time-to-live in seconds (default: the zone's)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getDnsZone, upsertDnsRecords.

weird dns snapshot#

Copies of a domain's live DNS (to fill a new zone from).

weird dns snapshot [flags]

A snapshot reads the records a domain has on the internet right now, from its current nameservers, and keeps the copy. A zone that isn't live yet can then be filled from it with weird dns seed.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Subcommands: list, show, take.

weird dns snapshot list#

The copies kept for a zone, newest first.

weird dns snapshot list <domain> [flags]

The copies kept for a zone, newest first.

Cost, in credits (every credit charge is in weird credits charges): dns.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: listDnsSnapshots.

weird dns snapshot show#

One copy with its records.

weird dns snapshot show <domain> <id> [flags]

One copy with its records.

Cost, in credits (every credit charge is in weird credits charges): dns.reads per_request per successful request. A refused or failed call is free of the per-request charges.

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: getDnsSnapshot.

weird dns snapshot take#

Copy the domain's live DNS now.

weird dns snapshot take <domain> [flags]

Copy the domain's live DNS now.

Cost, in credits (every credit charge is in weird credits charges): dns.manage per_request, taken before it runs (returned if it fails). You are shown the credits it takes and asked first.

FlagTypeDefaultMeaning
--discoverboolalso look up names known from certificate logs (slower)
--namesstringextra names to read, comma-separated (e.g. shop,api.eu)

Global flags: --api-key, --idempotency-key, --json, --lang, --no-input, --quiet, --yes.

Calls: takeDnsSnapshot.

This page is generated from the weird CLI; it changes when the CLI does.