Question 620
At Orchard Transit, a server receives the correct DHCP address but sends traffic to a decommissioned gateway installed by a stale network profile. The team is preparing a reversible change and needs a test that distinguishes the suspected fault from unrelated symptoms. A colleague suggests: “Edit /etc/hosts so the gateway hostname points to the destination.” Which flaw makes that recommendation inappropriate?
Explanation
Correct Answer
Inspect ip route and connection profiles, remove the wrong default and test route selection. Verify that a remote ip route get chooses the approved gateway while local routes continue working.
Incorrect Answers
“Change interface speed settings to fix a name resolution result.” is a different mistake. The current issue is that hosts-file mappings do not replace kernel routing-table gateway decisions.
“Clear /etc/resolv.conf repeatedly to resolve duplicate layer-2 IP ownership.” is a different mistake. The current issue is that hosts-file mappings do not replace kernel routing-table gateway decisions.
“Assume any missing reply means the application process never created a socket.” is a different mistake. The current issue is that hosts-file mappings do not replace kernel routing-table gateway decisions.