• Home
  • About

Penguinspeak

This is how I see it.
Aug 31 2009

How to change your hostname and domain name in Linux

To change your hostname and/or domain name in Linux you need to modify two files.

/etc/sysconfig/network should read:
NETWORKING=yes
HOSTNAME=

– and –

/etc/hosts
127.0.0.1 localhost locahost.localdomain

Replace the terms in brackets (<>) with your own hostname and domainname, and then reboot.

Post to Twitter

no comments | posted in Linux, Networking


  • Follow me on Twitter!
  • Recent Posts

    • Adobe AIR 1.5.3 Now available for download
    • Ignite Portland 7: Geeks on non-geeky things.
    • Lita: SQLite Database Administration
    • Shell script to show/hide hidden files on OS X
    • Making permanent aliases for Terminal
  • Categories

    • Actionscript
    • AIR
    • Beta
    • ColdFusion
    • CSS
    • Design
    • Flash Player
    • Flex
    • Flex 4
    • Flickr API
    • Git
    • Item Renderers
    • Linux
    • LiveCycle Data Services
    • Networking
    • OS X
    • Portland
    • PureMVC
    • Rails
    • SQLite
    • Terminal
    • Uncategorized
    • Version Control
    • WordPress
  • Archives

    • December 2009
    • November 2009
    • October 2009
    • August 2009
    • July 2009
    • February 2009
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • October 2006
    • May 2006
    • April 2006
    • March 2006
    • February 2006
  • Software I like

    • Blacktree
    • Nemo
    • Panic
    • The Omni Group
Subscribe RSS
Copyright © 2009 Mac Martine
WordPress Theme by Michael Tyson.