Added an option to set the servername

instead of it defaulting to the server hostname.