Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)

        def DiscoverNameServers():
    import sys
    if sys.platform in ('win32', 'nt'):
        import win32dns
        defaults['server']=win32dns.RegistryResolve()
    else:
        return ParseResolvConf()
        


src/p/y/pydns-2.3.6/DNS/lazy.py   pydns(Download)
def dnslookup(name,qtype):
    "convenience routine to return just answer data for any query type"
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    result = Base.DnsRequest(name=name, qtype=qtype).req()
    if result.header['status'] != 'NOERROR':

src/p/y/PyTide-HEAD/NetworkTools/DNS/lazy.py   PyTide(Download)
def revlookup(name):
    "convenience routine for doing a reverse lookup of an address"
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = string.split(name, '.')
    a.reverse()
    sorted list of (preference, mail exchanger) records
    """
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = Base.DnsRequest(name, qtype = 'mx').req().answers
    l = map(lambda x:x['data'], a)
def lookup(name):
    """Look up all records under name"""
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = Base.DnsRequest(name, qtype = 'any').req().answers
    l = map(lambda x:x['data'], a)

src/j/j/jjproxy-HEAD/DNS/lazy.py   jjproxy(Download)
def dnslookup(name,qtype):
    "convenience routine to return just answer data for any query type"
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    result = Base.DnsRequest(name=name, qtype=qtype).req()
    if result.header['status'] != 'NOERROR':

src/g/o/golismero-2.0.3-1/tools/theHarvester/discovery/DNS/lazy.py   golismero(Download)
def revlookup(name):
    "convenience routine for doing a reverse lookup of an address"
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = string.split(name, '.')
    a.reverse()
    sorted list of (preference, mail exchanger) records
    """
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = Base.DnsRequest(name, qtype = 'mx').req().answers
    l = map(lambda x:x['data'], a)

src/g/o/golismero-HEAD/tools/theHarvester/discovery/DNS/lazy.py   golismero(Download)
def revlookup(name):
    "convenience routine for doing a reverse lookup of an address"
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = string.split(name, '.')
    a.reverse()
    sorted list of (preference, mail exchanger) records
    """
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = Base.DnsRequest(name, qtype = 'mx').req().answers
    l = map(lambda x:x['data'], a)

src/r/e/remo-HEAD/vendor-local/lib/python/DNS/lazy.py   remo(Download)
def revlookup(name):
    "convenience routine for doing a reverse lookup of an address"
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = string.split(name, '.')
    a.reverse()
    sorted list of (preference, mail exchanger) records
    """
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = Base.DnsRequest(name, qtype = 'mx').req().answers
    l = map(lambda x:x['data'], a)

src/p/y/PyTalk-HEAD/deps/pydns-2.3.1/DNS/lazy.py   PyTalk(Download)
def revlookup(name):
    "convenience routine for doing a reverse lookup of an address"
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = string.split(name, '.')
    a.reverse()
    sorted list of (preference, mail exchanger) records
    """
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = Base.DnsRequest(name, qtype = 'mx').req().answers
    l = map(lambda x:x['data'], a)

src/n/m/nmcontrol-HEAD/lib/DNS/lazy.py   nmcontrol(Download)
def revlookup(name):
    "convenience routine for doing a reverse lookup of an address"
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = string.split(name, '.')
    a.reverse()
    sorted list of (preference, mail exchanger) records
    """
    if Base.defaults['server'] == []: Base.DiscoverNameServers()
    a = Base.DnsRequest(name, qtype = 'mx').req().answers
    l = map(lambda x:x['data'], a)

src/i/s/isida3-HEAD/lib/DNS/lazy.py   isida3(Download)
def revlookup(name):
	"convenience routine for doing a reverse lookup of an address"
	if Base.defaults['server'] == []: Base.DiscoverNameServers()
	a = string.split(name, '.')
	a.reverse()
	sorted list of (preference, mail exchanger) records
	"""
	if Base.defaults['server'] == []: Base.DiscoverNameServers()
	a = Base.DnsRequest(name, qtype = 'mx').req().answers
	l = map(lambda x:x['data'], a)