Hosts File plug-in

This plug-in serves host (A/AAAA) and reverse (PTR) DNS records from a standard hosts file.

This can be used as a very simple way to store and host DNS records, but more commoly this is used to block ads and malicious web-sites.
You can create your own hosts file, but there are also some very kind people on the Internet who maintain hosts files for various purposes and make these publicly available. For example and
For more advanced web-site blocking, see also the Domain Blacklist plug-in.

On the "Plug-In Settings" tab, enter the location of the hosts file, specify if the file should be re-loaded automatically when updated, and enter the TTL to be used:

You can use multiple hosts files by setting up multiple "Hosts File" plug-in instances.

Host file line example:

Defines an A-Record ( -> and a PTR-record ( ->

Where to get this plug-in

This plug-in is automatically included when you install Simple DNS Plus using the "Full" installation option.

For details on setting up an instance of the plug-in click here.

This plug-in is released into the public domain as open source. You are most welcome to fork it or contribute code enhancements, and / or use the source code as a starting point for developing your own plug-in.

Source code / Git repository:

Related KB articles:

Be the first to comment on this page:
(Never published. Used for replies and to show your Gravatar icon. Never used for any other purpose.)