| Linode Forum https://forum.linode.com/ |
|
| Messed up DNS on simplest possibe linode. https://forum.linode.com/viewtopic.php?f=19&t=5362 |
Page 1 of 1 |
| Author: | kdog [ Sun Mar 28, 2010 3:04 pm ] |
| Post subject: | Messed up DNS on simplest possibe linode. |
I need a little push getting DNS to work. Here is my /etc/hosts: Code: 127.0.0.1 localhost.localdomain localhost where mmm.nnn = my last two quads of my linode's ip host=my linode; mydomain registered at go data. The domain was registered a week ago, and GoDaddy apparently automatically parked records for mydomain.net mail.mydomain.net www.mydomain.net So about 24 hours ago, I logged into GoDaddy and initaited pointing the nameservers for mydomain.net to ns?.linode.com for ? = 1,2,3,4. Then I logged into linode.com and used the DNS Manager to create this record: Code: ; mydomain.net [83760] The mail.mydomain.net and www.mydomain.net records got updated pretty quickly (less than an hour) and a few hours later the bare subdomain 'mydomain.net' was also being served by Linode's DNS. I verified this with dig and ping. But! A day later, host.mydomain.net remains invisible. Here is what dig says: Code: root@host:~# dig host Again, I have redacted my true hostname as 'host'. Incidentally, I have two MX records becasue (1) I already had one from GoDaddy and (2) I created another one after following the (As an aside, I currently do not have reverse ARP for this host because... Linode.com obviously does not see the A record for host any better than dig does...which is to say not at all yet.) I'm guessing I have waited long enough for the DNS changes to propagate. The only thing that makes 'host' sprecial (compared to 'mail' or 'www') is that 'host' is the actual hostname of the linode. Is putting an actual hostname in an A record a misconfiguration? I've been reading about DNS, but I am stuck. Any clues will be appreciated. Thanks![/quote] |
|
| Author: | drake127 [ Sun Mar 28, 2010 3:24 pm ] |
| Post subject: | |
Have you set Linode DNS servers in your registrar's domain configuration? Try to ask Linode servers (and possibly yours) with argument of dig: @dns.server.tld |
|
| Author: | irgeek [ Sun Mar 28, 2010 3:33 pm ] |
| Post subject: | |
I did manage to figure out which domain you're asking about, and the records in the DNS Manager are being served correctly by our servers. Since you've decided to hide information, though, I have to make a few guesses as to why you're having trouble. It looks like you're trying to lookup the bare hostname without the domain (dig host instead of dig host.example.com) and the NXDOMAIN response from the root server backs that up. Looking up your bare hostname like that won't work unless your domain name is in your list of search domains (in /etc/resolv.conf). If you do the lookup with the full hostname it should work. Also, a couple of quick notes about dig: 1) /etc/hosts has nothing to do with DNS and dig ignores it. 2) Adding the '+trace' flag to your dig queries usually helps to determine where the problem is. -James |
|
| Author: | kdog [ Sun Mar 28, 2010 3:41 pm ] |
| Post subject: | |
@drake: Thanks for reading and taking the time to reply. I think so... the first thing I did was log into my registrar's website and use their interface to set the DNS dor mydomain.net to the Linode.com DNS. I know that worked, because I am now serving webpages from my linode and (with some problems) sending and receiving mail with postfix/dovecot on my linode. I am just (re)learning how to use dig and issued this command from my laptop 'rubuntu' at home: Code: kdog@rubuntu:~$ dig @ns1.linode.com host.mydomain.net where again I have replaced th actual machine name with 'host' and my registered domain with 'mydomain'. Dig got the correct IP number for my linode, too! So why does just a plain old 'dig host.mydomain.net' return NXDOMAIN, especially when 'dig other.mydomain.net' finds and returns a domain record, for other=mail,www ? Now even more puzzled, but maybe that's telling me something. Thanks. The plot thickens! |
|
| Author: | kdog [ Sun Mar 28, 2010 3:50 pm ] |
| Post subject: | |
@lrgeek: Thanks. 1. Thank you for confirming that dig is not "influenced" by /etc/hosts. It would be weird if it were. 2. I have tried dig with the fqdn of my host, not just the bare hostname. Sorry for the confusion. Here is actual output, again withy redactions: Code: kdog@rubuntu:~$ dig host.mydomain.net But if I 'dig @ns1.linode.com host.mydomain.net' I actually get a good record! (See another post in this thread.) 3. I appreciate you looking at my actual name records. I am redacting only to minimize casual drive-by shootings before my site is better secured while looking for some help on the open forum. If you think I should open a private ticket, I will do that. Thanks! |
|
| Author: | kdog [ Sun Mar 28, 2010 5:03 pm ] |
| Post subject: | [SOLVED] |
I opened a ticket to provide more detailed information about my domain and had an answer very quickly. Great service! For whatever reason, Google's DNS servers (which I use in my home office) have picked up all but one of my name records. The missing record is the host.mydomain.net record. So I pointed my office router to OpenDNS and everything works great. In retrospect, all I had to do to figure this out and pick a DNS was dig @<nameserver> host.mydomain.net Note that I am not endorsing or disparaging any free DNS over any other. I'm just sharing what I learned. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|