On Wednesday, 23 August 2017 0:42:48 ACST James Knott wrote:
[...]
/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.
What are the permissions on those files on the one that appears broken? (Should be 644 or 640, I think). What is actually in those files, and if you manually edit them do the values then appear in YaST? If you change the values via YaST, does the time stamp on those files change? If you do manually edit them, does everything except YaST work as expected? On my desktop system (using NetworkManager), when I open network settings in YaST I get a popup stating that YaST is unable to change some settings because the network is managed via NetworkManager, but YaST shows only the hostname in the Hostname field (the output of `hostname -s`), the domain name in the Domain Name field (the output of `hostname -d`) - both are read from /etc/ hostname - and the Domain Search field contains the search parameter from / etc/resolv.conf. What outputs do you get running hostname -s and hostname -d (hostname doesn’t have to be run as root) on the apparently broken system? -- ============================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au CCNA #CSCO12880208 ============================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org