NETW-2705 - Properly functioning name servers
Connectivity is the central link for systems to communicate. Most communication occurs on layer 3 (network) for interconnected systems. There DNS resolving is very important for proper functioning.DNS resolving, while it is part of the basics, is often overlooked. To limit the chance of failure or bad performance, at least two working name servers are advised.Lynis tests the availability of name servers and if they actually respond to queries. To determine what DNS servers are used, consult the /etc/resolv.conf file.
How to solve
Nowadays, most systems are connected. At least via the internal network, but often also via the internet. An important requisite in this interconnected web of systems is the ability to use a naming convention, like names for hosts, or names for websites. By using DNS (Domain Name System), we can translate between names and IP addresses.
Many systems have a weak configuration when it comes to this name translation. It is common to find a missing fallback system, when the primary DNS server is not available. Another issue is that one or more of the name servers listed in /etc/resolv.conf are not even accessible or functioning. With this Lynis control the connectivity is tested.
Depending on your system, you might need to make changes in your /etc/resolv.conf file, or otherwise. Debian based systems might use /etc/network/interfaces to define name servers (dns-nameservers 126.96.36.199 188.8.131.52 184.108.40.206), or /etc/resolvconf/resolv.conf.d/tail.
- DNS tuning for performance and resilience (Tips to enhance the DNS configuration of Linux systems)
Linux and Unix System Hardening
This information is provided as part of the Lynis community project. It is related to Lynis control NETW-2705. All information should be considered as-is, without guarantees. Any advice or snippets should be tested before implementing in production environments.
Lynis is a technical security audit tool for systems running Linux, UNIX, *BSD, and macOS. It is open source software and free to use. The project has an active community, and can also be found on GitHub.
Need more advanced features, like vulnerability scanning, or reporting installed software packages? Lynis Enterprise will collect more data and present it with an easy to use web interface.
Gain additional benefits: automating security audits, reporting, and the implementation of related security measures.
- Centralized management
- Prioritized plans
- Integration (API)
- Improvement snippets for tools like Ansible, Chef, Cfengine and Puppet