{"id":5395,"date":"2013-03-04T10:53:58","date_gmt":"2013-03-04T15:53:58","guid":{"rendered":"http:\/\/g33kinfo.com\/info\/?p=5395"},"modified":"2013-03-04T10:53:58","modified_gmt":"2013-03-04T15:53:58","slug":"dnsbls-py","status":"publish","type":"post","link":"https:\/\/g33kinfo.com\/info\/dnsbls-py\/","title":{"rendered":"DNSBLS.py"},"content":{"rendered":"<p><a href=\"http:\/\/g33kinfo.com\/info\/wp-content\/uploads\/dnsbls.tar.gz\">Link to dnsbls.tar.gz<\/a><\/p>\n<p>DNSBLS &#8211; An easy-to use DNS blacklist checker.<br \/>\nRequirements: Python 2.7.3<br \/>\nWritten by: MadsRC @ 2012 &#8211; Released under the GNU GPLv3<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>DNSBLS came into existence as I had a need to regularly check certain mailserver for DNS blacklisting.<\/p>\n<p>To use the script, simply execute it. First timers are encouraged to execute it with the argument -h to learn it&#8217;s syntax.<\/p>\n<p>If you feel the need to add one or more DNS blacklists to the script, simply add it to the list defined in the script. Same goes for removing dns blacklists.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>WHAT IT IS &#038; HOW IT SHOULD BE USED:<br \/>\nThis is a tool that checks a specified list of 457 DNS blacklists, one at a time, and gives returns different formatted values to you. That is the short version.<\/p>\n<p>Long version:<br \/>\nThis tool was first created to check a few DNS spam blacklists, but now, by standard, checks any DNS blacklist that it is given. It is written to do one thing, check RBL blacklists, and it does that damn well. What you decide to do with the output is entirely up to you. It will take either an IP or hostname as input (argument -i) which it will then validate and run it through the list of DNS blacklists and give you some form of output. It can be as simple as telling you 1 if your on a list, or 0 if your not on a list or it can output the lists you&#8217;re on plus that lists &#8220;code&#8221; for what your input is on it for.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>Examples:<\/p>\n<p><code>dnsbls.py -i 1.2.3.4<\/code><br \/>\nWill tell you if you are on any of the lists that DNSBLS checks against.<\/p>\n<p><code>dnsbls.py -i 1.2.3.4 -s<\/code><br \/>\nOutputs 1 if you are on a list that DNSBLS checks against, and 0 if you aren&#8217;t<\/p>\n<p><code>dnsbls.py -i 1.2.3.4 -v<\/code><br \/>\nOutputs the lists you are on.<\/p>\n<p><code>dnsbls.py -i 1.2.3.4 -vv<\/code><br \/>\nOutputs every list that DNSBLS checks against, and tells you if you are on any of them.<\/p>\n<p><code>dnsbls.py -l<\/code><br \/>\nOutputs every list that DNSBLS checks<\/p>\n<p>TIP: -i also resolves hostnames<\/p>\n<p><code>root@server:~# python dnsbls.py -i 72.52.130.201<br \/>\nYou are on one of my lists! - Use -v argument to find out what lists.<br \/>\nroot@server:~# python dnsbls.py -i 72.52.130.201 -v<br \/>\nabuse-contacts.abusix.org 127.0.0.1<br \/>\nniku.2ch.net 127.0.0.2<br \/>\nall.ascc.dnsbl.bit.nl 127.0.0.160<br \/>\nall.dnsbl.bit.nl 127.0.0.2<br \/>\nipv6.all.dnsbl.bit.nl 127.0.0.2<br \/>\norigin.asn.cymru.com 127.0.0.2<br \/>\npeer.asn.cymru.com 127.0.0.2<br \/>\nlist.dnswl.org 127.0.5.0<br \/>\nvote.drbl.gremlin.ru 127.0.0.2<br \/>\nwork.drbl.gremlin.ru 127.0.0.2<br \/>\nrep.mailspike.net 127.0.0.18<br \/>\nwl.mailspike.net 127.0.0.18<br \/>\nlist.quorum.to 127.0.0.4<br \/>\nblackholes.scconsult.com 127.0.0.2<br \/>\norigin.asn.spameatingmonkey.net 127.0.0.2<br \/>\ndbl.spamhaus.org 127.0.1.255<br \/>\npdl.pan-am.ca 127.0.0.3<br \/>\nvox.schpider.com 127.0.0.2<br \/>\nl2.apews.dnsbl.uceprotect.net 127.0.0.2<br \/>\nybl.megacity.org 127.0.0.2<br \/>\n<\/code><\/p>\n<p><a href=\"http:\/\/g33kinfo.com\/info\/wp-content\/uploads\/dnsbls.tar.gz\">Link to dnsbls.tar.gz<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Link to dnsbls.tar.gz DNSBLS &#8211; An easy-to use DNS blacklist checker. Requirements: Python 2.7.3 Written by: MadsRC @ 2012 &#8211; Released under the GNU GPLv3 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; DNSBLS came into existence as I had a need to regularly check certain mailserver for DNS blacklisting. To use the script, simply execute it. First timers are encouraged to&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/g33kinfo.com\/info\/dnsbls-py\/\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-5395","post","type-post","status-publish","format-standard","hentry","category-email"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>DNSBLS.py - Linux Shtuff<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/g33kinfo.com\/info\/dnsbls-py\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DNSBLS.py - Linux Shtuff\" \/>\n<meta property=\"og:description\" content=\"Link to dnsbls.tar.gz DNSBLS &#8211; An easy-to use DNS blacklist checker. Requirements: Python 2.7.3 Written by: MadsRC @ 2012 &#8211; Released under the GNU GPLv3 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; DNSBLS came into existence as I had a need to regularly check certain mailserver for DNS blacklisting. To use the script, simply execute it. First timers are encouraged to... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/g33kinfo.com\/info\/dnsbls-py\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux Shtuff\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:author\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-04T15:53:58+00:00\" \/>\n<meta name=\"author\" content=\"g33kadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/drsinger1111\" \/>\n<meta name=\"twitter:site\" content=\"@drsinger1111\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/dnsbls-py\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/dnsbls-py\\\/\"},\"author\":{\"name\":\"g33kadmin\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"headline\":\"DNSBLS.py\",\"datePublished\":\"2013-03-04T15:53:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/dnsbls-py\\\/\"},\"wordCount\":337,\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"articleSection\":[\"EMail\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/dnsbls-py\\\/\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/dnsbls-py\\\/\",\"name\":\"DNSBLS.py - Linux Shtuff\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\"},\"datePublished\":\"2013-03-04T15:53:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/dnsbls-py\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/dnsbls-py\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/dnsbls-py\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DNSBLS.py\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\",\"name\":\"Linux Shtuff\",\"description\":\"Because I have CRS Syndrome...\",\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\",\"name\":\"g33kadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"contentUrl\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"width\":512,\"height\":512,\"caption\":\"g33kadmin\"},\"logo\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\"},\"description\":\"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\\\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....\",\"sameAs\":[\"https:\\\/\\\/thelinuxreport.com\",\"https:\\\/\\\/fb.me\\\/g33kinf0\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/drsinger1111\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DNSBLS.py - Linux Shtuff","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/g33kinfo.com\/info\/dnsbls-py\/","og_locale":"en_US","og_type":"article","og_title":"DNSBLS.py - Linux Shtuff","og_description":"Link to dnsbls.tar.gz DNSBLS &#8211; An easy-to use DNS blacklist checker. Requirements: Python 2.7.3 Written by: MadsRC @ 2012 &#8211; Released under the GNU GPLv3 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; DNSBLS came into existence as I had a need to regularly check certain mailserver for DNS blacklisting. To use the script, simply execute it. First timers are encouraged to... Read More","og_url":"https:\/\/g33kinfo.com\/info\/dnsbls-py\/","og_site_name":"Linux Shtuff","article_publisher":"https:\/\/fb.me\/g33kinf0","article_author":"https:\/\/fb.me\/g33kinf0","article_published_time":"2013-03-04T15:53:58+00:00","author":"g33kadmin","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/drsinger1111","twitter_site":"@drsinger1111","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/g33kinfo.com\/info\/dnsbls-py\/#article","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/dnsbls-py\/"},"author":{"name":"g33kadmin","@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"headline":"DNSBLS.py","datePublished":"2013-03-04T15:53:58+00:00","mainEntityOfPage":{"@id":"https:\/\/g33kinfo.com\/info\/dnsbls-py\/"},"wordCount":337,"publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"articleSection":["EMail"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/g33kinfo.com\/info\/dnsbls-py\/","url":"https:\/\/g33kinfo.com\/info\/dnsbls-py\/","name":"DNSBLS.py - Linux Shtuff","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/#website"},"datePublished":"2013-03-04T15:53:58+00:00","breadcrumb":{"@id":"https:\/\/g33kinfo.com\/info\/dnsbls-py\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/g33kinfo.com\/info\/dnsbls-py\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/g33kinfo.com\/info\/dnsbls-py\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/g33kinfo.com\/info\/"},{"@type":"ListItem","position":2,"name":"DNSBLS.py"}]},{"@type":"WebSite","@id":"https:\/\/g33kinfo.com\/info\/#website","url":"https:\/\/g33kinfo.com\/info\/","name":"Linux Shtuff","description":"Because I have CRS Syndrome...","publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/g33kinfo.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547","name":"g33kadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","url":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","contentUrl":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","width":512,"height":512,"caption":"g33kadmin"},"logo":{"@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif"},"description":"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....","sameAs":["https:\/\/thelinuxreport.com","https:\/\/fb.me\/g33kinf0","https:\/\/x.com\/https:\/\/twitter.com\/drsinger1111"]}]}},"_links":{"self":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/5395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/comments?post=5395"}],"version-history":[{"count":0,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/5395\/revisions"}],"wp:attachment":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/media?parent=5395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/categories?post=5395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/tags?post=5395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}