Solved

SUB DOMAIN CONFIGURATION IN REDHAT LINUX 7.3

Posted on 2003-11-19
4
844 Views
Last Modified: 2010-04-21
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.
0
Comment
Question by:belranjan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:psimation
ID: 9777226
This all happens in the zone file for the top level domain.

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    < -----------------------------------------------     change this so named will know to update secondary server.
           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...


0
 

Author Comment

by:belranjan
ID: 9777903
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.
0
 
LVL 17

Accepted Solution

by:
psimation earned 50 total points
ID: 9778019
I don't think that the GUI tool will help you to edit the zone file. Anyway, a good SySAdmin will always know how to do things from the command line as well, just incase the monitor explodes and you can only telnet/ssh into the server ;)

You can use your GUI editors to edit the zone file, use something like gedit or kedit to open the /var/named/xxx.zone file and make the changes as I have shown you. If you are afraid you mess up, make a backup of the zone file before you start editing. It's very important you observe the layout of the file wrt spaces and tabs etc. Also, note the "." after you supply "human" readable names for machines, and when supplying IP's, you DON'T give a trailing dot...

Don't be intimidated by having to make changes to the file directly, that is why Linux is such a nice OS, it was meant to be done that way in the first place...
 
0
 

Author Comment

by:belranjan
ID: 9995024
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.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question