Skip to content

utility for getting a machine's FQDN in nodejs

License

Notifications You must be signed in to change notification settings

cedalo/fqdn-nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

utility for getting a machine's FQDN in nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%