Ubuntu: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 46: Line 46:
====DNS Resolver====
====DNS Resolver====


DNS resolver is configured with <tt>resolvconf</tt>, which writes /etc/resolv.conf. Normally, <tt>resolvconf</tt> is invoked by network interface configuration programs, such as <tt>ifup</tt>, <tt>NetworkManager</tt> or <tt>dhclient</tt>. <tt>resolvconf</tt> ''can'' be run by administrators, but this s normally necessary.
DNS resolver is configured with <tt>resolvconf</tt>, which writes /etc/resolv.conf. Normally, <tt>resolvconf</tt> is invoked by network interface configuration programs, such as <tt>ifup</tt>, <tt>NetworkManager</tt> or <tt>dhclient</tt>. <tt>resolvconf</tt> ''can'' be run by administrators, but this s normally necessary. /etc/network/interfaces contains DNS-related configuration keywords, as shown in the above example.

Revision as of 17:16, 19 April 2018

Internal

Info

Ubuntu Version

 lsb_release -a

Configuration

Network

Network Interfaces

ifup

ifup is one of the utilities that can be used to configure the network interfaces. It reads its configuration from /etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens5
iface ens5 inet static
  address 192.168.1.10
  netmask 255.255.255.0
  gateway 192.168.1.1
dns-servernames 1.1.1.1 8.8.8.8 8.8.4.4

NetworkManager

dhclient

DNS

DNS Resolver

DNS resolver is configured with resolvconf, which writes /etc/resolv.conf. Normally, resolvconf is invoked by network interface configuration programs, such as ifup, NetworkManager or dhclient. resolvconf can be run by administrators, but this s normally necessary. /etc/network/interfaces contains DNS-related configuration keywords, as shown in the above example.