Re: keepalived and DNS

Anders Henke <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Organization 1&1 Internet AG
Message-ID <[email protected]>
On 07.04.2015, Assaf Muller wrote:
> > > If you don't have access to DNS, you should still be able to manage
> > > /etc/hosts.
> > 
> > Right. I believe this is the current workaround. I'd have to check
> > with the people that reported this to problem from the OpenStack
> > community. It would be best for them to comment.
> 
> That's what we did for one of our installers, but that's just one... We can't
> guarantee that every machine out there is configured properly. As Ryan said
> below, this workaround doesn't change the faulty behavior of keepalived
> we're seeing here.

I've also seen a lot of hosts using a uname.nodename "(none)", "unknown" or 
"localhost", so solely relying on that information isn't good as well :)


If /etc/hosts isn't configured properly, a system may generate tons of DNS queries, asking for its own name or IP address. Not just because of keepalived, but also various other daemons and software does use the systems canonical name.

The best situation is where the system doesn't have access to DNS at all: everything is going to fail :)

Whenever part of the network fails or the DNS resolver is temporarily broken, 
one can expect those DNS queries to fail as well, including any applications 
relying on that information.

The point is: other applications do rely on this information as well.
So why don't fix it right there? The fix is simple and pretty straight-forward.

I don't see a faulty behaviour which requires a fix in keepalived and do expect other applications misbehaving as well in such a situation.

Another option were to change the defaults to hardcoded ones, which literally ask for being changed. About anyone in my area will want to change a line
	'email_from root@localhost'
to something meaningful.

Best,

Anders
-- 
1&1 Internet AG              Expert Systems Architect (IT Operations)
Brauerstrasse 50             v://49.721.91374.0
D-76135 Karlsruhe            f://49.721.91374.225

Amtsgericht Montabaur HRB 6484
Vorstand: Frank Einhellinger, Robert Hoffmann, Markus Huhn,
Hans-Henning Kettler, Uwe Lamnek
Aufsichtsratsvorsitzender: Michael Scheeren

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.