On 2017-08-23 16:19, Carlos E. R. wrote:
On 2017-08-23 12:38, Dave Howorth wrote:
On Tue, 22 Aug 2017 21:20:56 -0500 "David C. Rankin" <> wrote:
I run bind too (not on my laptop, but locally) and you still need the /etc/hosts entry. You are not providing an IP for your hostname, you are just providing correct resolution between localhost and your fully-qualified hostname. It can have any IP required provided by your network device config or dhcp.
I don't pretend to understand how this all works but this can't be the whole story. 127.0.0.1 is localhost and that is on a different interface to your fully-qualified hostname. Indeed 'your fully-qualified hostname' isn't even a well-defined term, because if you have more than one interface on the computer then they have different fully-qualified hostnames. I've never put the FQ name on the same line as the loopback name.
At least on the past there was a tick box in YaST that would create an entry with 127.0.0.2 to the fully qualified name. But this entry breaks postfix. It is better to put the fqdn on the local network interface, not locahost.
Tickbox is in yast, network settings, Hostname tab: "Assign Hostname to Loopback IP" -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)