Date: Sat, 11 Oct 2014 11:51:24 -0700 From: Kevin Oberman <rkoberman@gmail.com> To: Christian Alge <lists@burnus.net> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: Server insists on wrong hostname Message-ID: <CAN6yY1sH4tYEXpPDvRc_w65bjtLK6pfXsrZr13rApSKqHQtzEw@mail.gmail.com> In-Reply-To: <54395BC2.7090204@burnus.net> References: <5438F7A4.4070908@burnus.net> <54392A57.7020704@sorbs.net> <54393142.4050005@burnus.net> <5439326B.3070508@sorbs.net> <54393C76.7090702@burnus.net> <54393DBD.4030602@sorbs.net> <5439485F.4000002@burnus.net> <54394AF1.7000807@sorbs.net> <54395BC2.7090204@burnus.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 11, 2014 at 9:33 AM, Christian Alge <lists@burnus.net> wrote: > That returns nothing. > > Well, a rather "brute force" approach would be: > > > > grep -r 'Freie Energie' /etc/ > > > > (Mind, you may need root access to avoid "permission denied" messages > > -- or you culd just ignore them, if you are confident that the files > > in question are sufficiently unlikely to be at fault.) > > > > If that fails, I have a possible other approach in mind, but it's a bit > > of a mess, so I'd rather not even try to describe it unless nothing else > > works. > > > > Peace, > > david > > > I suspect some script is executing a hostname(1), but this is just guessing. I'd suggest adding "hostname" in a few places in startup scripts (/etc/rc.d and /usr/local/etc/rc.d). If you see which script is doing it, use rcorder(8) to see what scripts could be triggering it. Turning on debugging in startup may also help, but will produce a LOT of output during startup and shutdown. (Set rc_debug="YES") Unrelated, but important... you mentioned editing /etc/defaults/rc.conf. This is a VERY bad idea. Those scripts are always overridden by the matching scripts, if any, in /etc. System upgrades assume that they are untouched and changing them can really break things. If /etc/rc.conf has a "hostname="freieenergie" line, it will override anything in /etc/defaults/rc.conf.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1sH4tYEXpPDvRc_w65bjtLK6pfXsrZr13rApSKqHQtzEw>