| Linode Forum https://forum.linode.com/ |
|
| Subdomains - not always working https://forum.linode.com/viewtopic.php?f=19&t=2867 |
Page 1 of 1 |
| Author: | pod [ Fri Sep 28, 2007 11:15 am ] |
| Post subject: | 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. |
|
| Author: | pod [ Fri Sep 28, 2007 11:17 am ] |
| Post subject: | |
ps- I'm not running DNS on my linode. |
|
| Author: | Internat [ Fri Sep 28, 2007 5:42 pm ] |
| Post subject: | |
Quote: 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 |
|
| Author: | SteveG [ Fri Sep 28, 2007 5:43 pm ] |
| Post subject: | |
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. |
|
| Author: | pod [ Tue Oct 02, 2007 3:58 pm ] |
| Post subject: | |
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! |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|