Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Test Zone Transfer Fails #251

Closed
jason1987d opened this issue Nov 24, 2023 · 1 comment
Closed

[Bug] Test Zone Transfer Fails #251

jason1987d opened this issue Nov 24, 2023 · 1 comment

Comments

@jason1987d
Copy link

Feature Request or Bug or Other
Bug

Describe the feature request or bug or other
When building and testing dnsrecon 1.1.5 for Void Linux, test zone transfer fails as such...

____________________ Test_Lib_dnshelper.test_zone_transfer _____________________

self = <tests.test_dnshelper.Test_Lib_dnshelper object at 0x7fcf7514fef0>

    def test_zone_transfer(self):
        helper = DnsHelper('megacorpone.com')
        records = helper.zone_transfer()
>       assert len(records) == 30
E       AssertionError: assert 34 == 30
E        +  where 34 = len([{'ns_server': '51.79.37.18', 'type': 'info', 'zone_transfer': 'failed'}, {'ns_server': '66.70.207.180', 'type': 'info....63'}, {'address': '66.70.207.180', 'target': 'ns3.megacorpone.com', 'type': 'NS', 'zone_server': '51.222.39.63'}, ...])

tests/test_dnshelper.py:81: AssertionError
----------------------------- Captured stdout call -----------------------------
[*] Checking for Zone Transfer for megacorpone.com name servers
[*] Resolving SOA Record
[+] 	 SOA ns1.megacorpone.com 51.79.37.18
[*] Resolving NS Records
[*] NS Servers found:
[+] 	 NS ns3.megacorpone.com 66.70.207.180
[+] 	 NS ns2.megacorpone.com 51.222.39.63
[+] 	 NS ns1.megacorpone.com 51.79.37.18
[*] Removing any duplicate NS server IP Addresses...
[*]  
[*] Trying NS server 51.79.37.18
[+] 51.79.37.18 Has port 53 TCP Open
[-] Zone Transfer Failed (Zone transfer error: REFUSED)
[*]  
[*] Trying NS server 66.70.207.180
[+] 66.70.207.180 Has port 53 TCP Open
[-] Zone Transfer Failed (Zone transfer error: REFUSED)

System Information (System that tool is running on):

  • OS: Void Linux
@L1ghtn1ng
Copy link
Collaborator

I have updated the test to make it more robust, apologies on the delay to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants