fix exception name and add 0.0.0.0 to localhost list

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2941 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-12-06 11:47:38 +00:00
parent 99c0382781
commit b482d35656

View file

@ -300,6 +300,7 @@ class Resolver(object):
'localhost',
'loopback',
'127.0.0.1',
'0.0.0.0',
'::1',
'ip6-localhost',
'ip6-loopback',
@ -738,5 +739,5 @@ def zone_for_name(name, rdclass=linkcheck.dns.rdataclass.IN,
except (linkcheck.dns.resolver.NXDOMAIN, linkcheck.dns.resolver.NoAnswer):
try:
name = name.parent()
except NoParent:
raise NoRootSoa
except linkcheck.dns.name.NoParent:
raise NoRootSOA