Mailinglist Archive: opensuse (958 mails)

< Previous Next >
Re: [opensuse] Where to set the domain name? - Leap 15.1 beta
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Tue, 07 May 2019 20:35:37 +0200
  • Message-id: <qasj5p$652$1@saturn.local.net>
James Knott wrote:

On 05/07/2019 02:15 PM, Andrei Borzenkov wrote:
07.05.2019 17:42, James Knott пишет:
On 05/07/2019 09:52 AM, Per Jessen wrote:
According to the man page, the 'domain' option is still there, but
I'm not sure how it differs from the search ditto.
It does not.

According to the man page, the local domain is supposed to be
listed as
such.
There is no such thing as "local domain" at all. Host does not have
any domain.

From the resolv.conf man page:

domain Local domain name.
Most queries for names within this domain can use short names
relative to the local domain.  If set to '.', the root domain
is considered.  If no domain entry is present, the domain is
determined from the local hostname returned by gethostname(2);
the domain part is taken to be everything after the first '.'.
Finally, if the hostname does not contain a domain part, the
root domain is assumed.

That sure looks to me like local domain.  Then on search domains, we
have:

search Search list for host-name lookup.
The search list is normally determined from the local domain
name; by default, it contains only the local domain name.
This may be changed by listing the desired domain search path
following the search keyword with spaces or tabs separating
the names.

Yep, there's supposed to be a local domain name.

Maybe that man page was supposed to have been updated long ago. I have
no 'domain' statement in any resolv.conf, anywhere. I wonder if there
is even a dhcp option for setting it. (if it's important, there ought
to be one).



--
Per Jessen, Zürich (11.1°C)
http://www.dns24.ch/ - free dynamic DNS, made in Switzerland.


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
This Thread