Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-19-2010, 04:21 AM   #1
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

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

Rep: Reputation: 3

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 and a subdomain of In named.conf you'll put an entry that looks like this:

zone "" {
        type master;
        file "";
Then you'll create a file called that has the same format as the file for Here's a sample file:

$TTL    3600
@               IN      SOA  (
                                2010101401      ; Serial
                                3600            ; Refresh
                                300             ; Retry
                                3600000         ; Expire
                                3600 )          ; Minimum
                IN      NS

@               IN      A

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


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
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/ line 92. liang3391 Linux - Software 1 06-22-2009 02:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:40 AM.

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
Open Source Consulting | Domain Registration