我想使用python处理host或dig命令,以检查某个域是否被列入黑名单。like performing a terminal command which is host johnnydeppsource.com.multi.surbl.orgHost johnnydeppsource.com.multi.surbl.org not found: 2(SERVFAIL)
这将返回一个零值,允许它添加新的域,即使它被列入黑名单
一个普通的urllib2可以正常工作:>>> r = urllib2.urlopen(u"http://bit.ly/4ovTZw")'http://www.writing.com/main/handler/action/show_document/item_id/933413.mp3''audio/mpeg'
但在ap