# Changing hostname of linux system

**URL:** https://forum.highend3d.com/t/changing-hostname-of-linux-system/68415
**Category:** Archived
**Tags:** linux-forum
**Created:** [August 25, 2003, 9:26am UTC](https://forum.highend3d.com/t/changing-hostname-of-linux-system/68415 "2003-08-25T09:26:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![swordworks](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@swordworks](https://forum.highend3d.com/u/swordworks)
#### Post date: [August 25, 2003, 9:26am UTC](https://forum.highend3d.com/t/changing-hostname-of-linux-system/68415/1 "2003-08-25T09:26:45Z")

</div>

Does somebody know, how I can change the hostname of my RedHat 9 system? The Houdini license server does not work with the default name (something like localxxx.localhost).

---

<div class="post-metadata">

### Author: ![mfiorilli](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/22d042/32.png) [@mfiorilli](https://forum.highend3d.com/u/mfiorilli)
#### Post date: [August 25, 2003, 9:31pm UTC](https://forum.highend3d.com/t/changing-hostname-of-linux-system/68415/2 "2003-08-25T21:31:35Z")

</div>

First of all it should be possible to use the loopback adress 127.0.0.1 if you are using your own machine for rendering/licensing or any config which needs your local hostname/IP.

If you are not using a DNS or similar its should be very easy to change your hostname using /etc/hosts, check it out it will speek for it self!

Good Luck!

// Joda

---

<div class="post-metadata">

### Author: ![brubin](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/b/7ab992/32.png) [@brubin](https://forum.highend3d.com/u/brubin)
#### Post date: [August 26, 2003, 2:46pm UTC](https://forum.highend3d.com/t/changing-hostname-of-linux-system/68415/3 "2003-08-26T14:46:33Z")

</div>

you can create a file /etc/hostname  
some unix-systems like it as HOSTNAME  
try and see what works  
mine contains one single word  
and that is the name of my machine

/etc/hosts looks like this:  
# Do not remove the following line, or various programs  
# that require network functionality will fail.  
127.0.0.1 localhost.localdomain localhost  
192.168.10.10 localhost.localdomain

is the same as in /etc/hostname  
the 192.168.10.10 is picked arbitrarily from the pool of IP’s reserved for local networks (you can google shitloads of information on that!)

HIH  
s.

---

<div class="post-metadata">

### Author: ![rixch](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/r/e99b99/32.png) [@rixch](https://forum.highend3d.com/u/rixch)
#### Post date: [September 12, 2003, 10:30pm UTC](https://forum.highend3d.com/t/changing-hostname-of-linux-system/68415/4 "2003-09-12T22:30:21Z")

</div>

As already mentioned, make sure you have your hostname in your /etc/hosts file. For example, if your ip address is 192.168.1.2 and your hostname is mybox, add the following line in /etc/hosts:

192.168.1.2 mybox

Also make sure mybox doesn’t appear after 127.0.0.1 in your /etc/hosts.

If all else fails, edit the file /etc/sysconfig/network to say:

HOSTNAME=mybox
