Question 310
You have attempted this task on a test RHEL10 instance: A training host must resolve one intentionally private name without querying DNS while building a disconnected lab. Which command output or observation best confirms its success?
Explanation
Correct Answer
`getent hosts db150.lab` resolves the intended IP with DNS disconnected. This check confirms the expected effect of: Add a reviewed entry such as `192.0.2.11 db150.lab` to `/etc/hosts` on the test VM. It distinguishes the intended result from the original failure mechanism: The local hosts database is consulted by the name-service switch based on `/etc/nsswitch.conf`.
Incorrect Answers
`ip -6 addr show` lists the address and a local IPv6 connectivity test succeeds. That verifies a separate lab task: An IPv6-only lab application cannot listen because the host connection has no configured static IPv6 address. It does not validate the implementation required here: Add a reviewed entry such as `192.0.2.11 db150.lab` to `/etc/hosts` on the test VM.
`firewall-cmd --zone=public --list-services` contains `http` and only the required service is exposed. That verifies a separate lab task: A standard `http` service should be allowed through firewalld, but the operator adds a broad arbitrary port range. It does not validate the implementation required here: Add a reviewed entry such as `192.0.2.11 db150.lab` to `/etc/hosts` on the test VM.
After reconnect or reboot `nmcli con show` and `ip addr` still report the address. That verifies a separate lab task: A technician adds an IPv4 address with `ip addr add`, but it disappears after reboot. It does not validate the implementation required here: Add a reviewed entry such as `192.0.2.11 db150.lab` to `/etc/hosts` on the test VM.