DNS Configuration

DNS settings such as Name Servers and Search Domains can be configured for each network interface, which will override the DHCP provided settings.

Name servers allow the system to resolve hostnames to IP addresses to communicate with remote systems. Search domains allow the system to resolve partially qualified domain names (PQDN) by appending entries from the listed search domains to form a fully qualified domain name (FQDN).

When adding an interface to a Bond or Bridge, it will use the DNS configuration of the aggregate interface.

Note:Interfaces must have at least one network connection to be able to perform DNS resolution.

Configure DNS via the Web UI

CONFIGURE > NETWORK CONNECTIONS > Network Interfaces

On the Network Interfaces page, select the desired interface and click the Edit link.

Name Servers

  1. Add one or more name servers to the list by clicking the Add Name Server button.

  2. Name servers can be IPv4 or IPv6 addresses.

  3. Name servers can be removed from the list by clicking the Delete button next to each row.

  4. Click Apply to save the changes.

DNS Search Domains

  1. Add one or more DNS search domains to the list by clicking the Add Search Domain button.

  2. Search domains should be fully qualified domain names.

  3. Search domains can be removed from the list by clicking the Delete button next to each row.

  4. Click Apply to save the changes.

Configure DNS via the Command Line

Description Command

Display configured DNS settings for an interface

ogcli get physif "net1"

Update DNS settings for an interface

ogcli update physif "net1" << END
dns.nameservers[0]="1.1.1.1"
dns.nameservers[1]="1.0.0.1"
dns.search_domains[0]="example.net"
dns.search_domains[1]="example.com"
END

Check unbound service status

systemctl status unbound.service

List forward-zones in use

unbound-control list_forwards