
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
Lookup the fully qualified domain name ("FQDN") of the current server's IP (default) or a custom IP. 90x faster than `hostname -f` and works with Node v6.4+.
Lookup the fully qualified domain name ("FQDN") of the current server's IP (default) or a custom IP. 90x faster than
hostname -fand works with Node v14+.
npm:
npm install get-fqdn
const getFQDN = require('get-fqdn');
// async/await usage
(async () => {
try {
const fqdn = await getFQDN();
console.log('fqdn', fqdn);
} catch (err) {
console.error(err);
}
});
// then/catch usage
getFQDN().then(fqdn => console.log('fqdn', fqdn)).catch(console.error);
Note that you can also pass a custom IP:
const fqdn = await getFQDN('1.1.1.1');
console.log('fqdn', fqdn);
This package runs approximately 90x faster than the alternative of using hostname -f.
It was built to ensure that ForwardEmail.net is as optimized as possible.
Others packages were written in CoffeeScript, used deasync, or used the hostname -f approach (also see the fqdn package that uses the wrong approach too).
| Name | Website |
|---|---|
| Nick Baugh | http://niftylettuce.com/ |
FAQs
Lookup the fully qualified domain name ("FQDN") of the current server's IP (default) or a custom IP. 90x faster than `hostname -f` and works with Node v6.4+.
The npm package get-fqdn receives a total of 1,032 weekly downloads. As such, get-fqdn popularity was classified as popular.
We found that get-fqdn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.