Subdomains - not always working

Hey Folks, hopefully someone can help with my noobiness setting up DNS.

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 www.example.com. Although, I must admit this was done soley by trial and error. Not sure what implications I have with the setting at the registrar.

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

ps- I'm not running DNS on my linode.

> 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

I'm not sure about having NS records in your zone that don't match the NS setting at the register (which is what goes into the TLD servers, I believe). It's probably legal, but it wouldn't surprise me to learn that some resolvers didn't handle it very well.

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.

Thx all, got it working.

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!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct