Mailinglist Archive: opensuse (958 mails)

< Previous Next >
Re: [opensuse] Where to set the domain name? - Leap 15.1 beta
  • From: Knurpht-openSUSE <knurpht@xxxxxxxxxxxx>
  • Date: Tue, 07 May 2019 02:27:09 +0200
  • Message-id: <4249227.ZRYTvo2EKF@knurpht-hp>
Op dinsdag 7 mei 2019 02:18:04 CEST schreef Carlos E. R.:
On 07/05/2019 00.44, Knurpht-openSUSE wrote:
Op dinsdag 7 mei 2019 00:34:01 CEST schreef Darryl Gregorash:
On 2019-05-06 04:16 PM, Knurpht-openSUSE wrote:
Op maandag 6 mei 2019 22:43:47 CEST schreef Carlos E. R.:
All that I'm trying to say is that you are barking up the wrong tree.
If
your concern is (non) working "hostname -f" or how to associate
dynamic
IP with static label it is not related to "Domain Name" field in YaST.

I'm not barking. I'm asking what is the correct place to set the domain
name in Leap. It is very simple!

You are basically saying "nowhere".

Yes, you are barking up the wrong tree. You, on 15.1, also have YaST >
Network Services > Hostnames. Set as many as you want. It will add the
hostname/domain

That assumes a fixed known IP, and that is not the case.

That assigns a name to an IP, not to an interface or machine. I believe
Carlos wants to give each machine a name, then obtain its IP by DHCP.

If set properly in the hosts file, also hostname -f works as expexted.

Again, that assumes a fixed known IP, and that is not the case.

See
knurpht@salt:~> hostname
salt
knurpht@salt:~> hostname -f
salt.knurpht.nl
knurpht@salt:~> cat /etc/resolv.conf | grep search
search knurpht.nl
knurpht@salt:~>

Just to mention: On this machine I have a dozen of domains and a plethora
of subdomains. No FQDN or DNS issues at all. Carlos could even add the
entire scope of DHCP addresses for the same domainname, it would still
work. And AFAIK that is what Carlos wants.

Different names and domains to a single machine? I don't think that is
possible. Even if done, it breaks reverse resolution.
knurpht@salt:~> cat /etc/hosts
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost
127.0.0.1 knurphtvps knurphtvps
127.0.0.1 salt.knurpht.nl salt.knurpht.nl
127.0.0.1 owncloud.knurpht.nl owncloud.knurpht.nl
127.0.0.1 cloud.knurpht.nl cloud.knurpht.nl
127.0.0.1 mijncloudkantoor.nl mijncloudkantoor.nl
127.0.0.1 office.knurpht.nl office.knurpht.nl
127.0.0.1 media.knurpht.nl media.knurpht.nl
127.0.0.1 phpmyadmin.knurpht.nl phpmyadmin.knurpht.nl
127.0.0.1 schermclub.knurpht.nl schermclub.knurpht.nl
XXX.XXX.XXX.XXX salt.knurpht.nl salt.knurpht.nl
XXX.XXX.XXX.XXX knurpht.nl knurpht.nl
XXX.XXX.XXX.XXX mail.knurpht.nl mail.knurpht.nl
XXX.XXX.XXX.XXX owncloud.knurpht.nl owncloud.knurpht.nl
XXX.XXX.XXX.XXX cloud.knurpht.nl cloud.knurpht.nl
XXX.XXX.XXX.XXX mijncloudkantoor.nl mijncloudkantoor.nl
XXX.XXX.XXX.XXX office.knurpht.nl office.knurpht.nl
XXX.XXX.XXX.XXX media.knurpht.nl media.knurpht.nl
XXX.XXX.XXX.XXX phpmyadmin.knurpht.nl phpmyadmin.knurpht.nl
XXX.XXX.XXX.XXX schermclub.knurpht.nl schermclub.knurpht.nl
XXX.XXX.XXX.XXX office.knurpht.nl office.knurpht.nl

# special IPv6 addresses

::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
knurpht@salt:~>

Do you believe me now? Please stop. These ( and there's a lot more ) all work.
And yours doesn't. So I guess I'm wrong.

--
Gertjan Lettink a.k.a. Knurpht
openSUSE Board Member
openSUSE Forums Team



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

< Previous Next >
This Thread
Follow Ups