Forum Discussion
Don_Noel_23994
Nimbostratus
Nov 30, 2005DNS Monitor
I am load balancing DNS servers and the UDP monitor does not effectively test DNS server health. How would I write a custom monitor that could do a DNS query that would determine the nodes health? ...
Nicolas_Berthie
Dec 06, 2005Historic F5 Account
I made an external monitor in perl. It sends a DNS request to a specific hostname. Hope this will help.
! /usr/bin/perl -w
hostname
my ($domain)= "www.yahoo.fr";
my (@addrlist,$name,$altnames,$addrtype,$len,$packaddr);
my ($ip);
hostname resolution
if (!(($name, $altnames, $addrtype, $len, @addrlist) = gethostbyname ($domain)))
{
return "DOWN";
}
else
{
return "UP";
}Regards,
Nicolas
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects