LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-18-2009, 06:32 PM   #1
brynjarh
Member
 
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? (hostname.domain.com)


What do I have to do to add a hostname? For example I have foobar.com and would also like to have media.foobar.com.

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 media.foobar.com to be created and directed to <ipaddress>:81 I just add to /etc/hosts: "<ipaddress>:81 media.foobar.com", with "<ipaddress> foobar.user.openhosting.com foobar localhost" already present.

The hosting and the domain are not with the same company.
 
Old 10-18-2009, 07: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, 08:58 PM   #3
poeta_boy
Member
 
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.

Greetings

Alejandro
 
  


Reply

Tags
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 09:01 PM
after hostname change, syslogd still output previous hostname to messages file tiger2000 Linux - General 3 07-22-2009 10:36 PM
specify hostname with domain jdnow09 Red Hat 2 06-16-2009 12:47 AM
Hostname in domain jhwilliams Linux - Software 4 07-12-2007 02:18 PM
hostname vs domain racediver007 Linux - Newbie 5 03-20-2003 04:30 PM


All times are GMT -5. The time now is 05:18 AM.

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