The DNSBL countries.nerd.dk

Newsflash!

Jul 24 2011: We've recently seen an increase in traffic. So much than the host of one of the nameservers have expressed concern. The traffic does not seem to originate from one place, so it may be a program that recently started using the lists. If anybody knows anything, please contact me.

Jul 4 2011: I've added some bogus NS records to avoid misconfigured servers that are hammering the nameservers. If you're getting IN NS 127.1.1.1 replies, check your config.

May 17 2009: There's currently an error in the RIPE database, that gives invalid information in ru.countries.nerd.dk. I've made a manual fix, and disabled automatic zone building until it is fixed. It may take a while it is distributed to secondaries.

Feb 16 2009: I get mail with threats of physical violence. Wonderful how some people manage to demonstrate their limited capacity.

May 24 2006: New rsync server available thanks to Mermaid Consulting: rsync://countries-ns.mdc.dk/zone

May 2006: Nubian.blitzed.org died recently, so I am without an rsync server. Please contact me if you have a public rsync server and would like to help host the files for public access

Jul 31, 2004: Thanks to the kind people of blitzed.org, rsync access has been re-enabled, you can get the zones from rsync://nubian.blitzed.org/countries/

Mar 19, 2004: Rsync is currently down due to a catastrophic hardware failure (blown PSU and motherboard), I'm trying to resolve the situation, have patience

Oct 21, 2003: The zone is now (finally) available via rsync. In BIND format as a unified zone: rsync://calzone.hestdesign.com/countries/countries.nerd.dk.bind, and in RBLDNSD formats as seperate zones: rsync://calzone.hestdesign.com/countries/*.countries.nerd.dk.rbldnsd

The zonefiles are updated each day at 6:00 CET

I'm also looking for official secondaries, so if you've set up a nameserver using rsync and would like to make it available to the world, please contact me and let me know about the details of your connection.

May 26, 2003: TXT queries to the zz-zone now return the code-two ISO-3166 code in stead of the full reject text

For example: "4/8 is in us, rejected based on geographical location" becomes "us"

Introduction

On this page I'll try to describe what countries.nerd.dk contains, and more specifically what it DOES NOT contain.

DISCLAIMER:This does not imply any warranty on my part. If you choose to use the zone for blocking mail on your mailserver, you do so on your own responsibility, I cannot and will not make the claim that the zone is 100% accurate. Errors can and will be present.

What the zone contains

countries.nerd.dk (the zone) is a DNSBL (DNS blocklist) created for my own personal use. Other people started asking for access to it, so I decided to make it available to the world.

The zone contains information which can be used to determine whether a given IP address resides in a given country, thus making it possible for the users to filter out mail from a specific country using standard methods. For example my own mailserver is configured to reject mail from hosts listed in cn.countries.nerd.dk, which means that I should reject most mail sent from or through a mail-server located in China.

If the concept of iso-country-codes does not ring a bell for you, "Dr. Jørgen Mash" has created a page with more detailed information on the different countries in the zone, as well as a load of other DNSBL zones, which may help you find the countries you need.

What the zone DOES NOT contain

The zone contains no information about the status of an address as a spammer or open relay. In general terms: The zone does not contain anything but geographic information.

What if I don't want my IP addresses listed in the zone

I don't care. If your mail is being blocked, contact the administrator of the mailserver, who does the blocking. Unless I am that administrator, my only reply to you will probably be a link to this page.

Usage

To use the zone, set up your mailserver like you would for any other DNSBL zone, using the ISO 3166 A 2 country code of the specific country you would want to block/mark mail from, for example you would use dk.countries.nerd.dk to block mail from Denmark and af.countries.nerd.dk to block mail from Afghanistan.

Recently, a zz.countries.nerd.dk zone has been added, enabling you to do a single lookup and find the country of a given IP address - the zz-zone uses ISO 3166 Number codes encoded in the last two octets of the reply, for example a lookup of an IP address in Denmark would give a reply of 127.0.0.208 (208=Denmark), while a US IP would give 127.0.3.72 (3*256+72=840=USA)

Here's a list of IP addresses and countries.

Contact

If you really HAVE read all of the above, you could proceed to Contact information if you have anything to say. If you just want me to remove an IP address from the list/zone, THEN DON'T BOTHER MAILING ME

This site and service is created by Andreas Plesner Jacobsen of Code3/Amathor omstillingsanlæg/Lynero Open Source Hosting