fqdn
utility to get fqdn of machine
Last updated 5 years ago by andyroyle .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fqdn 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.3                                ...           latest (5 years ago)

3 Versions

  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Downloads
Today 0
This Week 1
This Month 9
Last Day 0
Last Week 3
Last Month 23
Dependencies (1)
Dev Dependencies (5)

Copyright 2014 - 2016 © taobao.org |