Distinguish the four ML families and the question each one answers.

Machine learning is not one tool. It is four families, and each one answers a different question. Matching the question to the family matters more than choosing the clever algorithm inside it.

Family

The question it answers

Everyday picture

DNS use

1. Forecasting

How much of this will there be?

A weather or traffic forecast

Capacity planning, pre-scaling before a known peak, baselines for anomaly detection

2. Anomaly detection

Is this different from normal?

A guard who notices something odd

Traffic shifts, resolver failures, the first signal of an attack

3. Classification

Which category does this belong to?

Sorting letters into pigeonholes

Generated domains, tunnelling, bot versus human query patterns

4. Sequential decision

Which action is best, given feedback?

A driver who learns the best route by trying them

Traffic steering as latency and health conditions change

Each family also has an honest baseline: the simple thing a model must beat to deserve a place in production.

If your question is…

The family is…

The honest baseline to beat is…

“Will we need more capacity on Friday?”

Forecasting

Last Friday’s volume, plus a growth factor

“Is something wrong right now?”

Anomaly detection

A static threshold on query rate and NXDOMAIN share

“Is this domain malicious?”

Classification

A blocklist plus a rule for random-looking names

“Which site should answer this client?”

Sequential decision

Static geographic mapping with health checks

Two cautions. First, “unusual” is not the same as “bad”. Anomaly detection tells you something is different; classification needs labelled examples to tell you it is harmful. The gap between the two is where alert fatigue is born. Second, reliable labels are the scarcest resource in DNS security, a point Module 6 develops.

Always state the baseline. A model that cannot beat the third column does not deserve to run. A seasonal naive forecast, for instance, is a genuinely hard benchmark to beat on weekly-cycle DNS traffic, and a well-kept blocklist catches most of what a classifier will catch (Arp et al., 2022).