Look at query behavior rather than single queries. Signals include unusually long or high entropy subdomain labels, a high ratio of unique subdomains under one parent domain, TXT or NULL record types in volume, steady query intervals rather than human bursts, and one internal host generating disproportionate query volume. Baseline per host and per domain, then enrich with domain age and registration data.
Why interviewers ask this
DNS is one of the few channels allowed out of nearly every network, so interviewers use this to test whether you can build statistical detections instead of matching known bad domains. They want entropy, volume and periodicity thinking, plus awareness of false positive sources such as content delivery networks, antivirus reputation lookups and telemetry agents that legitimately generate thousands of unique subdomains every day.
How to structure your answer
- Describe the behavioral signals, not an indicator list.
- Explain the baseline you compare each host and domain against.
- Name the legitimate services that will look identical.
- Say what you would do to confirm before escalating.
Example answer
I treat it as a volume and entropy problem. For each parent domain I count distinct subdomains per hour and measure label length and character entropy, because encoding data into a hostname produces long random looking labels that no human typed. I also look at record type mix, since a burst of TXT or NULL queries stands out, and at timing, because implants beacon on an interval and people do not. Then per host: one workstation producing ten times the DNS volume of its peer group is worth a look on its own. The catch is that plenty of legitimate services look exactly like this. Antivirus reputation lookups, content delivery networks and some telemetry agents generate huge numbers of random subdomains, so I baseline and allow list those parents explicitly by their known infrastructure rather than by pattern. To confirm, I check registration age, look for the same parent across multiple hosts, and pull the process making the queries from endpoint telemetry, which usually settles it in a minute.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- How does DNS over HTTPS change your approach?
- What would you block first once you confirm it?
- How would you find other hosts talking to the same infrastructure?
Related cybersecurity analyst questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions