On 08/22/2017 11:00 AM, Rodney Baker wrote:
On Tuesday, 22 August 2017 23:04:16 ACST James Knott wrote:
On 08/22/2017 09:28 AM, Rodney Baker wrote:
On Tuesday, 22 August 2017 21:11:20 ACST Roger Oberholtzer wrote:
On both Tumbleweed and Leap 42.3, if I set the domain name in YaST2 (Network Settings -> Hostname -> Domain Name), it seems not to be kept. If I check after saving it, it is once again empty. And the hostname command does not report it. In my case, the domain name is ramboll.ramboll-group.global.network, which I think should be accepted. It is not my choice for the domain name. It is the company domain.
Isn't this the way to set the domain name? You could just edit /etc/hostname (which is what I do to set the hostname on pretty much all the systems that I administer). /etc/hostname on my system includes the domain name. I had to add the domain to the Domain Search box, to get the local domain recognized. I don't think that should be necessary, as that setting is normally for additional domains. /etc/hostname should hold the fqdn. /etc/resolv.conf has the default domain that is appended to dns queries if none is specified; thus, if my machine does a dns query for ‘host’, it is sent to the dns server as host.default.domain, where default.domain is the default search domain specified in the “search” parameter in /etc/resolv.conf.
It has been this way in (SysV init based) Linux ever since I’ve been using it (since Red Hat 2.0 days).
Note that /etc/resolv.conf (and possibly even /etc/hostname) is generated by NetworkManager if you’re using network manager to manage your network interfaces. If you’re using the legacy if-up/if-down settings, then either edit manually or use Yast. For basic tasks like that, and because the debian- based boxes I administer don’t have YaST, I find manual editing easier.
[On Debian Jessie and later, when using dhcp, one has to set the values for resolv.conf in dhclient.conf instead, as the dhcp client writes resolv.conf. I had to find this out the hard way.]
I have one system running network manager and it gets the domain in both those files. The other, is static config with ifup etc. That one does not show the domain name in Yast. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org