Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
2.2.11
-
None
-
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.
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.