Bug 2120039
| Summary: | networkmanager signals to systemd-hostnamed to rename host based on dns lookup | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | archivum <archivum> |
| Component: | NetworkManager | Assignee: | Lubomir Rintel <lkundrak> |
| Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 36 | CC: | acabral, bgalvani, dcbw, francesco.giudici, gnome-sig, liangwen12year, lkundrak, mclasen, rstrode, sandmann, vbubela |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-05-25 17:41:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
archivum@tutanota.com
2022-08-21 06:45:59 UTC
The hostname is determined in the following ways, in order of precedence:
1) the statically configured hostname
2) from the hostname DHCP option
3) reverse-DNS lookup of the first address
I suspect that when the DHCP lease changes and no longer offers a hostname, then reverse DNS lookup is used and finds the unexpected hostname. If you set "level=TRACE" in the [logging] section of /etc/NetworkManager/NetworkManager.conf and restart NM, you will see how the hostname is determined.
> this seems like a security flaw, as it does rename hosts in RFC 1918 networks
How is it a security flaw? It is perfectly valid to set the hostname based on reverse DNS lookup of a private address. This feature is heavily used in some environments (like corporate networks and cloud environments).
If the problem is indeed the reverse lookup, you can disable it with something like:
nmcli connection modify $CONNECTION hostname.from-dns-lookup no
In such case, it seems to me that the network is wrongly configured, as the DNS server is returning a unexpected name for a private address lookup.
This message is a reminder that Fedora Linux 36 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '36'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 36 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16. Fedora Linux 36 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed. |