github.com/hexonet/dnscontrol@v0.2.8/docs/_functions/domain/NO_PURGE.md (about)

     1  ---
     2  name: NO_PURGE
     3  ---
     4  
     5  NO_PURGE indicates that records should not be deleted from a domain.
     6  Records will be added and updated, but not removed.
     7  
     8  NO_PURGE is generally used in very specific situations:
     9  
    10  * A domain is managed by some other system and DNSControl is only used to insert a few specific records and/or keep them updated. For example a DNS Zone that is managed by ActiveDirectory, but DNSControl is used to update a few, specific, DNS records. In this case we want to specify the DNS records we are concerned with but not delete all the other records.  This is a risky use of NO_PURGE since, if NO_PURGE was removed (or buggy) there is a chance you could delete all the other records in the zone, which could be a disaster. That said, domains with some records updated using Dynamic DNS have no other choice.
    11  * To work-around a pseudo record type that is not supported by DNSControl. For example some providers have a fake DNS record type called "URL" which creates a redirect. DNSControl normally deletes these records because it doesn't understand them. NO_PURGE will leave those records alone.
    12  
    13  In this example DNSControl will insert "foo.example.com" into the
    14  zone, but otherwise leave the zone alone.  Changes to "foo"'s IP
    15  address will update the record. Removing the A("foo", ...) record
    16  from dnscontrol will leave the record in place.
    17  
    18  {% include startExample.html %}
    19  {% highlight js %}
    20  D("example.com", .... , NO_PURGE,
    21    A("foo","1.2.3.4")
    22  );
    23  {%endhighlight%}
    24  {% include endExample.html %}
    25  
    26  The main caveat of NO_PURGE is that intentionally deleting records
    27  becomes more difficult. Suppose a NO_PURGE zone has an record such
    28  as A("ken", "1.2.3.4"). Removing the record from dnsconfig.js will
    29  not delete "ken" from the domain. DNSControl has no way of knowing
    30  the record was deleted from the file  The DNS record must be removed
    31  manually.  Users of NO_PURGE are prone to finding themselves with
    32  an accumulation of orphaned DNS records. That's easy to fix for a
    33  small zone but can be a big mess for large zones.
    34  
    35  Not all providers support NO_PURGE. For example the BIND provider
    36  rewrites zone files from scratch each time, which precludes supporting
    37  NO_PURGE.  DNSControl will exit with an error if NO_PURGE is used
    38  on a driver that does not support it.
    39  
    40  There is also `PURGE` command for completeness. `PURGE` is the
    41  default, thus this command is a no-op.