The /etc/resolv.conf file is used to specify DNS servers. You can use the command man resolv.conf to learn more about details of this file.
A DNS server is a host that answers DNS requests. A DNS request consists of a domain name. The reply of a DNS request consists of records corresponding to the domain name.