(self, obj)
Perform a passive DNS lookup on the query value.
Perform a passive DNS lookup on the query value.
Perform a passive DNS lookup on the query value .
def do_pdns_query(self, obj):
        """Perform a passive DNS lookup on the query value."""
        client = self._generate_request_instance('dns')
        query = self._get_query_type(obj)
        results = client.get_passive_dns(query=query)
        self._check_response(results)
        results = DnsResponse(results)
        for record in results.get_records():
            stats = {
                'First Seen': record.firstSeen,
                'Last Seen': record.lastSeen,
                'Sources': ','.join(record.source)
            }
            self._add_result('Passive DNS', record.resolve, stats)
def do_pdns_query ( self , obj ) : client = self . _generate_request_instance ( 'dns' ) query = self . _get_query_type ( obj ) results = client . get_passive_dns ( query = query ) self . _check_response ( results ) results = DnsResponse ( results ) for record in results . get_records ( ) : stats = { 'First Seen' : record . firstSeen , 'Last Seen' : record . lastSeen , 'Sources' : ',' . join ( record . source ) } self . _add_result ( 'Passive DNS' , record . resolve , stats )