nerdexam
Red_Hat

RH202 · Question #68

Make Successfully Resolve to server1.example.com where DNS Server is 192.168.0.254.

1. Edit /etc/resolv.conf: vi /etc/resolv.conf Add the line: nameserver 192.168.0.254 Explanation: DNS is the Domain Name System, which maintains a database that can help your computer translate domain names such as www.redhat.com to IP addresses such as 216.148.218.197. As no ind

Basic Networking

Question

Make Successfully Resolve to server1.example.com where DNS Server is 192.168.0.254.

Explanation

  1. Edit /etc/resolv.conf: vi /etc/resolv.conf Add the line: nameserver 192.168.0.254

Explanation: DNS is the Domain Name System, which maintains a database that can help your computer translate domain names such as www.redhat.com to IP addresses such as 216.148.218.197. As no individual DNS server is large enough to keep a database for the entire Internet, they can refer requests to other DNS servers.

DNS is based on the named daemon, which is built on the BIND (Berkeley Internet Name Domain) package developed through the Internet Software Consortium Users wants to access by name so DNS will interpret the name into ip address. You need to specify the Address if DNS server in each and every client machine. In Redhat Enterprise Linux, you need to specify the DNS server into /etc/resolv.conf file.

After Specifying the DNS server address, you can verify using host, dig and nslookup commands.

Topics

#DNS#/etc/resolv.conf#name resolution#network configuration

Community Discussion

No community discussion yet for this question.

Full RH202 Practice