public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Oli Schmidt <oli@kernelpanic.ch>
To: <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] domainname command shows blank - NIS/YP domain name?
Date: Wed, 13 Jan 2010 20:49:48 +0100	[thread overview]
Message-ID: <b5eb03eac4338667a88b99abbb9416c0@localhost> (raw)
In-Reply-To: <38C2C345-4657-4444-A4EC-6704766B7891@stellar.eclipse.co.uk>

On Wed, 13 Jan 2010 02:22:47 +0000, Stroller
<stroller@stellar.eclipse.co.uk> wrote:
> Ok, this question comes about because I noticed that I manually have  
> to set $mydomain in Postfix. I'm about to set up Samba, too, and  
> thinking that I might have to manually set the domain name in that,  
> too, I thought to investigate this. Surely Postfix should get its  
> hostname & domainname from the system itself, right?
> 
> $ hostname
> hex
> $ dnsdomainname
> stroller.uk.eu.org
> $ domainname
> (none)
> $ domainname -v
> getdomainname()=`(none)'
> (none)
> $
> 
> This mention of getdomainname agrees with the comments in Postfix's  
> main.cf:
> 
> # The myhostname parameter specifies the internet hostname of this
> # mail system. The default is to use the fully-qualified domain name
> # from gethostname(). $myhostname is used as a default value for many
> # other configuration parameters.
> 
> `man domainname` tells me that `domainname` should in particular "show  
> or set the system's NIS/YP domain name".
> 
> Can anyone explain the significance of this, please?
> 
> /etc/conf.d/net.example suggests that "it's rare that you would need  
> to" set a NIS domainname, "but you can anyway", and the Gentoo Linux  
> x86 Handbook [1] says "if you don't know what [a NIS domain] is, then  
> you don't have one".
> 
> I guess that a typical desktop system might use ssmtp and not need  
> either postfix or a NIS domainname, however I'm still confused. I  
> guess the best question I can ask is why Postfix might choose to use  
> this apparently-less-common config to set its hostname? I really feel  
> like I must be missing out. It's not a massive hardship to set  
> $mydomain manually in Postfix on several boxes, it just seems like I  
> ideally shouldn't have to. Is there anyone who can help clarify for me?

Hi

The only way found for me was echo the domainname on startup onto proc

echo domainname.ch > /proc/sys/kernel/domainname

Does that work for you too ?

Oliver



      reply	other threads:[~2010-01-13 19:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13  2:22 [gentoo-user] domainname command shows blank - NIS/YP domain name? Stroller
2010-01-13 19:49 ` Oli Schmidt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b5eb03eac4338667a88b99abbb9416c0@localhost \
    --to=oli@kernelpanic.ch \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox