2017-08-15 10:46:31 -07:00
|
|
|
---
|
|
|
|
name: PURGE
|
|
|
|
---
|
|
|
|
|
2023-03-15 23:43:57 +01:00
|
|
|
`PURGE` is the default setting for all domains. Therefore `PURGE` is
|
2017-08-15 10:46:31 -07:00
|
|
|
a no-op. It is included for completeness only.
|
|
|
|
|
2023-03-15 23:43:57 +01:00
|
|
|
A domain with a mixture of `NO_PURGE` and `PURGE` parameters will abide
|
2017-08-15 10:46:31 -07:00
|
|
|
by the last one.
|
|
|
|
|
|
|
|
These three examples all are equivalent.
|
|
|
|
|
2023-03-15 23:43:57 +01:00
|
|
|
`PURGE` is the default:
|
2017-08-15 10:46:31 -07:00
|
|
|
|
2023-03-13 21:30:21 +01:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 13:56:20 +01:00
|
|
|
```javascript
|
2023-05-24 22:09:22 +02:00
|
|
|
D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
|
2017-08-15 10:46:31 -07:00
|
|
|
);
|
2022-02-17 18:22:31 +01:00
|
|
|
```
|
2023-03-13 21:30:21 +01:00
|
|
|
{% endcode %}
|
2017-08-15 10:46:31 -07:00
|
|
|
|
|
|
|
Purge is the default, but we set it anyway:
|
|
|
|
|
2023-03-13 21:30:21 +01:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 13:56:20 +01:00
|
|
|
```javascript
|
2023-05-24 22:09:22 +02:00
|
|
|
D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
|
2017-08-15 10:46:31 -07:00
|
|
|
PURGE,
|
|
|
|
);
|
2022-02-17 18:22:31 +01:00
|
|
|
```
|
2023-03-13 21:30:21 +01:00
|
|
|
{% endcode %}
|
2017-08-15 10:46:31 -07:00
|
|
|
|
|
|
|
Since the "last command wins", this is the same as `PURGE`:
|
|
|
|
|
2023-03-13 21:30:21 +01:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 13:56:20 +01:00
|
|
|
```javascript
|
2023-05-24 22:09:22 +02:00
|
|
|
D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
|
2017-08-15 10:46:31 -07:00
|
|
|
PURGE,
|
|
|
|
NO_PURGE,
|
|
|
|
PURGE,
|
|
|
|
NO_PURGE,
|
|
|
|
PURGE,
|
|
|
|
);
|
2022-02-17 18:22:31 +01:00
|
|
|
```
|
2023-03-13 21:30:21 +01:00
|
|
|
{% endcode %}
|