Skip to content

Basic program that tests DNS and Curls a HTTPS site. Runs in a loop and timestamps.

License

Notifications You must be signed in to change notification settings

Ranondorf/url_dns_tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

url_dns_tester

Basic loop to check DNS and perform a curl function on a URL. Practical application is to check availablity due to a failover (Load Balancer or DNS)

Installation

Prequisites

  • No prequisites besides requiring DIG and CURL

Installation and Running Program

Run bash script with two CLI arguments, the first is the FQDN, the next is the path

chmod +x url_dns_tester ./url_dns_tester.sh test.example.com my/test

The above will dig 'test.example.com' and perform a cul on 'https://test.example.com/my/test'. The full dig result is returned, but only the status code of the curl is returned. All this is saved in a log file in the folder this function is called from.

Credits

Ruwan Samaranayake

License

Refer to license file in repository

About

Basic program that tests DNS and Curls a HTTPS site. Runs in a loop and timestamps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages