Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-18-2009, 05:32 PM   #1
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Rep: Reputation: 30
Question Could someone explain to me the process of adding a hostname? (

What do I have to do to add a hostname? For example I have and would also like to have

Do I just mess with some files on the server? Or do I need to mess with the nameservers? Or even some settings with the "domain company" it self?

Without knowing how to do it I'm imagining that if I want to be created and directed to <ipaddress>:81 I just add to /etc/hosts: "<ipaddress>:81", with "<ipaddress> foobar localhost" already present.

The hosting and the domain are not with the same company.
Old 10-18-2009, 06:29 PM   #2
Raum the Old
LQ Newbie
Registered: Jul 2008
Location: Southern California
Distribution: Debian, Ubuntu
Posts: 22

Rep: Reputation: 3
You need an A (or AAAA for IPv6) record in the DNS zone file for the domain. So it is the nameserver, yes. If someone else is hosting your DNS, they might have a web interface that will allow you to make the necessary changes (GoDaddy has this, for example).
Old 10-18-2009, 07:58 PM   #3
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Rep: Reputation: 31
I believe you need to talk with your hosting vendor and ask them for it. I've done several times and usually there is a web interface that will allow you to add subdomains.




domain, hostname

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
Changed hostname during install, now CUPS has wrong hostname on web interface slinx Linux - Software 1 08-07-2009 08:01 PM
after hostname change, syslogd still output previous hostname to messages file tiger2000 Linux - General 3 07-22-2009 09:36 PM
specify hostname with domain jdnow09 Red Hat 2 06-15-2009 11:47 PM
Hostname in domain jhwilliams Linux - Software 4 07-12-2007 01:18 PM
hostname vs domain racediver007 Linux - Newbie 5 03-20-2003 03:30 PM

All times are GMT -5. The time now is 05:36 PM.

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