Date: Sat, 11 Oct 2014 23:22:45 +0100 From: Ben Morrow <ben@morrow.me.uk> To: Christian Alge <lists@burnus.net>, freebsd-stable@freebsd.org Subject: Re: Server insists on wrong hostname Message-ID: <20141011222243.GA23187@anubis.morrow.me.uk> In-Reply-To: <CAN6yY1sH4tYEXpPDvRc_w65bjtLK6pfXsrZr13rApSKqHQtzEw@mail.gmail.com> 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
Quoth Kevin Oberman <rkoberman@gmail.com>: > On Sat, Oct 11, 2014 at 9:33 AM, Christian Alge <lists@burnus.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141011222243.GA23187>