Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which diagnostic statement about `NXDOMAIN` is correct?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/checkpoint-4/checkpoint-4-dns-failure/).
Context (verbatim from the page):
"""
Which diagnostic statement about `NXDOMAIN` is correct?
It is a negative DNS answer about name existence, and it may be cached under negative-caching policy.
It proves that the application server accepted and rejected a TCP connection.
It is always a transient resolver timeout that should be retried immediately.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in CS foundations. Where you are unsure, say so.