Removes all records of the given domain from the internal DNS cache; with the * star, the whole cache. In a Unix shell the star is escaped with a backslash.
It helps when the receiver’s MX records or addresses have changed while the node still goes by the old cached ones: the next delivery requests them anew.
It changes node state, but harmlessly: messages and settings are not touched, only the number of queries to the name server grows.
When to call it:
| Question | This command or not |
|---|---|
| the node goes to the receiver’s old MX | yes — the receiver’s domain |
| the receiver does not see a new record for our domain | no — that is its cache |
| what the name server answers now | no — resolve |
# flush one domain's records and the whole cache pmta clear dnscache example.compmta clear dnscache \*
2 relations
pmta resolve example.com
3 articles
◇What the node tells about itself and through which channelsSeven observation surfaces: the web monitor, the console in four formats, the log, accounting, accounting search, metrics and export to external analytics.◇The watchdog that restarts the engineKeeps an eye on the engine and brings it back up after a crash by itself, sending a crash report to the postmaster address.◇What makes a virtual machine riskyRunning on a virtual machine is possible, but the manual does not recommend it without sufficient hardware and properly tuned hypervisor settings: under load the node may stop responding.