Skip to content

Reverse DNS lookups #1319

@josipanas

Description

@josipanas

Hi,

We are using jmx_prometheus_httpserver version 0.20.0 in our product with TLS enabled.
Recently, we noticed PTR (reverse DNS lookups) requests occurring during JMX Exporter liveness checks:
Liveness: http-get http://:15020/app-health/locator-jmx-exporter/livez delay=90s timeout=5s period=15s #success=1 #failure=5
Reverse DNS lookups:
~> sudo tcpdump -ni cali5205 udp port 53 | grep -i ptr
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on cali5205, link-type EN10MB (Ethernet), snapshot length 262144 bytes
08:54:57.765646 IP 192.168.128.134.49110 > 10.96.0.10.54: 18906+ PTR? 6.0.0.127.in-addr.arpa. (40)
08:55:06.249839 IP 192.168.128.134.57328 > 10.96.0.10.54: 28672+ PTR? 181.223.168.192.in-addr.arpa. (46)
08:55:08.384820 IP 192.168.128.134.33574 > 10.96.0.10.54: 42376+ PTR? 181.223.168.192.in-addr.arpa. (46)
08:55:12.765568 IP 192.168.128.134.42941 > 10.96.0.10.54: 59040+ PTR? 6.0.0.127.in-addr.arpa. (40)
08:55:27.765632 IP 192.168.128.134.37767 > 10.96.0.10.54: 29585+ PTR? 6.0.0.127.in-addr.arpa.

One of our customers has a DNS server configured in a way that is returning "ServFail" response for these PTR requests:
~> sudo tcpdump -ni cali46f udp port 53
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on cali46f , link-type EN10MB (Ethernet), snapshot length 262144 bytes
09:56:39.154100 IP 192.168.168.76.54527 > 169.254.20.10.54: 3225+ PTR? 6.0.0.127.in-addr.arpa. (40)
09:56:41.155101 IP 169.254.20.10.54 > 192.168.168.76.54527: 3225 ServFail- 0/0/0 (40)
09:56:41.155453 IP 192.168.168.76.35659 > 169.254.20.10.54: 3225+ PTR? 6.0.0.127.in-addr.arpa. (40)
09:56:43.156629 IP 169.254.20.10.54 > 192.168.168.76.35659: 3225 ServFail- 0/0/0 (40)

Is there any way to disable these reverse DNS lookups for the JMX Exporter?

Thank you in advance!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions