LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-09-2003, 09:05 AM   #1
AZIMBD03
Member
 
Registered: Oct 2003
Location: Dhaka,Bangladeh
Distribution: Red Hat
Posts: 80

Rep: Reputation: 15
Question How i can create a Sub domain?


My domain name mydomain.com now i want to make a subdomain
is named x.mydomain.com
domain IP on 202.141.191.a and i want to create sub domain on 202.141.191.b....I am looking for help form any body please..

Thanks

AZIMBD03
 
Old 10-09-2003, 11:02 AM   #2
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
howzit

for me to help I need some more info r u trying to have multiple addr on one NIC? Please be a little more specific

Thanx
chow
 
Old 10-09-2003, 11:50 AM   #3
AZIMBD03
Member
 
Registered: Oct 2003
Location: Dhaka,Bangladeh
Distribution: Red Hat
Posts: 80

Original Poster
Rep: Reputation: 15
Hi Chow
Thanks for your reply..oh no..the 202.141.191.a and 202.141.191.b are on different NIC.
on 202.141.191.a I have create a new zone on /etc/named.conf:
x.mydomain.com just like follows:
zone "x.mydomain.com"IN{
type master;
file"db.x.mydomain.com";
allow-update {202.141.191.b};
}


and then I created a db file on 202.141.191.a
like that: db.x.maydomain.com and configure it....am i right wrong? I am still confused about what i should do on 202.141.191.b.....please help me....

Thanks

AZIMBD03
 
Old 10-09-2003, 05:43 PM   #4
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
Howzit

Now that I know that u are setting up a DNS srv what are u really trying to do. R both ip 2 diffrent machines under the same domain? e.g mail srv and a web srv.....

My name is Tony I use chow to say goodbye
 
Old 10-10-2003, 12:34 AM   #5
AZIMBD03
Member
 
Registered: Oct 2003
Location: Dhaka,Bangladeh
Distribution: Red Hat
Posts: 80

Original Poster
Rep: Reputation: 15
Angry

Hi Tony

Thanks for your mail..
Ya you are right..I have configured my DNS and its okay
Primary DNS-202.141.191.a(ns1.mydomain.com)
Secondery DNS-202.141.191.b(ns2.mydomain.com)
You got it really....
mail server on 202.141.191.b
Web server on 202.141.191.a
both are running nice
but now I wanna create a new subdomain on 202.141.191.b,and wanna hosting a web page under this subdomain
how I will finish my job???/

Thanks

AZIM
 
Old 10-10-2003, 12:50 AM   #6
yuray
Member
 
Registered: Apr 2003
Location: Russia, Khotkovo
Distribution: Debian
Posts: 146

Rep: Reputation: 15
If 191.b is slave then you must add:
zone "x.mydomain.com"IN{
type slave;
file"db.x.mydomain.com";
masters {202.141.191.a};
}
and after restart server db file has been created automatically.
 
Old 10-10-2003, 08:03 AM   #7
AZIMBD03
Member
 
Registered: Oct 2003
Location: Dhaka,Bangladeh
Distribution: Red Hat
Posts: 80

Original Poster
Rep: Reputation: 15
Hi

I have done the job up to your suggesion...but still I cant run my sub domain...Could you pls help me about as step by step from starting point...plz If you need further information from me plz ask me....
Thnaks
AZIM
 
Old 10-11-2003, 04:32 AM   #8
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
Howzit

I suppose u created those entries in your /etc/named.conf file...correct. I think now u want to know how these machines r seen on the internet (mail,web server). If the answer is yes then u must creat zone files. These zones files get placed in /var/named/. U should have these files created already and there names should be db.x.mydomain.com edit the files and place the following:

; Zone File for x.mydomain.com;
; BEGIN SOA
$TTL 86400
@ IN SOA ns.x.mydomain.com. master.x.mydomain.com. (
200207181 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Minimum
; END SOA

; BEGIN NAMESERVERS
NS ns.x.mydomain.com.
; END NAMESERVERS

; BEGIN MX
MX 5 mail.x.mydomain.com.
; END MX

; BEGIN DOMAIN
localhost A 127.0.0.1
ns A 202.141.191.a/b
mail A 202.141.191.b
www A 202.141.191.a
; END DOMAIN

I hope this is what u looking for

good luck

Last edited by aqoliveira; 10-11-2003 at 04:38 AM.
 
Old 10-24-2003, 09:00 AM   #9
AZIMBD03
Member
 
Registered: Oct 2003
Location: Dhaka,Bangladeh
Distribution: Red Hat
Posts: 80

Original Poster
Rep: Reputation: 15
Hi

Thanks a lot....I have done this job successfully according to ur suggesion....

AZIM
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Networking-Newbie: How can you create your own Domain Name TGWDNGHN Linux - Networking 5 10-08-2005 08:01 PM
how to create a domain name weejay Linux - Networking 3 09-16-2004 02:55 AM
Newbie: How Do I create a domain in redhat 9? mrmulla Linux - Networking 4 08-04-2003 03:55 AM
create a domain blas Linux - Networking 2 06-02-2003 02:16 AM
How To Create Sub domain Nezar Linux - Networking 1 08-25-2002 04:41 AM


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

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration