1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
Files
stackexchange-dnscontrol/documentation/functions/domain/PURGE.md
Paul Dee 731181ffa1 DOCS: Mostly styling and links (#2178)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
2023-03-15 18:43:57 -04:00

45 lines
737 B
Markdown

---
name: PURGE
---
`PURGE` is the default setting for all domains. Therefore `PURGE` is
a no-op. It is included for completeness only.
A domain with a mixture of `NO_PURGE` and `PURGE` parameters will abide
by the last one.
These three examples all are equivalent.
`PURGE` is the default:
{% code title="dnsconfig.js" %}
```javascript
D("example.com", .... ,
);
```
{% endcode %}
Purge is the default, but we set it anyway:
{% code title="dnsconfig.js" %}
```javascript
D("example.com", .... ,
PURGE,
);
```
{% endcode %}
Since the "last command wins", this is the same as `PURGE`:
{% code title="dnsconfig.js" %}
```javascript
D("example.com", .... ,
PURGE,
NO_PURGE,
PURGE,
NO_PURGE,
PURGE,
);
```
{% endcode %}