Interview question

This question is step 9 of the course “Networking: first steps”

Why dig doesn't see /etc/hosts

easy~4 min

Someone added the line 10.0.0.7 db.local to /etc/hosts. Now ping db.local and curl http://db.local/ find the address, but dig db.local says there's no such name. Why? Which command shows the address programs will get for a name?

Just like in an interview: answer in your own words, and the AI will mark which key points you covered. To pass, cover more than half of them.

Loading…