LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 10-18-2009, 06:32 PM   #1
brynjarh
Member
 
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172
Thanked: 0
Question Could someone explain to me the process of adding a hostname? (hostname.domain.com)


[Log in to get rid of this advertisement]
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.
linux brynjarh is offline  
Tag This Post ,
Reply With Quote
Old 10-18-2009, 07:29 PM   #2
Raum the Old
LQ Newbie
 
Registered: Jul 2008
Location: Southern California
Distribution: Debian, Ubuntu, FreeBSD
Posts: 19
Thanked: 5
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).
linuxdebian Raum the Old is offline     Reply With Quote
Thanked by:
Old 10-18-2009, 08:58 PM   #3
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 211
Thanked: 1
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
macos poeta_boy is offline     Reply With Quote
Thanked by:

Reply

Bookmarks


Thread Tools

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 11:37 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration