Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkingfeeling authored Apr 5, 2023
1 parent 065aa82 commit 8240521
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ This Python script generates a list of subdomains where is a known format such a

# validator.html

This code is a web application that allows you to check if a list of domain names is valid. The application is written in JavaScript and uses a couple of external services to accomplish its task.
The code is a web application that allows you to check if a list of domain names is valid. The application is written in JavaScript and uses a couple of external services to accomplish its task.

When you open the application, you'll see a simple web page with a text box and a button. To use the application, you simply enter a list of domain names, one per line, into the text box and click the button.

When you click the button, the application uses a JavaScript function called checkDomains() to validate the domain names. This function takes the input text, splits it into individual domain names, and sends a DNS query for each domain name to the Cloudflare DoH JSON API.
When you click the button, the application uses a JavaScript function called `checkDomains()` to validate the domain names. This function takes the input text, splits it into individual domain names, and sends a DNS query for each domain name to the Cloudflare DoH JSON API.

The Cloudflare DoH JSON API is an external service that provides a secure way to send DNS queries over HTTPS. When the API receives a DNS query, it looks up the corresponding IP address for the domain name and returns the result as a JSON object.

The checkDomains() function receives the JSON object for each DNS query and checks if it contains a valid IP address. If the JSON object contains a valid IP address, the domain name is added to a list of valid domains. Otherwise, the domain name is skipped.
The `checkDomains()` function receives the JSON object for each DNS query and checks if it contains a valid IP address. If the JSON object contains a valid IP address, the domain name is added to a list of valid domains. Otherwise, the domain name is skipped.

Once all of the DNS queries have completed, the checkDomains() function updates the output text with the list of valid domain names. The output text is displayed in a separate text box below the input text box.
Once all of the DNS queries have completed, the `checkDomains()` function updates the output text with the list of valid domain names. The output text is displayed in a separate text box below the input text box.

0 comments on commit 8240521

Please sign in to comment.