View Code? Open in Web Editor
NEW
๐ Harness the power of https://whatsmydns.net from the command-line!
License: MIT License
Makefile 1.06%
Python 98.59%
Dockerfile 0.35%
chkdns's Introduction
- ๐ข I work for Docker
- ๐ฑ I'm passionate about tooling, platforms and web services
- ๐ฌ I enjoy working with Go, Python and C#
- ๐ก I'm learning about algorithms, data structures and efficient programming
chkdns's People
Contributors
chkdns's Issues
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](https://private-user-images.githubusercontent.com/4478920/290716454-87431e78-52f7-402c-b415-b5f92318a9da.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4MTYxOTUsIm5iZiI6MTcyMzgxNTg5NSwicGF0aCI6Ii80NDc4OTIwLzI5MDcxNjQ1NC04NzQzMWU3OC01MmY3LTQwMmMtYjQxNS1iNWY5MjMxOGE5ZGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTZUMTM0NDU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2JjOTE0MDhhZTFmNGZhZGM3ZWE5MjBmNzgyM2U4MjQ4M2Q2YWIzODU5MTQ2OGUxYjEzMTYyMDg5MDc2MWI1MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.t1bWeq2LjpYhZad1eXSA8M_-hiTmRIcjhCfw9qnhrSk)
Does chkdns do url validation, i think we need to validate if is a valid url before make the request