This page has been visited an unknown number of times.
Page last generated:
2025/06/15 10:24:00.
This post was written 2025-05-19 19:15:00 -0700 by Robert Whitney and has been viewed an unknown number of times since unknown time. This post was last viewed an unknown length of time ago.
For a client exmaple, and quick primer on how DNSBLs work, see my other post about how to perform DNSBL lookups with Node.js. This post will assume you have a basic understanding of how DNSBL servers work, and how to use them so if you are not familiar with DNSBL servers, I recommend reading that post first.
The libraries that I used for this example are:
This is a quick and dirty example. In an actual production implimentation you would need to use a database such as MySQL. I would also recommend checking against a limited set of IP ranges (CIDR matches from the database) based on the incoming request data.
You can save this example as dnsbl.js
, run chmod +x dnsbl.js
, and then run the script with ./dnsbl.js
.
Remember to customize the configuration and the code to suit your needs.
undefined
If everything is working correctly, you should see something similiar to this when you run the dig command:
undefined
xnite, real name Robert Whitney, is a self-taught computer programmer with a passion for technology. His primary focus is on secure, reliable, and efficient software development that scales to meet the needs of the modern web. Robert has been writing since 2010 and has had contributions published in magazines such as 2600: The Hacker Quarterly. His background in technology & information security allows him to bring a unique perspective to his writing. Robert's work has also been cited in scientific reports, such as "Future Casting Influence Capability in Online Social Networks: Fake Accounts and the Evolution of the Shadow Economy" by Matthew Duncan, DRDC Toronto Research Centre.
For Minecraft related inquiries feel free to reach out to the community on the Break Blocks Club discord server, for everything else please email me at admin@xnite.me
You can also find me on the various social media platforms listed on my website, but I do not check them often.
Repository | Author | Release Version | Release Date | Links |
---|