Forum Discussion

canon5_330970's avatar
canon5_330970
Icon for Nimbostratus rankNimbostratus
Feb 08, 2018

DNS VIP Monitor using DIG - does it need to be static?

Hey guys,

 

Monitor: https://devcentral.f5.com/codeshare?sid=390&lc=1

 

For the external DNS monitor using DIG (link above) does the site that's looked up need to respond with a static answer?

 

For example if my monitor looked up "apple.com" and it returns with multiple addresses but my monitor is only configured to mark up on one, would the external monitor still work? Currently my DNS VIPs are only using basic TCP/UDP port checks. I'd like a more specific healthcheck but the domain to check would return more than one address like the apple example. I'll post an example config below for the scenario I was talking about, this would be using the EAV script above. -

 

monitor dns {

 

defaults from external

 

interval 30

 

timeout 91

 

args "apple.com 17.142.160.59"

 

run "dns_mon"

 

}

 

EXAMPLE DIG -

 

MACHINE_HOSTNAME:~ USER$ dig +short apple.com

 

17.172.224.47

 

17.178.96.59

 

17.142.160.59

 

No RepliesBe the first to reply