Looks very nice and clean visually. I have some suggestions from a lookup or two:
- Add support for SVCB and HTTPS records
- When you lookup CAA, you return flags as a string. It should be an integer.
- JSON is nice as an option, but I would optimise the output for people to read.
- I really like the main font. The subtitle under the logo ("A simple DNS lookup tool") looks thin in comparison. I would consider using the same chunky font for it as elsewhere. It could look nicer.
Just one UI suggestion - in a bright room, I had to spend a few moments to figure out where to type as the borders around the text box was very faint and nearly invisible till I clicked on it. Either make the text border brighter or better still, why not place the cursor in the text box by default on page load so that txt box is highlighted by default?
- Show response status. For example, when you lookup a non-existent domain, you say "No records returned", but that's not accurate. You should show NXDOMAIN so that it's clear the domain doesn't exist. You may get NOERROR and no records.
I commonly find myself needing to check DNS records and would regularly use Google's web tool. I know I could use "dig", but I like a web interface. Also, sometimes I'm on my phone where a terminal is just not ideal either. Over the past weekend I decided it would be fun to make a little project to do this called D53. Check it out!
I wanted a short name that was easy to remember and quick to type. The "d" was actually for "dig", but I figured people might think it was for "dns" which works too. And 53 is because DNS runs on 53.
- Add support for SVCB and HTTPS records
- When you lookup CAA, you return flags as a string. It should be an integer.
- JSON is nice as an option, but I would optimise the output for people to read.
- I really like the main font. The subtitle under the logo ("A simple DNS lookup tool") looks thin in comparison. I would consider using the same chunky font for it as elsewhere. It could look nicer.
I built something similar, perhaps you can use it for further inspiration: https://www.hardenize.com/report/d53.co/1708030537#domain_dn...
It's indeed a fun little project :)