Manual:$wgShowHostnames

Details
If set to, exposes host names through API and HTML comments.