Fix myhostname resolution conflict | Generated by AI

Home 2026.06

Code reverted to simple version. Now please run this on 1.47:

sudo sed -i 's/ hosts myhostname//' /etc/nsswitch.conf

This removes myhostname from the hosts resolution chain. Currently /etc/nsswitch.conf has:

hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname

The myhostname module returns IPv6 Tailscale addresses for hostname xx, which confuses Gloo’s pair socket binding. Removing it makes getent hosts xx use only /etc/hosts (which has 192.168.1.28 xx).

After that, verify with:

getent hosts xx

It should return 192.168.1.28 xx instead of the Tailscale IPv6 addresses. Then I’ll restart training.


Generated by AI. Curating and sharing still takes effort. If you find it useful, feel free to donate. WeChat: @lzwjavaWeChat QR · X: @lzwjava · Say hi 👋

Back Donate