Red_Hat
RH302 · Question #161
Your system is configured in the 192.168.0.0/24 network, and your Domain Name Server (DNS) is 192.168.0.254. Configure the system to successfully resolve server1.example.com.
To enable hostname resolution, the system needs to be configured with the correct DNS server in the /etc/resolv.conf file. 1. Edit the /etc/resolv.conf file: vi /etc/resolv.conf 2. Add the nameserver entry pointing to your DNS server: nameserver 192.168.0.254 3. Save and close…
Network configuration
Question
Your system is configured in the
192.168.0.0/24 network, and your Domain Name Server (DNS) is 192.168.0.254. Configure the system to successfully resolve server1.example.com.Explanation
To enable hostname resolution, the system needs to be configured with the correct DNS server in the /etc/resolv.conf file.
- Edit the
/etc/resolv.conffile:vi /etc/resolv.conf - Add the nameserver entry pointing to your DNS server:
nameserver 192.168.0.254 - Save and close the
/etc/resolv.conffile. - Test the resolution by attempting to look up the hostname:
host server1.example.comorping server1.example.com
Topics
#DNS#resolv.conf#name resolution#network configuration
Community Discussion
No community discussion yet for this question.