[MXS-1973] Add option to do reverse DNS lookups on IP addresses for MaxAdmin output Created: 2018-07-11  Updated: 2020-08-25  Resolved: 2019-05-28

Status: Closed
Project: MariaDB MaxScale
Component/s: maxadmin
Affects Version/s: 2.2.11
Fix Version/s: 2.4.0

Type: New Feature Priority: Major
Reporter: Geoff Montee (Inactive) Assignee: Esa Korhonen
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-78, MXS-SPRINT-79, MXS-SPRINT-80, MXS-SPRINT-81, MXS-SPRINT-82, MXS-SPRINT-83

 Description   

MaxAdmin currently only prints IP addresses for hosts in its output. i.e.:

$ maxadmin list sessions
-----------------+-----------------+----------------+--------------------------
Session | Client | Service | State
-----------------+-----------------+----------------+--------------------------
215811 | ::ffff:10.1.1.6 | Galera-Service | Session ready for routing
216121 | ::ffff:10.1.1.5 | Galera-Service | Session ready for routing
216783 | ::ffff:10.1.1.1 | Galera-Service | Session ready for routing

Some users would like to have an option that would allow them to tell maxadmin to do reverse DNS lookups on IP addresses, and then to have the hostnames printed in addition to or instead of the IP addresses.



 Comments   
Comment by markus makela [ 2018-07-11 ]

Should be relatively low-effort to implement. It'll be mainly about wrapping the dcb->remote into some function call that either returns the IP or the hostname depending on how MaxScale is configured. The value of dcb->remote cannot be changed to a hostname as it would cause functional changes to MaxScale, mainly authentication and how it behaves.

Generated at Thu Feb 08 04:10:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.