File: ignore-ipv6-ns.patch

package info (click to toggle)
python-dns 2.3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 216 kB
  • ctags: 319
  • sloc: python: 1,417; makefile: 9
file content (16 lines) | stat: -rw-r--r-- 667 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -Nur -x '*.orig' -x '*~' python-dns-2.3.2/DNS/Base.py python-dns-2.3.2.new/DNS/Base.py
--- python-dns-2.3.2/DNS/Base.py	2008-07-27 21:27:00.000000000 -0400
+++ python-dns-2.3.2.new/DNS/Base.py	2008-07-30 12:21:44.000000000 -0400
@@ -55,7 +55,11 @@
         if fields[0]=='sortlist':
             pass
         if fields[0]=='nameserver':
-            defaults['server'].append(fields[1])
+            if fields[1].count(':'):
+                """ Ignore IPv6 nameservers as we currently do not support querying them. """
+                pass
+            else:
+                defaults['server'].append(fields[1])
 
 def DiscoverNameServers():
     import sys