Networking & Configuration

The Split Horizon

150 pts
0 solves
easy hands-on
Two internal API servers are running: - Port 5001 serves the "correct-server" response - Port 5002 serves the "wrong-server" response The hostname "app.internal" is mapped in /etc/hosts, and a client script at /opt/app/client.sh fetches http://app.internal:5001. But /etc/hosts maps "app.internal" to 10.99.99.99 (a non-existent host) instead of 127.0.0.1, so the client cannot connect. Fix /etc/hosts so "app.internal" resolves to 127.0.0.1, and the client gets the "correct-server" response.

Ready to solve this?

Create a free account to launch containers, submit answers, and track your progress.