Retrieval of the devices host name

When working in server environment its sometimes necessary to get the host name of the device running on (as friendly name for example). And as Rust already has std::net and also DNS resolution, getting the devices host name seems kinda missing in this environment.

And as its standard it the Internet that every device has a host name (at least for DHCP) it should be implementable for all targets with std.

There is already a crate called gethostname with only one function gethostname, which could be taken as inspiration for the implementation of this method in std::net.

Open an ACP


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.