Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jul 30, 2012 7:18 am 
Offline
Senior Member

Joined: Thu Oct 08, 2009 5:07 pm
Posts: 99
Hi

I've always followed the official Linode guide to use the two DNS resolvers listed in 'Remote Access' in /etc/resolv.conf

e.g.:

nameserver 74.207.241.5
nameserver 74.207.242.5
options rotate


I built a new Linode yesterday, and the resolver was set to 192.168.1.1. I assume this is pointing at an internal daemon on the Linode.

Is there an advantage to either one? Perhaps the second method caches?


Top
   
PostPosted: Mon Jul 30, 2012 3:44 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
It looks like 192.168.1.1 points to somewhere in Linode's internal (private IP) network, rather than your Linode.

_________________
/ Peter


Top
   
PostPosted: Mon Jul 30, 2012 9:04 pm 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 567
Website: http://www.mattnordhoff.com/
Since no one from Linode has chimed in with the official story, I'll add my 0.02 ameros.

My guess is that it's a misconfiguration, either 1.) An internal setting that leaked out when Linode built the disk image, 2.) A DHCP mistake, 3.) Some sort of bizarre distro mistake, or 4.) Something you accidentally did.

If it's reproducible -- e.g. with a new, virgin disk image -- I'd file a ticket.

Edit: From my node in Dallas, 192.168.1.1 is accessible but does not have an accessible DNS resolver.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
PostPosted: Mon Jul 30, 2012 9:08 pm 
Offline
Senior Member

Joined: Thu Oct 08, 2009 5:07 pm
Posts: 99
I may file a ticket as mnordhoff suggests. I think there is some borkage on what gets used as a hostname too.


Top
   
PostPosted: Mon Jul 30, 2012 9:15 pm 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 567
Website: http://www.mattnordhoff.com/
The default hostname should be the boring li123-456 one based on your IP address and its default rDNS, set by the DHCP client. What's wrong?

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
PostPosted: Mon Jul 30, 2012 9:17 pm 
Offline
Senior Member

Joined: Thu Oct 08, 2009 5:07 pm
Posts: 99
I believe it got set as localhost.localdomain on one and the full li123-456.members.linode.com on another. I'm setting up a new one in a few days, so I'll check and open a ticket if it is strange.

Is there any problem with having a hostname as the full li123-456.members.linode.com vs li123-456 ?


Top
   
PostPosted: Wed Aug 01, 2012 11:04 am 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
Some distributions, depending on their init system, don't always play nicely when it comes to having their hostname set by DHCP. Usually due to an unavoidable race condition. The systems boot too fast for their own good. :D

Re: Resolver -- it may be an artifact left over from when the image was built. However, if you are using DHCP the file should be overwritten. It's quite possible, however, that the file will be altered if you switch to static IP addresses. If you made this change, you should be manually setting your resolv.conf file anyhow.

-Tim

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
PostPosted: Wed Aug 01, 2012 6:07 pm 
Offline
Senior Member

Joined: Thu Oct 08, 2009 5:07 pm
Posts: 99
Is there any problem with having the hostname as localhost? I don't plan on using that in production, just seemed to be the default today.


Top
   
PostPosted: Fri Aug 03, 2012 1:23 pm 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
jonny5alive wrote:
Is there any problem with having the hostname as localhost? I don't plan on using that in production, just seemed to be the default today.


No, some distributions default to this if no hostname is set and if one cannot be obtained by DHCP. Your best bet is to set one manually as part of your system's configuration.

-Tim

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group