Please register or login. There are 0 registered and 1389 anonymous users currently online. Current bandwidth usage: 326.30 kbit/s December 13 - 05:50pm EST 
Hardware Analysis
      
Forums Product Prices
  Contents 
 
 

  Latest Topics 
 

More >>
 

    
 
 

  You Are Here: 
 
/ Forums / Windows Server 2000, 2003, 2008 /
 

  Can't access CNAME from outside 
 
 Author 
 Date Written 
 Tools 
_MD_ Jul 30, 2008, 01:15pm EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List Replies: 6 - Views: 2741
I have a subdomain on my DNS and it is defined as a CNAME like so:

sub.............Alias (CNAME)..................server2.domain.com


On the LAN, I can access this resource by typing sub.domain.com no problem. But any external requests don't come through... As a matter of fact, even my Host (A) records can not be accessed from outside as well... I must've missed one little thing while configuring this win2k3 DNS server... Please help an old buddy out... Thanks :cool:


___________________MD_____________________
http://valid.x86-secret.com/show_oc.php?id=333177
_______ Full system specs in user profile ________
Want to enjoy fewer advertisements and more features? Click here to become a Hardware Analysis registered user.
Vitaliy (Administrator) Jul 30, 2008, 03:35pm EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: Can't access CNAME from outside
Did you set domain.com name servers to point to your DNS server's IP?

Also, you may need a final period at the end of the line:

subdomain IN CNAME server2.domain.com.

Gerritt Jul 30, 2008, 06:27pm EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: Can't access CNAME from outside
It looks like you are using separate internal and external DNS authorititative servers for domain.com.
Either that, or you have not set up the fowarder internally to foward the record updates from the internal to the external servers for domain.com.

You may also have to set up NAMESEVER records on the external DNS server to point to your internal DNS for the subdomains so that a query on the sub-domain will go to server2.domain.com.


Ad Astra Per Aspera
(A rough road leads to the Stars)
We all know what we know, and everyone else knows we are wrong.
System Specifications in BIO
_MD_ Jul 31, 2008, 09:45am EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List

Edited: Jul 31, 2008, 09:53am EDT

 
>> Re: Can't access CNAME from outside
Thanks for the replies.

To avoid confusion, let's rename my actual site to apples.com.
Now... my apples.com is very well accessible from outside, and it points to my internal DNS server which obviously does the job right since it redirects to my http server. The thing is, my AD domain name is apples.com as well, so if I'd type http://apples.com it takes me to the PDC, but my web server is a physically different server, so I have a host (A) record www that points to the http server (so now I type http://www.apples.com). In my DNS (which is a PDC for domain apples.com called server1) I have:

www.............................Host (A)....................192.168.33.11
same as parent.........SOA...........................[108], server1.apples.com.
same as parent.........Name Server...........server1.apples.com.
sub...............................Alias (CNAME)........server2.apples.com.


Gerritt said:
Either that, or you have not set up the fowarder internally to foward the record updates from the internal to the external servers for apples.com.

How can I do that?

You may also have to set up NAMESEVER records on the external DNS server to point to your internal DNS for the subdomains so that a query on the sub-domain will go to server2.apples.com.

So in other words, you're saying that in order to access my subdomain from outside, I need to setup NS records on the server of my domain name provider?





[edit] P.S. my server2 is an apache server where I have configured virtualhost to serve for sub.apples.com but it doesn't even redirect to server2... I don't understand...

___________________MD_____________________
http://valid.x86-secret.com/show_oc.php?id=333177
_______ Full system specs in user profile ________
Gerritt Jul 31, 2008, 08:47pm EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: Can't access CNAME from outside
OK, so now I'm confused.
You've applied a CNAME to a resource server2 that doesn't have an A record associated with it? A CNAME is a way for something with the same IP address to be seen as a different DNS NAME, but the A record has to exist.
In this case I don't see a A record for server2 at all.
Additionally I'm not seeing how this relates to a subdomain, so maybe I've been mis-inturpreting what you're trying to accomplish.
A good link for Delegation of a subdomain is http://tinyurl.com/fxvk7
Elsewise, if the issue is with seeing sub.apple.com from the outside, you need to incorporate a A record for server2. The reason it works from the inside is that it is using a combination of WINS/NETBIOS NS with DNS to resolve the name differentials.

Ad Astra Per Aspera
(A rough road leads to the Stars)
We all know what we know, and everyone else knows we are wrong.
System Specifications in BIO
_MD_ Aug 01, 2008, 11:30am EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: Can't access CNAME from outside
Gerritt said:
In this case I don't see a A record for server2 at all

My bad, I must've missed one little detail... my server2 in fact IS 192.168.33.11
So in other words what I am trying to accomplish is when I type sub.apples.com it should take me to the same server (server2) but different folder i.e. 192.168.33.11/extra
I know that folder redirection works fine because my virtualhost on that apache server is setup correctly and tested. The problem is inability to forward requests made for sub.apples.com to server2 from outside. In fact, even if I type server2.apples.com externally, I get no reply...

___________________MD_____________________
http://valid.x86-secret.com/show_oc.php?id=333177
_______ Full system specs in user profile ________
Gerritt Aug 01, 2008, 06:38pm EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: Can't access CNAME from outside
in that case you want to apply the CNAME record to http://www.apples.com.
When the http request is directed to 192.168.33.11 the header will include the requested host id, in this case sub.apples.com - your apache server will do the folder/file redirect based upon the requested resource name, i.e. sub.apples.com will redirect to inet/inbound/sub/index.php or some such.

Ad Astra Per Aspera
(A rough road leads to the Stars)
We all know what we know, and everyone else knows we are wrong.
System Specifications in BIO

Write a Reply >>


 

    
 
 

  Topic Tools 
 
RSS UpdatesRSS Updates
 

  Related Articles 
 
 

  Newsletter 
 
A weekly newsletter featuring an editorial and a roundup of the latest articles, news and other interesting topics.

Please enter your email address below and click Subscribe.