1
diff -Nur python-dns-2.3.0/DNS/lazy.py python-dns-2.3.0.new/DNS/lazy.py
2
--- python-dns-2.3.0/DNS/lazy.py 2002-05-06 02:14:38.000000000 -0400
3
+++ python-dns-2.3.0.new/DNS/lazy.py 2007-05-11 17:04:10.000000000 -0400
7
"convenience routine for doing a reverse lookup of an address"
8
+ if Base.defaults['server'] == []: Base.DiscoverNameServers()
9
a = string.split(name, '.')
11
b = string.join(a, '.')+'.in-addr.arpa'
13
convenience routine for doing an MX lookup of a name. returns a
14
sorted list of (preference, mail exchanger) records
16
+ if Base.defaults['server'] == []: Base.DiscoverNameServers()
17
a = Base.DnsRequest(name, qtype = 'mx').req().answers
18
l = map(lambda x:x['data'], a)