You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Root domain not resolving correctly

I am running in to the same problem as reported on this thread:

http://discussions.apple.com/thread.jspa?threadID=1557217&tstart=0

My client is pointing to my server for DNS (although the client is wireless, and in Leopard the primary DNS is hard-coded to the router...yet this doesn't appear to cause any problem with OD so I don't think it would here either).

I added the CNAME in DNS and restarted. www.domain.com still does not work, and the FQDN does (server.domain.com). At my registrar, I had the root and a wildcard pointing to my server's public IP. I added a www CNAME there, too. www still doesn't work. Yet host www.domain.com returns: www.domain.com is an alias for server.domain.com. server.domain.com has address 192.168.9.254 (my server's local IP).

Even if I can get www.domain.com to work, I would really like just the root domain.com to work as well.

I'll also mention that, in Server Admin Web > General, I had to enter the FQDN server.domain.com in order for the group wiki to work (I read on other posts that this is what you currently have to do...bug or intentional?).

Perhaps this is unrelated, but I'll mention this just in case: my ISP had an old reverse lookup on their nameservers (server.old-domain.com) for my static public IP. I had them change that the other day and it appears to be fully propagated (they changed it to server.domain.com; I wonder if that was causing any of my initial DNS woes?).

MacBook 2.16GHz 2GB, Mac OS X (10.5.4), OS X Server 10.5.4

Posted on Aug 8, 2008 8:34 AM

Reply
12 replies

Aug 8, 2008 10:52 AM in response to scott.gardner

host -v www.nineridge.com

;; ANSWER SECTION:
www.nineridge.com. 3585 IN CNAME www.nineridge.com.

This is wrong (it's pointing to itself), should be:

www.nineridge.com. IN CNAME server.nineridge.com.


"My client is pointing to my server for DNS (although the client is wireless, and in Leopard the primary DNS is hard-coded to the router...yet this doesn't appear to cause any problem with OD so I don't think it would here either)."


If the router use public DNS IPs and NAT loopback works it could be OK.

If reusing the same domainname internally you usually need to run a private IP DNS on your LAN duplicating the names from public DNS but with private IPs for your LAN server.

Aug 8, 2008 12:03 PM in response to scott.gardner

I would use the A record in the DNS table for this zone for whatever DNS server(s) are authoritative for this domain name.

Your post suggested that you were running your own DNS. If so, then it's in your DNS server that you do this.

If your Registrar offers DNS services for your account, and you are using THEM for your DNS, then it is in their DNS table for this zone that the A record will be substituted for the CNAME record.

A whois lookup of your zone (zones are DNS-speak for domains) tells me that these two name servers are authoritative:

NS49.DOMAINCONTROL.COM
NS50.DOMAINCONTROL.COM

That appears to be owned by wild west domains. So those are the machines that need to have the correction made.

Leif beat me to the next issue you have -- a self-reference loop. Bad form, there. (nice catch, Leif). Read his post -- 'though I would still use an A record rather than the older CNAME technique. DNS isn't hard, it's just foreign to you for now.

nineridge.com. 86400 IN A 209.107.233.6
www.nineridge.com. 86400 IN A 209.107.233.6
server.nineridge.com. 86400 IN A 209.107.233.6

If that's the appropriate IP.

Message was edited by: Paul Vail

Aug 8, 2008 1:49 PM in response to Leif Carlsson

Hi Leif,

For host -v www.nineridge.com I get:
;; ANSWER SECTION:
www.nineridge.com. 10800 IN CNAME server.nineridge.com.
server.nineridge.com. 10800 IN A 192.168.9.254

Are you still getting the same result?

I deleted the www CNAME and added it as an A record instead on my registrar. Are you saying that I should do the same on my server? I am running DNS on this server, primarily for the OD.

Thanks for your help

Aug 8, 2008 2:01 PM in response to Paul Vail

Hi Paul,

Yes, I am running DNS, primarily for the OD. I made the changes you suggested on both my server and my domain registrar (ns49 and ns50).

I have noticed that running host nineridge.com only returns my MX record, not the A record. Not sure why that is, because following the same protocol for other domains I've hosted sites for in the past do return the A record, too. The A record on my registrar for the root domain has been in place for some time (I entered it as @ points to 209.107.233.6, which is how I've always done it and it has worked fine), but I just changed that record to nineridge.com points to 209.107.233.6, if nothing more than to force a refresh of the nameservers?

In any event, www.nineridge.com now resolves correctly, but nineridge.com does not. Aside from waiting for everything to fully propagate, is there anything else I am missing? I've set up and hosted many websites in the past following the same steps, so it's strange to me why all of a sudden this one's being such a PITA.

Thanks for your help

Aug 8, 2008 4:57 PM in response to scott.gardner

First, you should only have one primary DNS. If you insist on have two for whatever reason, they both better match exactly. The slaves will update in their due time.

Second, in your SA:Web:Sites -- is nineridge.com pointing to a site (and www.nineridge.com is a web server alias for it?

From my perspective:

nineridge.com. 3600 IN A 209.107.233.6
www.nineridge.com. 3600 IN A 209.107.233.6

so that much is in agreement. And both resolve to a placeholder page in a browser for me.

Aug 8, 2008 5:41 PM in response to Paul Vail

I only have one primary DNS (my server). There is no slave. But I still have to set up A and MX records on the registrar for the domain to point to my server's IP. I only have the OS X Server placeholder page up for now.

I have entered in SA:Web:Sites:General: Domain Name: www.nineridge.com

I originally had entered nineridge.com for the Domain Name. nineridge.com did not resolve, and I also discovered that the group wiki service did not work (user blogs worked fine though, and this is apparently a known issue/bug, corroborated by several others).

So I changed Domain Name to server.nineridge.com (the FQDN I set up for this server in DNS). The group wiki worked, but still neither nineridge.com nor www.nineridge.com would resolve, even after I entered the www A record in DNS, and I also tried adding www as an alias in Web:Sites:Aliases.

Once I changed the Domain Name to www.nineridge.com, and added server.nineridge.com as an alias under Web:Sites:Aliases, then both server.nineridge.com and www.nineridge.com resolved correctly, but the group wiki only works under www.nineridge.com now. So then I added nineridge.com as an alias under Web:Sites:Aliases. Yet nineridge.com still does not resolve.

Also, strangely, host nineridge.com only returns the MX record: nineridge.com mail is handled by 10 server.nineridge.com. Just to test, I changed another domain I have, wiping out all it's A/CNAME/MX records and adding one A record: chilimac.com points to 209.107.233.6. host chilimac.com returns chilimac.com has address 209.107.233.6.

Message was edited by: scott.gardner

Aug 8, 2008 7:14 PM in response to scott.gardner

I'll put it this way:

nineridge.com is the first level or 'host' FQDN for your zone, right? (I'm making assumptions that you only have one zone for everything 'nineridge.com'-related and you didn't delegate off child domains to another server somewhere else.)

So, ignore whatever you have in YOUR DNS on YOUR server at the moment. Go outside of your LAN, because I can't see inside of your LAN right now.

Go do a whois of nineridge.com. That tells me a bit about you, about your Registrar, and what name servers the rest of us see as the master/slave (primary/secondary if we are to be politically correct).

The meaningful part of the whois record to me is:

Domain Name: NINERIDGE.COM
Registrar: WILD WEST DOMAINS, INC.
Whois Server: whois.wildwestdomains.com
Referral URL: http://www.wildwestdomains.com
Name Server: NS49.DOMAINCONTROL.COM
Name Server: NS50.DOMAINCONTROL.COM
Updated Date: 21-jul-2008
Creation Date: 13-oct-2006
Expiration Date: 13-oct-2009

So ultimately what my browser will pay attention to is whatever my DNS is fed from (ultimately) NS49.DOMAINCONTROL.COM and NS50.DOMAINCONTROL.COM.

Next, we dig nineridge.com for some basics

nineridge.com. 3600 IN A 209.107.233.6
nineridge.com. 3600 IN NS NS49.DOMAINCONTROL.com.
NS49.DOMAINCONTROL.com. 2577 IN A 208.109.14.200
nineridge.com. 86400 IN SOA NS49.DOMAINCONTROL.com.
nineridge.com. 3600 IN MX 10 server.nineridge.com.
server.nineridge.com. 3600 IN A 209.107.233.6
dns.jomax.net. (
2008072000 ; serial
28800 ; refresh (8 hours)
7200 ; retry (2 hours)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
www.nineridge.com. 3600 IN A 209.107.233.6

So while I see from the whois that you should have redundant DNS running (a master and a slave), all I am getting is ns49. Where is ns50? Why is it not in your table? Why isn't it a slave - it's only listed in the delegation data. DNS is redundant by nature (and by specs).

Well, you need to fix that, but in the meantime, my next task is to try to resolve both the host and the www child. Both resolve. So somehow you have your server pointing an apache directive to a folder (or two separate folders) with the same content -- the default content for a leopard-hosted website.

You posted that you set up your SA:Web:Sites:General Domain Name as nineridge.com but that didn't work. It was pointing to a site folder (sandboxed user folder, or the default generic server web space)? Where, exactly, was it pointing? (path, please). And was it enabled in the upper pane? And the web services was running?

I'm not being a dick -- there has to be a reason it failed to work. But if I understand you, it was set up correctly (and the child 'www.nineridge.com' should have been set up as a web server alias).

This is viewing from the outside. I have no idea how you have set up your internal DNS -- but I would tell you to turn OFF your server DNS until you get the outside viewing your domain properly, because again I suspect there is something your machine is feeding your LAN that it shouldn't be. Once you do the following:

get additional DNS servers outside of your network to work with your solitary machine (single point of failure here), and update your zone table to reflect the other name servers

get your host name and all children resolving properly

then you can play with your internal. Yes, it may muck with your OD, but you've got a screwed pooch of a process already, and the sooner you get your stars aligned on doing things in an expected manner, the easier life will be for you down the road.

Aug 9, 2008 12:57 AM in response to scott.gardner

"I deleted the www CNAME and added it as an A record instead on my registrar. Are you saying that I should do the same on my server?"

Not neccesarily, it seems to work. And I don't think CNAMES is deprecated, but there has "always" been "restrictions" on how to use them. It has at least been: one A record for one IP, then use CNAMEs.


If you want to test a public DNS while on the NATed LAN:

host -v www.nineridge.com <public IP DNS>


And don't use the router as DNS (what DNSes is it pointing to?) only use the server DNS on the LAN.

You can use your ISP DNSes as forwarders.


Using the Leopard DNS GUI you have to enter "nineridge.com." as a FQDN if you want to get an A record pointing to 192.168.9.254 for that name ("root domain").

Aug 9, 2008 4:57 AM in response to Paul Vail

Paul,

I have only set up one zone for nineridge.com. I ran a check at dnsstuff.com, and I only get one error, which is that there is no SPF file, true, but not relevant here.

I contacted my registrar (twice). In the first call the support rep swore up and down that everything was fine on their end (and that dig is only supposed to return the first ns it can find), I said "ok," hung up, and called back, and the second rep was more helpful. She acknowledged a problem with their zone file and refreshed it. So that issued should be resolved once that takes effect.

As for my server's DNS and Web config, I am just not seeing what the problem could be...and maybe I don't have a problem on my end and it was just the registrar's zone file causing the problem? Since I am using OS X Server's GUIs to set all this up, I'll link screenshots of my configuration here, so if you see anything wrong please let me know. In Picture6 you'll see that the website root is currently the default, /Library/WebServer/Documents.

http://209.107.233.6/images/Picture1.png
http://209.107.233.6/images/Picture2.png
http://209.107.233.6/images/Picture3.png
http://209.107.233.6/images/Picture4.png
http://209.107.233.6/images/Picture5.png
http://209.107.233.6/images/Picture6.png
http://209.107.233.6/images/Picture7.png

What perplexes me is that I've followed the same basic steps (i.e., the one A record on my server, and the root and a wildcard A record and an MX record on the registrar) countless times for other domains/sites, yet this one is behaving quite differently. host nineridge.com still does not list the A record for me, yet host chilimac.com (the second domain I configured during troubleshooting this problem, using the basic steps I listed above) returns both the A and MX record fine. Also, when I checked nineridge.com on a proxy, it resolved fine. It just won't on my NATd LAN. Additionally...

~: host nineridge.com NS49.DOMAINCONTROL.com
Using domain server:
Name: NS49.DOMAINCONTROL.com
Address: 208.109.14.200#53
Aliases:

nineridge.com has address 209.107.233.6
nineridge.com mail is handled by 10 server.nineridge.com.

~: host nineridge.com NS50.DOMAINCONTROL.com
Using domain server:
Name: NS50.DOMAINCONTROL.com
Address: 208.109.255.25#53
Aliases:

nineridge.com has address 209.107.233.6
nineridge.com mail is handled by 10 server.nineridge.com.

~: host nineridge.com
nineridge.com mail is handled by 10 server.nineridge.com.

(Why doesn't my local DNS return the A record on this host lookup?)

Thanks very much for your help.

Message was edited by: scott.gardner

Aug 9, 2008 5:25 AM in response to Leif Carlsson

Leif,

Thanks for your suggestions. Please see my previous post responding to Paul re: the host lookup results.

I discovered that you cannot put just the root domain as FQDN in SA:Web:Sites:General:Domain Name, or the group wiki will not work. It sounds like a bug to me, and several others have reported it on this forum. So that's why I set the Domain Name to www.nineridge.com, and then added nineridge.com and server.nineridge.com under Web:Sites:Aliases:Web Server Aliases, and server and www A records under DNS:Zones.

So, asking the question, with that nineridge.com alias in place, why shouldn't nineridge.com resolve correctly, a moment of clarity ensued...

I added "nineridge.com." (FQDN) as an A record in DNS. And, voila, that worked! I then went back and deleted the Web:Sites:Aliases entries, which appear to be useless.

So, for the benefit of anyone else coming to this thread with a similar problem, here is my configuration:

DNS:Zones:
General:Primary Zone Name: nineridge.com.
General:Nameservers: server.nineridge.com.
nineridge.com. A (Machine) 192.168.9.254
server A 192.168.9.254
www A 192.168.9.254

Web:Sites:General:Domain Name:
server.nineridge.com

Everything now works as desired. If I am missing something, please let me know, but otherwise I am going to mark this solved.

Message was edited by: scott.gardner

Root domain not resolving correctly

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.