From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.62)
	(envelope-from <gentoo-user+bounces-56962-garchives=archives.gentoo.org@gentoo.org>)
	id 1GxUCF-0006gS-BE
	for garchives@archives.gentoo.org; Thu, 21 Dec 2006 20:07:19 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kBLK4kpT026520;
	Thu, 21 Dec 2006 20:04:46 GMT
Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168])
	by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kBLK1H8E018968
	for <gentoo-user@lists.gentoo.org>; Thu, 21 Dec 2006 20:01:18 GMT
Received: by ug-out-1314.google.com with SMTP id z38so2648932ugc
        for <gentoo-user@lists.gentoo.org>; Thu, 21 Dec 2006 12:01:14 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=ez4YCsnDpza3V8qWjj4dZzQ/chQ2O8YEiKRadrTAp+9rOVhmcEONz/Tr6qbs0iyzzCCMmSuIKnKoevmRfAVw13htoLIVPuzMwdNzSbaumWy/bvYecByJn/wLxeDpA8sdQYV2gkNbrXswhCciqKEw1lh/nvQG1fCHX3Kp234rSIw=
Received: by 10.82.165.1 with SMTP id n1mr1988295bue.1166731274743;
        Thu, 21 Dec 2006 12:01:14 -0800 (PST)
Received: by 10.82.178.3 with HTTP; Thu, 21 Dec 2006 12:01:14 -0800 (PST)
Message-ID: <8a0028260612211201y1f72fe93r2d460b31ab3fe1f6@mail.gmail.com>
Date: Thu, 21 Dec 2006 20:01:14 +0000
From: "Jeff Rollin" <jeff.rollin@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Misconfigured system
In-Reply-To: <9acccfe50612211116l393807b5m1e37ea7694309f89@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <9acccfe50612211116l393807b5m1e37ea7694309f89@mail.gmail.com>
X-Archives-Salt: bd094e82-698c-4983-97a6-4c27e664e977
X-Archives-Hash: f8890048106cd526e9f644b140b38649

On 21/12/06, Kevin O'Gorman <kogorman@gmail.com> wrote:
> I'm beginning to think my system configuration is a mess.  It started with
> worrying about Postfix, but has quickly escalated.
>
> I was trying to figure out what Postfix knows and where it knows it when
> I found that I seem to have no domain name.  That is, the shell command
> domainname(1) returns "(none)".  This seems odd, because I've got
> it set up as nearly as I can see according to gentoo docs
>    http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8#doc_chap2
> since my /etc/conf.d/net contains (among other things)
>    dns_domain="kosmanor.com"
> BTW: it also says to set dns_domain_lo, but I have no name for my
> internal network, and
> haven't seen a reason to create one.
>
> Nevertheless, even the system calls getdomainname(2) and uname(2) return the
> string "(none)".
>
> What am I missing?
>

That's because the command domainname and the systemcalls
getdomainname(2) are return the NIS domainname, not the IP domainname.
uname(2) returns the domainname of the machine the kernel was compiled
on, at the time when it was compiled. To find the tcp/ip domain name
of a system, use hostname(1).

Yes, it is daft - but, that's what happens when an OS acquires a
history, I suppose

Jeff.
-- 
gentoo-user@gentoo.org mailing list