shirou / gopsutil

psutil for golang
Other
10.36k stars 1.57k forks source link

Missing FQDN/hostname option for windows #1572

Open patryk4815 opened 7 months ago

patryk4815 commented 7 months ago

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

shirou commented 7 months ago

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

john-behm-bertelsmann commented 5 months ago

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