Simple DNS Plus
Edit this page

Did you notice something wrong or unclear, or want to add something more to this page?

Great !!

You can edit the source text of this page on GitHub (click here to learn how).

After you submit your changes ("pull request"), we will review it and update the page.

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 http://hosts-file.net and http://pgl.yoyo.org/adservers
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:

1.2.3.4 example.com

Defines an A-Record (example.com -> 1.2.3.4) and a PTR-record (4.3.2.1.in-addr.arpa -> example.com).

How to obtain this plug-in

This plug-in is included with the Simple DNS Plus installation.

Open source

This source code for this plug-in is available at https://github.com/jhsoftware/sdnspi-HostsFile

Contributions are most welcome.

Related KB articles:

Comments

Simple DNS Plus

  • Home
  • Search
  • Product details

  • Features
  • Screen shots
  • Plug-ins
  • Tools & Add-ons
  • Testimonials
  • What's new
  • Release notes
  • Download

  • Download
  • Buy

  • Pricing
  • New license
  • Additional license
  • Upgrade
  • Support

  • Overview
  • Lost License Key
  • Knowledge Base
  • Online documentation
  • Contact us