[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [sitefinder-tech-discuss Home]
Subject: Re: [sitefinder-tech-discuss] Pseudo code please
At 12:47 PM -0400 10/16/03, Andrew Newton wrote:
From a Python script of mine:
import dns.message
import dns.query
....
def testdomain( domain, hdr ):
query = dns.message.make_query( domain, dns.rdatatype.NS )
message = dns.query.tcp( query, '192.5.6.30' )
if len( message.answer ) == 0:
markInvalid( hdr )
return
That's not pseudo-code, and it doesn't specifically answer any question except #2. So I'll try and do a little experimentation and guess what you are saying here. (What the hell, after all you're going to reimburse me for the work, right?)
I think you're saying that prior to doing any A or MX query, I should first take the host name and reduce it to just the domain name. Then I should do an NS query on the domain. If the results are empty, then I know it's a wildcard. If there is a result, then I can trust the results of any subsequent queries on the host/domain name to be accurate.
Is that correct?
Kee Hinckley wrote:I'd like to see some pseudo code. 1. Given a host name in .com/.net, determine whether the host really exists.2. Given a domain name in .com/.net, determine whether the domain really exists, or whether it has been configured to *look* like a Verisign wildcard domain. 3. Given a host/domain, determine whether one should be able to send mail to it.
-- Kee Hinckley http://www.messagefire.com/ Next Generation Spam Defense http://commons.somewhere.com/buzz/ Writings on Technology and Society I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's. ---------------------------------------------------------------- To subscribe or unsubscribe from this elist use the subscription manager: <http://lists.elistx.com/unsubscribe>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [sitefinder-tech-discuss Home]
Powered by eList eXpress LLC