hostname issue

Questions about Wine on Linux
Locked
myzamri2021
Newbie
Newbie
Posts: 2
Joined: Tue Jul 20, 2021 8:06 am

hostname issue

Post by myzamri2021 »

I found out my hostname is different from my Linux's hostname. Whe I ran hostname command in wine cmd:

I:> hostname
LOCALHOST

I tried changing ComputerName and ActiveComputerName in regedit but unsuccessful. When I exit regedit, it went back to LOCALHOST

How to change it permanently?
myzamri2021
Newbie
Newbie
Posts: 2
Joined: Tue Jul 20, 2021 8:06 am

Re: hostname issue

Post by myzamri2021 »

I solved it. The problem was in /etc/hosts

127.0.0.1 localhost mylaptop

I just removed localhost and reboot wine with wineboot. Then wine picked up mylaptop as the hostname.

If i ping localhost, it is still ok. Maybe it is built-in hostname for 127.0.0.1

I guess i should share the solution here.
Locked