Hands-on task
A hostname of its own for the test bench
This server runs the billing tests, and the test bench picks its config by hostname: it needs the name billing-test. You can't rename the server itself — monitoring and logs know it by its name.
Start a long-lived process (sleep infinity will do) in a separate UTS namespace where the hostname is billing-test. Leave the process running, and hostname on the server itself must stay the same.
- namespaces
- unshare
- nsenter
- hostname