Template:Get hostname/Introduction

This template will return a hostname for a URL.