Solved

SUB DOMAIN CONFIGURATION IN REDHAT LINUX 7.3

Posted on 2003-11-19
4
847 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

623 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