fqdn

0.0.3 • Public • Published

FQDN

Simple utility to get the FQDN of a machine. Can be used synchronously or asynchronously

Why?: os.hostname() only returns the hostname rather than the FQDN

usage:

var fqdn = require("fqdn");

fqdn(function(err, res){
  if(err){
    throw err;
  }

  console.log(res);
});

/* OR */

var dn = fqdn();

Works on Linux and MacOS

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.32,184latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.32,184
0.0.20
0.0.10

Package Sidebar

Install

npm i fqdn

Weekly Downloads

2,184

Version

0.0.3

License

MIT

Last publish

Collaborators

  • acolchado
  • arnoldzokas
  • matteofigus
  • ryantomlinson
  • andyroyle