V
V
Vasily Shakhunov2021-01-11 18:29:27
System administration
Vasily Shakhunov, 2021-01-11 18:29:27

How to change the order of ip addresses in hostname -i?

How to swap displayed ip addresses in places?

# hostname -i
127.0.1.1 10.10.0.23

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2021-01-11
@inf

swap them in the /etc/hosts file

M
Maxim Korneev, 2021-01-12
@MaxLK

funny questions DevOps Engineers are asking these days...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question