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

Fix display to show the correct resposne for SOA records #9

Open
t0mer opened this issue Dec 15, 2023 · 0 comments
Open

Fix display to show the correct resposne for SOA records #9

t0mer opened this issue Dec 15, 2023 · 0 comments

Comments

@t0mer
Copy link
Contributor

t0mer commented Dec 15, 2023

In app.py file,
Change this:
answer = ", ".join(answer.split()[-1] for answer in data["answers"])

to this:
if type=='SOA':
answer = data['response'][0].split(' ', 2)
answer = ' '.join(answer)
else:
answer = ", ".join(answer.split()[-1] for answer in data["answers"])

This will display the correct result for SOA type

image

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

1 participant