You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, it would be nice to have it, but it needs a bit more investigation first how would it work both for Windows and POSIX-compatible systems.
So far it looks like GetComputerNameExW in combination with ComputerNamePhysicalDnsFullyQualified flag can be used for Windows.
As for POSIX, seems like this approach would be our solution.
It sounds promising so far, but it would be better to double check everything first.
I should note that GNU libc apparently returns FQDN for gethostname: https://www.gnu.org/software/libc/manual/html_node/Host-Identification.html. And macOS does that too.
I mean, I stumbled upon this issue while I was searching why a certain Rust utility gives a different hostname from its original bash version which uses scutil.
Thanks for this crate!
I was just wondering what you thought about adding a mechanism to fetch the fully qualified domain name (similar to
hostname --fqdn
).The text was updated successfully, but these errors were encountered: