Decide when a learned model is the right tool for a DNS problem.

Here is the most important line in Module 3, and one to carry into every design conversation. A clean boundary runs through DNS. The part that decides whether an answer is valid must stay deterministic, because correctness in DNS is not a matter of probability. A model has no business deciding whether a signature validates or a delegation is genuine. Prediction belongs above that line, in choosing among answers that are all already valid: which site, which TTL, which name to send to a human queue.

A helpful picture a model may choose which of three open doors to send you through, but it must never decide whether a door is real.

Prediction wins when…

A rule wins when…

The pattern is real but too complex to write down; conditions change faster than you can retune; being slightly wrong is cheap and recoverable; and you have enough labelled or baseline data.

The logic is knowable and stable; being wrong is severe or irreversible; you must explain the decision to an auditor or regulator; or the event is so rare that the base rate defeats you.

Examples: capacity forecasting, latency-aware steering, adaptive TTL, ranking suspicious names for a human queue.

Examples: DNSSEC validation, delegation, blocklist enforcement, failover on a failed health check.

The decision flow underneath gives you five quick questions:

  1. Can you write the rule? If yes, write it, and stop here. Rules are cheaper, faster, easy to explain and easy to roll back. A surprising share of proposed DNS machine learning projects fail this first question.
  2. Is the pattern stable? If it shifts weekly, a static rule will go stale.
  3. Is being wrong cheap? If not, keep a human or a rule in the path. Choosing a slightly slower site among three healthy ones costs a few milliseconds, which is recoverable. Getting validation wrong is not.
  4. Do you have data? You need labels or a clean baseline period. If not, collect first.
  5. Then model it, and hold it to the stated baseline.

Determinism is not a limitation. DNS is correct because it is deterministic. Prediction belongs on top of that layer, never inside the part that decides whether an answer is valid at all.