From owner-freebsd-stable@FreeBSD.ORG Sat Oct 11 22:32:27 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ECAF0652 for ; Sat, 11 Oct 2014 22:32:27 +0000 (UTC) Received: from isis.morrow.me.uk (isis.morrow.me.uk [204.109.63.142]) by mx1.freebsd.org (Postfix) with ESMTP id C3D8FE2 for ; Sat, 11 Oct 2014 22:32:26 +0000 (UTC) Received: from anubis.morrow.me.uk (unknown [93.89.81.46]) (Authenticated sender: mauzo) by isis.morrow.me.uk (Postfix) with ESMTPSA id 581C145087; Sat, 11 Oct 2014 22:22:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 isis.morrow.me.uk 581C145087 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=morrow.me.uk; s=dkim201101; t=1413066170; bh=Wd3YyG53XlAUfFVjnfGhcKL0bvmF5OooRaOF23UyeLQ=; h=Date:From:To:Subject:References:In-Reply-To; b=Zht/vogFjAPQNoglu76C4ujRe+u5BaaRCyNux+2+W8HNue99VGj2cw/QmbuoTU5uh 7ewhdsJcmlt9fiQ+OQSxkJJUE4G2dAcPXa2EQqWPGgfN2exG7gXl1UMkpQj1c5h3EH 4Gd18F6S7xplhsiNTTGOWNgHWj5MKIZav7/J/giA= X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98.4 at isis.morrow.me.uk Received: by anubis.morrow.me.uk (Postfix, from userid 5001) id 1F9A8153BE; Sat, 11 Oct 2014 23:22:45 +0100 (BST) Date: Sat, 11 Oct 2014 23:22:45 +0100 From: Ben Morrow To: Christian Alge , freebsd-stable@freebsd.org Subject: Re: Server insists on wrong hostname Message-ID: <20141011222243.GA23187@anubis.morrow.me.uk> Mail-Followup-To: Christian Alge , freebsd-stable@freebsd.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Newsgroups: gmane.os.freebsd.stable User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2014 22:32:28 -0000 Quoth Kevin Oberman : > On Sat, Oct 11, 2014 at 9:33 AM, Christian Alge wrote: > > > > 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. > > > > That returns nothing. > > 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. You could also try renaming /bin/hostname to /bin/hostname.real and putting something like this in /bin/hostname: #!/bin/sh if [ $# -gt 0 ] then echo "PID: $$" >>/tmp/hostname.log echo "ARGS: $*" >>/tmp/hostname.log /bin/ps axd >>/tmp/hostname.log fi exec /bin/hostname.real "$@" Remember to put it back afterwards. (It ought to be possible to do this by using dtrace to catch calls to set the kern.hostname sysctl, but I don't know how to do that.) Ben