dnscontrol/documentation/functions/record/LOC_BUILDER_STRING.md

1.5 KiB
Raw Blame History

name parameters parameter_types
LOC_BUILDER_STR
subdomain
input_string
altitude
ttl
subdomain input_string altitude ttl
string string float32 int

LOC_BUILDER_STR({}) actually takes an object with the mentioned properties.

A helper to build LOC records. Supply three parameters instead of 12.

Internally assumes some defaults for LOC records.

Accepts a string and tries all LOC_BUILDER_DM*_STR({}) methods:

{% code title="dnsconfig.js" %}

D("example.com","none"
  , LOC_BUILDER_STR({
    label: "old-faithful",
    str: '44.46046°N 110.82815°W',
    alt: 2240,
  })
  , LOC_BUILDER_STR({
    label: "ribblehead-viaduct",
    str: '54.210436°N 2.370231°W',
    alt: 300,
  })
  , LOC_BUILDER_STR({
    label: "guinness-brewery",
    str: '53°2040″N 6°1720″W',
    alt: 300,
  })
);

{% endcode %}

Part of the series: