What is the DNS hosts file, and what is its precedence relative to DNS resolver queries on most operating systems?
- A.The hosts file is deprecated and ignored by all modern operating systems since Windows 10
- B.The hosts file is only used as a fallback when DNS is unavailable; DNS queries always take precedence over the hosts file
- C.The hosts file (C:\Windows\System32\drivers\etc\hosts on Windows; /etc/hosts on Linux/macOS) is a local text file mapping hostnames to IP addresses; it takes precedence over DNS resolver queries by default on most OS. If an entry exists in the hosts file, the OS returns it without querying DNS
- D.The hosts file is only used for IPv4; IPv6 requires a separate configuration file (/etc/hosts6)
Why C is correct