LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-03-2005, 04:34 AM   #1
srnerkar1
Member
 
Registered: Nov 2005
Location: nagpur
Posts: 33

Rep: Reputation: 15
Arrow why To Use CNAME record ????


Hello,
I want to set up DNS server with my Redhat 9 machine. So for what this CNAME record is used in DNS files. What problem is solved by that and How TO specify that record in the forward zone file then??????????

Please Help Me Here.....

Thank YOU.......
 
Old 12-03-2005, 05:09 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
I don't have my DNS cookbook right in front of me to give you all the proper details, but they are alias's to the machine.
Your local webserver's hostname might be named websvr in your domain of mydomain.com giving you a full qualified name of websvr.mydomain.com. Since this is your webserver, your likely to want people to access it by www.mydomain.com, so you would create an alias or cname record.

If your redhat9 box is going to host ftp and www, you'll want the following cname records

Code:
websvr     IN      A      192.168.1.3
www        IN      CNAME  websvr
ftp        IN      CNAME  websvr
So this means that if I open a browser to websvr.mydomain.com or to www.mydomain.com, I should get to the IP address 192.168.1.3
If I use an FTP client, I should be able to ftp to any of the following:
websvr.mydomain.com
ftp.mydomain.com
192.168.1.3


=====
I hope the spacing looks good and I remembered all that correctly

Last edited by musicman_ace; 12-31-2005 at 04:07 AM.
 
Old 12-31-2005, 12:00 AM   #3
srnerkar1
Member
 
Registered: Nov 2005
Location: nagpur
Posts: 33

Original Poster
Rep: Reputation: 15
Exclamation

thank you sir for ur previous reply.
if i give name "abc" as alias to my webserver as an example


websvr IN A 192.168.1.3
abc IN CNAME websvr


so here can I access my webserver as http://abc only from my browser?
similarly if i want to access this server with "abc" name only in my intranet systems (DONT WANT TO SHARE THAT SERVER ON INTERNET), Can i do that and if yes then in what way???


Thank you in advance.............
 
Old 12-31-2005, 12:24 AM   #4
aq_mishu
Member
 
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 217

Rep: Reputation: 30
Lightbulb Look it krfully

Code:
$TTL    86400
$ORIGIN mydom.org.
@                       1D IN SOA       ns1.mydom.org. admin.mydom.org. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
 
; Domain declarations
@                       1D IN NS        ns1.mydom.org.
 
; Mail exchangers
@                       1D IN MX 10     mail.mydom.org.
 
; A records
www                     1D IN A         192.168.0.2
mail                    1D IN A         192.168.0.3
 
; CNAME records
ns1                     1D IN CNAME     www.mydom.org.
forum                   1D IN CNAME     www.mydom.org.
webmail                 1D IN CNAME     mail.mydom.org.
By this, my mail exchanger is the mail.mydom.org which the 192.168.0.3 is assinged as an Address (A) record. Then the ns1.mydom.org is 192.168.0.2 but by the same time, this 192.168.0.2 is serving as the www.mydom.org and also serving the forum.mydom.org. Now if i type http://www.mydom.org or http://forum.mydom.org then my pc will connect to ns1.mydom.org and serve data from there. The same way, basically we use eudora to check mails and there I use mail.mydom.org as my mail server. But while using webmail, I can then use the same server but more userfriendly way... http://webmail.mydom.org and it'll also connect to the mil.mydom.org.

Here remember one thing, when you use any webpage, you must run the webserver in that machine. And so for others... And also you must set your other pc's DNS server address to that DNS box's ip. Only then they will resolve the ip from your given url. Hope now it'll help you...

Mishu~~
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind CNAME Problem CleonII Linux - Software 1 11-01-2005 09:27 AM
Dns & Cname abhijeetudas Linux - Networking 1 09-15-2005 03:32 AM
Dns - Cname - Domain Masking dulaus Linux - Networking 2 06-06-2005 07:21 AM
Unable to record mic-in with SoundBlaster Live! while able to record other sources max76230 Linux - Newbie 2 03-14-2005 04:31 AM
Any name resolves to. A? CNAME? DNS Q dlublink Linux - Networking 3 01-11-2005 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration