This is a function that is called by my main.py script. 

Here is the issue, I have a file with a list of IP addresses, and I query this API in order to find me reverse DNS lookups of those given IPs against the (url) variable. Then spits out the "response.text".

Well in the response.text file, 

I get No DNS A records found for 96.x.x.x

Other data I get is just a dnsname: 'subdomain.domain.com'

How do I filter my results to NOT show for every 'No DNS A records found for (whateverip shows)'

```
#!/usr/bin/env python3
import requests
import pdb
#function to use hackertarget api for reverse dns lookup
def dns_finder(file_of_ips="endpointslist"):
    print('\n\n########## Finding DNS Names ##########\n')
    targets = open("TARGETS","w")
    with open (file_of_ips) as f:
        for line in f:
            line.strip()
            url = 'https://api.hackertarget.com/reverseiplookup/?q=' + line
            response = requests.get(url)
            #pdb.set_trace()
            hits = response.text
            print(hits)
            targets.write(hits)
            return hits

```