Manual:$wgShowHostnames/en

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