belranjan
asked on
SUB DOMAIN CONFIGURATION IN REDHAT LINUX 7.3
I am using linux server as a primary dns server and mailserver.Now i want launch a web site in windows 2000 server .For that i need to configure sub domail in linux.
For example:
1.The dns server domain name is "example.com" and ip is "203.50.10.1." ( linux )
2.The mail server mx record is same "@examlp.com" and ip is "203.50.10.1." ( linux )
3.The web server is in windows 2000 server.The ip is "203.50.10.2" .Now i want use sub domain for this ip . "update.example.com".How i configure in linux redhat .I configured dns bind by using redhat dns configuration tool.
For example:
1.The dns server domain name is "example.com" and ip is "203.50.10.1." ( linux )
2.The mail server mx record is same "@examlp.com" and ip is "203.50.10.1." ( linux )
3.The web server is in windows 2000 server.The ip is "203.50.10.2" .Now i want use sub domain for this ip . "update.example.com".How i configure in linux redhat .I configured dns bind by using redhat dns configuration tool.
ASKER
Hi psimation..
I understand but i used redhat gui dns configuration tool.I want to know how to configuration from that tool.
In that there his records option is there .Is that a way i have add sub domain and assign a ip for that new subdomain.
I understand but i used redhat gui dns configuration tool.I want to know how to configuration from that tool.
In that there his records option is there .Is that a way i have add sub domain and assign a ip for that new subdomain.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
website, you can leave it out.
ftp IN CNAME domain.dom.
mail IN CNAME domain.dom.
www IN CNAME domain.dom.
update IN CNAME 203.50.10.2 < ---------- you need to add this
If make this changes like that.Weather i can host a web site in diffent machine with this ip.
ftp IN CNAME domain.dom.
mail IN CNAME domain.dom.
www IN CNAME domain.dom.
update IN CNAME 203.50.10.2 < ---------- you need to add this
If make this changes like that.Weather i can host a web site in diffent machine with this ip.
Look in the /var/named folder for the zone file for this domain, usually called something like domain.dom.zone or whatever you called it in your /etc/named.conf file.
A typical zone file looks like this:
;
; Forward resolution zone file for a primary nameserver
;
$TTL 86400
@ IN SOA domain.dom. emailaddress.domain.dom. (
2003021903 ; Serial < --------------------------
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400) ; Minimum
IN NS domain.dom.
IN NS otherdomain.dom.
IN MX 10 mail.serer.dom.
A 203.50.10.1 < ------------- this is so people won't have to type www to get to your website, you can leave it out.
ftp IN CNAME domain.dom.
mail IN CNAME domain.dom.
www IN CNAME domain.dom.
update IN CNAME 203.50.10.2 < ---------- you need to add this
Make the change, and change the serial number for the file, and then restart your DNS on the primary AND secondary box. Changes can take a while to propagate, except if you use this server as your nameserver.
This is a quick and dirty hack, apparently the elegant way to do this is to have a zone file for the subdomain as well...