I'm trying to have a trigger check the IP host against a DNS query. I did the DNS query item but I'm missing how to check the returned value in a trigger.
won't work because the check returns something like host.name.it A 1.3.2.3.
I also tried
to strip out all the unnecessary output and check against the IP value only but again it's not accepted.
Any hint?
thanks
Code:
{Template YO verifica host DNS:net.dns.record[1.0.0.1,{$DNS_HOST},A].last()}<>{$DNS_EXPECTED_IP}
I also tried
Code:
{{ITEM.VALUE}.regsub([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}+, \1)}
Any hint?
thanks
Comment