Subdomains - not always working
Here's my scenario:
I just setup a new linode and am trying to get subdomains to work.
At my registrar (verio.com), I changed my zone file so the NS records point to ns1.linode.com and ns2.linode.com (I didn't change the main nameserver records). I also have updated the zone file A records to point to my linode ip address.
At linode-> dns-manager -> zone setup for my domain: I have setup the NS record also to ns1.linode.com and ns2.linode.com
So far, this works for
Ok, now for the subdomains:
At my registrar, I setup a CNAME record to point sub1.example.com to example.com. I also setup the same record on my linode->dns-manager records.
After a shortwhile, sub1.example.com was working. The next day it was not working.
Any ideas? Have I hosed things up with the two DNS's out there? Thanks in advance for the help.
4 Replies
> Ok, now for the subdomains:
At my registrar, I setup a CNAME record to point sub1.example.com to example.com. I also setup the same record on my linode->dns-manager records.
You need to do that at linodes dns manager, not at your registers.
Why it probablyworked for a while was that your server had cached the details of your old nameserver, and was still using that..
Then when the cache expired it tried to use the linode ones and as such didnt get a hit
Another thought: are all of your various nameservers in sync? Remember, it's semi-random which one will be used, and there's no fallback if the first one responds, even negatively. You might poke at different servers using dig, which provides lots of useful info and gives very good control over exactly how the name is resolved.
First, I made both dns match, including pointing my registrar to the linode nameservers. Then I added the CNAME records at the linode dns manager.
It's all been working swell for the past few days, so everything should have propagated around the 'nets by now.
Rock on!