Skip to content

fm dns ​

Reference for the fm dns command group (auto-generated from fm dns --help).

fm dns ​

text
Manage managed DNS zones and records.

Each primary zone is assigned a delegation nameserver set; delegate your domain
at your registrar to the zone's name servers (shown by "fm dns zone get").

Examples:
  fm dns zone create --name example.com. --email admin@example.com
  fm dns zone get <zone-id>
  fm dns record create <zone-id> --name www --type A --value 203.0.113.10

Usage:
  fm dns [command]

Available Commands:
  record      Manage DNS records
  zone        Manage DNS zones

Flags:
  -h, --help[=true|false]   help for dns

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

Use "fm dns [command] --help" for more information about a command.

fm dns record ​

text
Manage DNS records within a zone.

Usage:
  fm dns record [command]

Aliases:
  record, records, rr

Available Commands:
  create      Create a DNS record
  delete      Delete a DNS record
  get         Get DNS record details
  list        List DNS records
  tags        Read and replace a DNS record's resource tags
  update      Update a DNS record

Flags:
  -h, --help[=true|false]   help for record

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

Use "fm dns record [command] --help" for more information about a command.

fm dns record create ​

text
Create a DNS record (recordset) in a zone.

Use "@" as the name for the zone apex. Repeat --value for multiple values.
MX/SRV values include their priority in the value string.

--tag (repeatable) sets the record's resource tags. The tenant's default tags are
merged in, a key you set winning — at create only; afterwards
"fm dns record tags set" replaces the whole set.

Examples:
  fm dns record create <zone-id> --name www --type A --value 203.0.113.10
  fm dns record create <zone-id> --name www --type A --value 203.0.113.10 --tag env=prod
  fm dns record create <zone-id> --name @ --type MX --value "10 mail.example.com."
  fm dns record create <zone-id> --name www --type A --value 203.0.113.10 --value 203.0.113.11

Usage:
  fm dns record create <zone-id> [flags]

Flags:
      --comment string      record comment
  -h, --help[=true|false]   help for create
      --name string         record name, or @ for the apex (required)
      --tag strings         resource tag in key=value format (repeatable). The tenant's default tags are merged in; a key you set wins
      --ttl int             record TTL in seconds
      --type string         record type: A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR (required)
      --value stringArray   record value (repeatable)

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm dns record delete ​

text
Delete a DNS record from a zone.

Usage:
  fm dns record delete <zone-id> <record-id> [flags]

Flags:
  -h, --help[=true|false]   help for delete

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm dns record get ​

text
Get detailed information about a specific DNS record.

Usage:
  fm dns record get <zone-id> <record-id> [flags]

Flags:
  -h, --help[=true|false]   help for get

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm dns record list ​

text
List the records in a DNS zone.

--tag narrows the list to records carrying every given key=value tag.

Usage:
  fm dns record list <zone-id> [flags]

Flags:
  -h, --help[=true|false]   help for list
      --name string         filter by record name
      --tag strings         only records with this tag, key=value (repeatable; every one must match; key= matches an empty value)
      --type string         filter by record type

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm dns record tags ​

text
Read and replace a DNS record's resource tags

Usage:
  fm dns record tags [command]

Aliases:
  tags, tag

Available Commands:
  get         Show a DNS record's resource tags
  set         Replace a DNS record's resource tags

Flags:
  -h, --help[=true|false]   help for tags

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

Use "fm dns record tags [command] --help" for more information about a command.
fm dns record tags get ​
text
Show a DNS record's resource tags

Usage:
  fm dns record tags get <zone-id> <record-id> [flags]

Flags:
  -h, --help[=true|false]   help for get

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)
fm dns record tags set ​
text
Replace a DNS record's resource tags in place with exactly the given set
(replace semantics — any tag not listed is removed). Resource tags are your own
metadata for search and filtering: nothing else about the DNS record changes, and
the running service is not touched.

