Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osInfo does not return FQDN #939

Open
VeloAddict opened this issue Oct 26, 2024 · 0 comments
Open

osInfo does not return FQDN #939

VeloAddict opened this issue Oct 26, 2024 · 0 comments

Comments

@VeloAddict
Copy link

const stdout = execSync('hostnamectl --json short 2>/dev/null', util.execOptsLinux);

hostnamectl does not provide the Fully Qualified Domain Name (FQDN) or domain name directly when you query it. It only deals with the static hostname (short hostname), pretty hostname, and transient hostname.

For linux use the hostname -f command to get the Fully Qualified Domain Name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant