On Tue, 2024-05-07 at 17:36 -0400, Jonathan Billings wrote:
> Some home router/gateways will remember the hostname a system used as
> part of their network, and when handing out the same IP to a new
> host, re-uses the saved hostname.

I've yet to come across a home gateway that handles name resolution,
they just dole out numerical IPs from their DHCP server, it also seems
to be a bit of a rarity for a client to accept a hostname that a DHCP
server does supply (if it does).  DHCP clients can also request the
DHCP server lets them use their own hostname, and that's often ignored,
too.

More often than not, a client would to a reverse DNS look-up on its
assigned IP to see what domain/hostname is associated with that IP
(which could be a DNS query, but first it looks in the hosts file).

Not everyone has a DNS server, or a configurable one, nor adjusts their
hosts file (often fighting with Network Mangler over it).  So:

> Set your preferred hostname either in GNOME Settings (or whatever
> DE’s settings) or with hostnamectl.

Which stores a setting somewhere naming itself consistently, whatever
IP address you get given.

This can get messy if you get assigned different numerical IPs from
time to time.

-- 
 
uname -rsvp
Linux 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to