Pham Quỳnh
New member
How do I change the host ID in Linux?
Answer
If you are curious what it does in detail, you can use
strace command in front of it (e.g. run strace hostid). In short, hostid takes the canonical name of the host (uname -n), greps it against /etc/hosts and the resulting ip address will transform it in hex in a bit of mixed up order.
Answer
If you are curious what it does in detail, you can use
strace command in front of it (e.g. run strace hostid). In short, hostid takes the canonical name of the host (uname -n), greps it against /etc/hosts and the resulting ip address will transform it in hex in a bit of mixed up order.