mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
go generate (#2029)
This commit is contained in:
20
commands/types/dnscontrol.d.ts
vendored
20
commands/types/dnscontrol.d.ts
vendored
@@ -782,7 +782,7 @@ declare function MX(name: string, priority: number, target: string, ...modifiers
|
||||
declare function NAMESERVER(name: string, ...modifiers: RecordModifier[]): DomainModifier;
|
||||
|
||||
/**
|
||||
* TTL sets the TTL on the domain apex NS RRs defined by [NAMESERVER](NAMESERVER.md).
|
||||
* NAMESERVER_TTL sets the TTL on the domain apex NS RRs defined by [NAMESERVER](NAMESERVER.md).
|
||||
*
|
||||
* The value can be an integer or a string. See [TTL](../record/TTL.md) for examples.
|
||||
*
|
||||
@@ -1376,9 +1376,9 @@ declare function DEFAULTS(...modifiers: RecordModifier[]): void;
|
||||
*
|
||||
* ```javascript
|
||||
* DOMAIN_ELSEWHERE("example.com", REG_NAMEDOTCOM, ["ns1.foo.com", "ns2.foo.com"]);
|
||||
* ```
|
||||
*
|
||||
* // ...is equivalent to...
|
||||
*
|
||||
* ```javascript
|
||||
* D("example.com", REG_NAMEDOTCOM,
|
||||
* NO_PURGE,
|
||||
* NAMESERVER("ns1.foo.com"),
|
||||
@@ -1412,9 +1412,9 @@ declare function DOMAIN_ELSEWHERE(name: string, registrar: string, nameserver_na
|
||||
*
|
||||
* ```javascript
|
||||
* DOMAIN_ELSEWHERE_AUTO("example.com", REG_NAMEDOTCOM, DSP_AZURE);
|
||||
* ```
|
||||
*
|
||||
* // ...is equivalent to...
|
||||
*
|
||||
* ```javascript
|
||||
* D("example.com", REG_NAMEDOTCOM,
|
||||
* NO_PURGE,
|
||||
* DnsProvider(DSP_AZURE)
|
||||
@@ -1758,17 +1758,17 @@ declare function getConfiguredDomains(): string[];
|
||||
* One more important thing to note: `require_glob()` is as smart as `require()` is. It loads files always relative to the JavaScript
|
||||
* file where it's being executed in. Let's go with an example, as it describes it better:
|
||||
*
|
||||
* `dnscontrol.js`:
|
||||
*
|
||||
* {% code title="dnsconfig.js" %}
|
||||
* ```javascript
|
||||
* require("domains/index.js");
|
||||
* ```
|
||||
* {% endcode %}
|
||||
*
|
||||
* `domains/index.js`:
|
||||
*
|
||||
* {% code title="domains/index.js" %}
|
||||
* ```javascript
|
||||
* require_glob("./user1/");
|
||||
* ```
|
||||
* {% endcode %}
|
||||
*
|
||||
* This will now load files being present underneath `./domains/user1/` and **NOT** at below `./domains/`, as `require_glob()`
|
||||
* is called in the subfolder `domains/`.
|
||||
@@ -1925,7 +1925,7 @@ declare function R53_ZONE(zone_id: string): DomainModifier & RecordModifier;
|
||||
* (inlining) includes and removing duplicates. DNSControl also makes
|
||||
* it easier to document your SPF configuration.
|
||||
*
|
||||
* **Warning:** Flattening SPF includes is risky. Only flatten an SPF
|
||||
* WARNING: Flattening SPF includes is risky. Only flatten an SPF
|
||||
* setting if it is absolutely needed to bring the number of "lookups"
|
||||
* to be less than 10. In fact, it is debatable whether or not ISPs
|
||||
* enforce the "10 lookup rule".
|
||||
|
Reference in New Issue
Block a user