[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where does `hostname -f` derive the domainname from?



On Sun, 2022-06-26 at 16:52 -0400, Greg Wooledge wrote:
> Both sections are vague and murky about what happens if you *don't* have
> an entry for your hostname in /etc/hosts.
> 
> Fortunately, Debian adds a line exactly like this in /etc/hosts, for
> your hostname with your "DNS domain name" (the one you specified during
> installation) attached.  So you rarely ever have to worry about what
> happens if this entry is missing.

That was the problem.  The bullseye-only system had an /etc/hosts entry
without a FQDN.  I removed that and it uses the one in DNS.  


Thanks for the very thoughtful and detailed insight Greg.

-Jim P.


Reply to: