Icinga 2 sending queries to DNS server when IP address is host.address attribute

Hello Icinga community,
I want to thank you all in advance for you help here. The Icinga forms have been a great help in managing a Icinga 1 server and getting Icinga 2 configured. Thanks all you rock.
Now to my question, I noticed a problem with my Icinga 2 monitoring server sending DNS queries to the DNS server when a DNS query is not needed. Why is DNS query even used when a IP address is entered in the host.address attribute. Is my configuration wrong? The host is up and in a “Ok” state but these DNS queries are cause extra load on the DNS server.

My Icinga 2 environment is two Icinga 2 master servers in HA cluster running version r2.10.5-1.

Host.conf ( this is a wireless network access point )

/******************** Endpoint & Zones ********************/ 
object Endpoint "ITCANAP32" {
  host = "ITCANAP32"
}

object Zone "ITCANAP32" {
  endpoints = [ "ITCANAP32" ]
  parent = "Master"
}

/******************** Host ********************/
object Host "ITCANAP32" {
  import "generic-host"

  display_name = "ITCANAP32"
  address = "10.1.2.3"
}

debug.log

[2019-10-03 12:13:11 -0700] debug/ApiListener: Not connecting to Endpoint 'ITCANAP32' because we're already trying to connect to it.
[2019-10-03 12:13:19 -0700] debug/DbEvents: Updating reachability for checkable 'ITCANAP32':  reachable.
[2019-10-03 12:13:21 -0700] debug/ApiListener: Not connecting to Endpoint 'ITCANAP32' because we're already trying to connect to it.
[2019-10-03 12:13:25 -0700] debug/DbEvents: Updating reachability for checkable 'ITCANAP32':  reachable.
[2019-10-03 12:13:31 -0700] debug/ApiListener: Not connecting to Endpoint 'ITCANAP32' because we're already trying to connect to it.
[2019-10-03 12:13:36 -0700] debug/DbEvents: Updating reachability for checkable 'ITCANAP32':  reachable.
[2019-10-03 12:13:41 -0700] debug/ApiListener: Not connecting to Endpoint 'ITCANAP32' because we're already trying to connect to it.
[2019-10-03 12:13:51 -0700] information/ApiListener: Reconnecting to endpoint 'ITCANAP32' via host 'ITCANAP32' and port '5665'
[2019-10-03 12:13:51 -0700] debug/ApiListener: Not connecting to Endpoint 'ITCANAP32' because we're already trying to connect to it.
[2019-10-03 12:13:53 -0700] critical/ApiListener: Cannot connect to host 'ITCANAP32' on port '5665'
[2019-10-03 12:13:53 -0700] debug/ApiListener: Cannot connect to host 'ITCANAP32' on port '5665'
[2019-10-03 12:13:53 -0700] information/ApiListener: Finished reconnecting to endpoint 'ITCANAP32' via host 'ITCANAP32' and port '5665'
[2019-10-03 12:14:04 -0700] debug/CheckerComponent: Scheduling info for checkable 'ITCANAP32' (2019-10-03 12:14:04 -0700): Object 'ITCANAP32', Next Check: 2019-10-03 12:14:04 -0700(1.57013e+09).
[2019-10-03 12:14:04 -0700] debug/CheckerComponent: Executing check for 'ITCANAP32'
[2019-10-03 12:14:04 -0700] debug/Checkable: Update checkable 'ITCANAP32' with check interval '60' from last check time at 2019-10-03 12:13:13 -0700 (1.57013e+09) to next check time at 2019-10-03 12:15:02 -0700(1.57013e+09).
[2019-10-03 12:14:04 -0700] debug/CheckerComponent: Check finished for object 'ITCANAP32'
[2019-10-03 12:14:08 -0700] debug/DbEvents: add checkable check history for 'ITCANAP32'
[2019-10-03 12:14:11 -0700] debug/ApiListener: Not connecting to Endpoint 'ITCANAP32' because we're already trying to connect to it.

Wireshark from DNS server

Thanks in advance for all your help. :slight_smile:
Alex

Enter the IP of your Endpoint object and icinga will not make an dns lookup.

object Endpoint "ITCANAP32" {
  host = "2.2.2.1"
}
2 Likes

Thanks Carsten you solution has resolved my problem. Thanks for your help. :slight_smile: