The nameserver or DNS server information is stored in the /etc/resolv.conf file. This file can be updated using dhclient or NetworkManager or by an administrator, manually. In this file, we can specify a maximum of three nameserver directives in their order of precedence from top to bottom.
The contents of nameserver configuration file can be viewed as shown here: