LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2010, 04:21 AM   #1
vinoth.t
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
How to create subdomain in linux without having cpanel.


Hi All,
I'm new to Linux server concept. Can anybody tell me how to create subdomain in linux. Already I have domain "x" in my server, I want to create subdomain for domain "x". How can I do it without using CPanel

Thanks,
 
Old 10-19-2010, 03:18 PM   #2
gjarboni
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Rep: Reputation: 3
Arrow

The software that handles DNS domains and subdomains is called BIND. There will be a configuration file on your server called named.conf and a directory that holds BIND's files (/etc/namedb/ perhaps?). Here's an example with a domain acme.com and a subdomain of sub.acme.com In named.conf you'll put an entry that looks like this:

Code:
zone "sub.acme.com" {
        type master;
        file "sub.acme.com.dns";
};
Then you'll create a file called sub.acme.com.dns that has the same format as the file for acme.com. Here's a sample file:

Code:
$TTL    3600
@               IN      SOA     acme.com. username.acme.com.  (
                                2010101401      ; Serial
                                3600            ; Refresh
                                300             ; Retry
                                3600000         ; Expire
                                3600 )          ; Minimum
                IN      NS      server.acme.com

@               IN      A       1.2.3.4

www             IN      A       5.6.7.8
If you have more questions please mention DNS or BIND so that people know what you're asking about.
 
  


Reply



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
How to create apache2 subdomain? gepesz Linux - Networking 3 09-20-2012 05:07 AM
create independent subdomain on centos zahir.ewest Linux - Server 5 09-26-2010 06:09 AM
Create webmail subdomain on Plesk master domain. (reserved subdomain) fruitwerks Linux - Server 0 08-11-2010 03:08 PM
backup the RHEL5 server with Cpanel and create full system restore disk zaki Linux - Newbie 1 08-31-2009 11:59 AM
Cpanel/WHM Died at /usr/local/cpanel/Cpanel/Hulk.pm line 92. liang3391 Linux - Software 1 06-22-2009 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:11 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
Open Source Consulting | Domain Registration