Which file in Linux would you edit to set a system's DNS resolver addresses?
- /etc/resolv.conf
- /etc/hostname
- /etc/dns.conf
- /etc/networks
To set a system's DNS resolver addresses in Linux, you would edit the /etc/resolv.conf file. This file contains the IP addresses of the DNS servers that the system should use for domain name resolution.
Loading...
Related Quiz
- A company wants to deploy a microservices architecture for their application. They are looking for a technology that can package each service with its dependencies and configuration in a reproducible way. Which technology would best fit this requirement?
- You've just set up a new Linux server and need to install a web server. Which package management command would you likely use in a Debian-based system?
- Services in Linux that start at boot and run in the background are commonly referred to as _________.
- Which daemon is responsible for network interface configuration and automatic switching between networks?
- The ________ statement in Bash allows for decision-making and executing different blocks of code based on a condition.