Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Then you're wondering why your programs suddenly start reporting weird errors.
Then you learn you have to update /etc/hosts too. -
@stop
Are you just being creative here, or do you imply, that there is a simpler way of changing the windows hostname, and I'm taking an unnecessary complex route?
Because if there is a simpler way, I'd really like to know. -
stop68675y@metamourge the hostname is used in /etc/hostname /etc/hosts /etc/postfix/main.cf and other files. So instead of manual searching the hostname i use grep recursive (-r) and since i want the files i use -l (lower L).
-
@stop
that is dangerous. use only when you know EXACTLY what is the risk here.
In any case - the windows thing is wrong. there is a way to change the hostname from cli.
Linux:
echo name > /etc/hostname
Windows:
This PC -> Properties -> Extended Settings -> Hostname -> OK.
The fuck windows?!
I'm changing a hostname, not taking out a loan.
rant