RH302 · Question #29
Make Successfully Resolve to server1.example.com where DNS Server is 192.168.0.254.
To successfully resolve server1.example.com using the specified DNS server, you need to configure /etc/resolv.conf. Steps: 1. Edit the /etc/resolv.conf file: vi /etc/resolv.conf 2. Add the nameserver entry: nameserver 192.168.0.254 3. Verify the resolution: host server1.example.c
Question
Explanation
To successfully resolve server1.example.com using the specified DNS server, you need to configure /etc/resolv.conf.
Steps:
- Edit the
/etc/resolv.conffile:vi /etc/resolv.conf - Add the nameserver entry:
nameserver 192.168.0.254 - Verify the resolution:
host server1.example.com
Context on DNS: 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.18.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
Community Discussion
No community discussion yet for this question.