SyntaxFix
Write A Post
Hire A Developer
Questions
If you need a fully qualified domain name and have no HTTP request, on Linux, you could use:
var child_process = require("child_process"); child_process.exec("hostname -f", function(err, stdout, stderr) { var hostname = stdout.trim(); });