The set you pass IS the resulting set. To ADD one tag without disturbing the
others, read the current ones first with 'fm dns record tags get' and pass them all
back. Use --clear to remove every tag. The tenant's default tags are not
re-applied.

Only the tags change: the record's values, TTL and comment are left alone,
nothing is written to the name servers and the zone's serial does not move.

Keys beginning frostmoln_ or frostmoln- (any letter case) are reserved and
refused. At most 32 tags; a key is 1-64 bytes, a value at most 256 bytes.

Examples:
  fm dns record tags set zone-123 rec-456 --tag env=prod --tag owner=team-a
  fm dns record tags set zone-123 rec-456 --clear

Usage:
  fm dns record tags set <zone-id> <record-id> --tag <key=value> [--tag <key=value> ...] [flags]

Flags:
      --clear[=true|false]   remove ALL tags (mutually exclusive with --tag)
  -h, --help[=true|false]    help for set
      --tag strings          tag in key=value format (repeatable; replace semantics)

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm dns record update ​

text
Update a DNS record's values, TTL, or comment.

Passing --value replaces the entire value set. Only the flags you pass change.

Usage:
  fm dns record update <zone-id> <record-id> [flags]

Flags:
      --comment string      record comment
  -h, --help[=true|false]   help for update
      --ttl int             record TTL in seconds
      --value stringArray   record value (repeatable, replaces the whole set)

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm dns zone ​

text
Manage DNS zones.

Usage:
  fm dns zone [command]

Aliases:
  zone, zones

Available Commands:
  create      Create a DNS zone
  delete      Delete a DNS zone
  get         Get DNS zone details
  list        List DNS zones
  update      Update a DNS zone

Flags:
  -h, --help[=true|false]   help for zone

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

Use "fm dns zone [command] --help" for more information about a command.

fm dns zone create ​

text
Create a new DNS zone.

The zone name must be a fully qualified domain name ending with a dot.

Examples:
  fm dns zone create --name example.com. --email admin@example.com
  fm dns zone create --name example.com. --email admin@example.com --ttl 1800

Usage:
  fm dns zone create [flags]

Flags:
      --description string   zone description
      --email string         SOA admin contact email (required)
  -h, --help[=true|false]    help for create
      --name string          zone name as a FQDN ending with a dot (required)
      --tag strings          tags in key=value format (repeatable)
      --ttl int              default record TTL in seconds

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm dns zone delete ​

text
Delete a DNS zone and all of its records.

Usage:
  fm dns zone delete <zone-id> [flags]

Flags:
  -h, --help[=true|false]   help for delete

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm dns zone get ​

text
Get detailed information about a specific DNS zone, including its delegation name servers.

Usage:
  fm dns zone get <zone-id> [flags]

Aliases:
  get, show

Flags:
  -h, --help[=true|false]   help for get

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm dns zone list ​

text
List all DNS zones.

Usage:
  fm dns zone list [flags]

Flags:
  -h, --help[=true|false]   help for list
      --name string         filter by zone name

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)

fm dns zone update ​

text
Update a DNS zone's email, description, default TTL or tags.

Only the flags you pass are changed. --tag REPLACES the zone's tags with exactly
the given set, and --clear-tags removes them all.

An empty --tag ("") also still removes them all, but is deprecated: an unset
variable in a script (--tag "$TAGS") should not wipe the tags. Use --clear-tags.

Usage:
  fm dns zone update <zone-id> [flags]

Flags:
      --clear-tags[=true|false]   remove ALL tags (mutually exclusive with --tag)
      --description string        zone description
      --email string              SOA admin contact email
  -h, --help[=true|false]         help for update
      --tag strings               tags in key=value format (repeatable; replaces the whole set)
      --ttl int                   default record TTL in seconds

Global Flags:
      --config string           config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
  -d, --debug[=true|false]      enable debug/verbose output
      --no-color[=true|false]   disable colored output
  -o, --output string           output format: table, json, yaml, wide (default "table")
  -q, --quiet[=true|false]      suppress non-essential output
      --tenant string           tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)