Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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..
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....
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.....
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???/
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.