Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Nov 2011 18:18:00 +0100
From:      "Michael Ross" <gmx@ross.cx>
To:        freebsd-questions@freebsd.org, "Moritz Wilhelmy" <moritz@wzff.de>
Subject:   Re: Disable automatic "Fallback" IP on 9.0-RC2 when a hostname cannot be resolved
Message-ID:  <op.v5kc0atcg7njmm@michael-think>
In-Reply-To: <20111126154422.GR16096@barfooze.de>
References:  <20111126154422.GR16096@barfooze.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 26.11.2011, 16:44 Uhr, schrieb Moritz Wilhelmy <moritz@wzff.de>:

> Hello,
>
> my 9.0-RC2 installation on furnace.wzff.de keeps connecting to wzff.de
> if a hostname cannot be resolved. E.g. telnet foobar 25 connects me to
> the SMTP server on wzff.de, same thing for another jail that uses a
> subdomain of barfooze.de and tries to connect to barfooze.de if it can't
> find a suitable DNS or /etc/hosts record.
>
> I dislike when computers try to be smart like this, and I can't really
> think how this is useful, and it also doesn't happen on another machine
> that has a subdomain of something set as hostname and is running 8.2, so
> I want to disable it. Can anyone give me a hint how to do it?


Add e. g. ``search local'' to /etc/resolv.conf.
The behaviour is explained in man resolv.conf, "search".

Or disable wildcard entries in your dns server config.

Regards,

Michael



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.v5kc0atcg7njmm>