title: How can I get the server name for where node.js is running?
body: <p>I want to add a line that will point to a different database depending on the server I am running node.js on (localhost vs test.com, etc).  How do I get the server name in node.js?  That is, what is the server side equivalent to location.host?</p>