Lpic 2 Linux Engineer · Free Practice Question Medium

Question 18

A junior administrator has set up a new DNS server using BIND. However, the server is not resolving external domain names. Upon checking, you see that no forwarding or root hints have been configured. What would be a possible quick solution?
  • A Add 8.8.8.8 to /etc/hosts
  • B Configure a forwarder in /etc/named.conf
  • C Restart the network service
  • D Flush the DNS cache
Reveal correct answer

Correct answer: B

A. Adding 8.8.8.8 to /etc/hosts file is not a solution for configuring DNS forwarding. The /etc/hosts file is used for mapping hostnames to IP addresses locally on the system, and it does not affect DNS resolution for external domain names.

B. Configuring a forwarder in /etc/named.conf is a possible quick solution to enable the DNS server to forward queries for external domain names to another DNS server. This allows the DNS server to resolve external domain names by forwarding the queries to the specified forwarder.

C. Restarting the network service may not resolve the issue of the DNS server not resolving external domain names. The issue is related to the lack of forwarding or root hints configuration, and simply restarting the network service will not address this specific problem.

D. Flushing the DNS cache may help in clearing any cached DNS records on the server, but it will not resolve the issue of the DNS server not resolving external domain names due to the lack of forwarding or root hints configuration. Flushing the DNS cache is more of a troubleshooting step for resolving DNS resolution issues related to cached records.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need