Skip to main content


dns_cache stats, dns_cache refcnts, dns_cache submit, dns_cache lookup — manage Momentum's DNS cache


dns_cache lookup { record } { type }

dns_cache refcnts

dns_cache stats

dns_cache submit { record } { type }


The following commands help you to collect information on Momentum's dns cache.

dns_cache stats shows summary statistics about the MTA's dns cache.

dns_cache refcnts shows the count of references of each entry in the MTA's dns cache. A cache entry can only be purged when its reference count becomes zero.

dns_cache submit record type submits a dns query, whose result will be stored in cache if not already.

dns_cache lookup record type looks up a dns query in the cache.

record type can be A, MX, PTR, X, X_AAAA, TXT, AAAA, or CNAME.

10:47:35 /tmp/2025> dns_cache lookup A
Cached result not found, try a submit.
16:59:26 ecelerity(/tmp/2025)> dns_cache submit A
16:59:32 ecelerity(/tmp/2025)> dns_cache lookup A
;         IN      A

;; ANSWER SECTION:          299     IN      A

16:59:33 ecelerity(/tmp/2025)> dns_cache stats
DNS Queries:
        TXT: 1
        PTR: 1
         MX: 1
          A: 2
  arpa IPv4: 0
  arpa IPv6: 0

DNS responses:
      Total: 5
        Bad: 0

DNS cache:
    Lookups: 14
   Hit Rate: 35.7143%

16:59:41 ecelerity(/tmp/2025)> dns_cache refcnts
[  3] [213s]
[  3] [282s]
[  3] [248s]
[  3] [272s]


These console commands manipulate the DNS cache . The dig, refresh domain and domain commands manipulate the route cache .

Was this page helpful?