Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 08-01-2005, 08:51 AM   #1
LQ Newbie
Registered: Jun 2005
Posts: 9

Rep: Reputation: 0

Can I change the hostname by editing the /etc/hosts file, or will this screw up things.

thx in advance
Old 08-01-2005, 09:11 AM   #2
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
Always back up ! cp is your friend ! name your original file by adding .old and that's okay.
Now try it and you will see for yourself. If it doesn't work revert to your original file.
you can type man cp in a console to get all the options.
Best to try but have backups !
Old 08-01-2005, 09:11 AM   #3
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
Edit /etc/hosts and /etc/hostname to change the hostname locally.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hostname gururaj Linux - Networking 2 01-05-2006 05:02 PM
hostname changes R153-Ab0V3 Linux - Newbie 6 01-10-2004 11:36 PM
Hostname jpauls104 Slackware 5 07-28-2003 12:16 PM
Hostname _maco_ Linux - General 3 07-07-2003 07:44 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration