gopsutil icon indicating copy to clipboard operation
gopsutil copied to clipboard

Missing FQDN/hostname option for windows

Open patryk4815 opened this issue 2 years ago • 3 comments

Missing FQDN option for windows:

Example implementation: https://github.com/elastic/go-sysinfo/blob/main/providers/windows/host_windows.go#L88C44-L88C81

os.Hostname() don't return full hostname on windows

patryk4815 avatar Dec 21 '23 22:12 patryk4815

Indeed, this might be a good feature to have. And it looks like it could be implemented on all platforms. Thanks for the suggestion.

shirou avatar Dec 24 '23 05:12 shirou

might make sense to introduce a FQDN() function instead of changing the Hostname()

john-behm-bertelsmann avatar Mar 04 '24 09:03 john-behm-bertelsmann

might be interesting for that feature: https://github.com/Showmax/go-fqdn/blob/master/fqdn.go

john-behm-bertelsmann avatar Mar 03 '25 12:03 john-behm-bertelsmann