Issue #3254227: Permission for viewing active domains
In a project, I needed to show all active domains to anonymous user with their machine names. I achieved this by creating a custom permission and extending the Domain module's access control handler.