mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: be-news06@lina.inka.de (Bernd Eckenfels)
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Add compile domain
Date: Sat, 27 May 2006 04:13:19 +0200	[thread overview]
Message-ID: <E1FjoIp-0003RG-00@calista.inka.de> (raw)
In-Reply-To: <20060525202917.GB21926@csclub.uwaterloo.ca>

Lennart Sorensen <lsorense@csclub.uwaterloo.ca> wrote:
> I always thought that was how it worked.  The first hostname in
> /etc/hosts on the line containing the short name was used as the FQDN.
> Maybe that is only a gnu hostname thing.  I seem to recall solaris had a
> domainname file that was used to find the domain part of the FQDN
> instead.

yes this is how hostname works (see the man page)

# Technically: The FQDN is the name gethostbyname(2) returns for the host
# name returned by gethostname(2).  The DNS domain name is the part after
# the first dot.

# Therefore  it  depends on the configuration (usually in /etc/host.conf)
# how you can change it. Usually (if the hosts file is parsed before DNS or
# NIS) you can change it in /etc/hosts.

And yes, this is broken, but who used hostname -f anyway?

BTW: the above works also (better?) if you set the utsname to the FQDN like
Linus does.

Gruss
Bernd

  parent reply	other threads:[~2006-05-27  2:13 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-25 14:17 [PATCH] Well, Linus seems to like Lordi Kyle McMartin
2006-05-25 15:46 ` Linus Torvalds
2006-05-25 16:02   ` Steven Rostedt
2006-05-25 16:15   ` alan
2006-05-25 16:26     ` Linus Torvalds
2006-05-25 16:43       ` Jan Engelhardt
2006-05-26 23:47         ` Folkert van Heusden
2006-05-27  7:05           ` Oliver Neukum
2006-05-25 16:37 ` [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...) Jan Engelhardt
2006-05-25 16:48   ` Linus Torvalds
2006-05-25 18:40     ` Jan Engelhardt
2006-05-25 18:47       ` Linus Torvalds
2006-05-25 18:53         ` [PATCH] Add compile domain İsmail Dönmez
2006-05-25 18:59           ` Jan Engelhardt
2006-05-25 19:00             ` İsmail Dönmez
2006-05-25 18:54         ` [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...) Alistair John Strachan
2006-05-25 19:02           ` Jan Engelhardt
2006-05-25 21:14             ` [PATCH] Add compile domain Martin J. Bligh
2006-05-25 21:38               ` Alistair John Strachan
2006-05-25 22:12                 ` Måns Rullgård
2006-05-25 21:43               ` Måns Rullgård
2006-05-25 19:06           ` [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...) Linus Torvalds
2006-05-25 20:29           ` Lennart Sorensen
2006-05-26 11:56             ` Jan Engelhardt
2006-05-26 21:11               ` Christian Trefzer
2006-05-27  2:14                 ` [PATCH] Add compile domain Bernd Eckenfels
2006-05-29 12:25                 ` [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...) Gabor Gombas
2006-05-29 23:13                   ` [PATCH] Add compile domain Bernd Eckenfels
2006-05-30 13:54                     ` Gabor Gombas
2006-05-27  2:13             ` Bernd Eckenfels [this message]
2006-05-25 19:43         ` [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...) bjdouma
2006-05-25 20:13       ` Lennart Sorensen
2006-05-25 20:34         ` H. Peter Anvin
2006-05-27  2:19         ` [PATCH] Add compile domain Bernd Eckenfels
2006-05-29 12:08     ` [PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...) Gabor Gombas
2006-05-29 20:20       ` Linus Torvalds
2006-05-29 20:47         ` Joshua Hudson
2006-05-29 23:17           ` [PATCH] Add compile domain Bernd Eckenfels

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=E1FjoIp-0003RG-00@calista.inka.de \
    --to=be-news06@lina.inka.de \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®