This also prevents changing the box's hostname, as the command `sudo hostname -f` not only gets the sudo warning on stdout as mentioned above, but the `hostname -f` also fails with a non-zero exit code since resolution fails.
This also prevents changing the box's hostname, as the command `sudo hostname -f` not only gets the sudo warning on stdout as mentioned above, but the `hostname -f` also fails with a non-zero exit code since resolution fails.