Skip to content

cPanel recommendation for skip-name-resolve is incorrect #863

@RMerl

Description

@RMerl

According to the script, skip-name-resolve should be enabled:

CPanel and Flex system skip-name-resolve should be on

However this is incorrect, according to cPanel:

https://support.cpanel.net/hc/en-us/articles/21664293830423-Should-I-use-skip-name-resolve-in-my-cnf

The script then recommends entering:

Variables to adjust:
    skip-name-resolve=0

Which is once again wrong - adding this effectively enables skip-name-resolve rather than disabling it. Confirmed by querying the MySQL server:

mysql> SHOW VARIABLES LIKE 'skip_name_resolve';
+-------------------+-------+
| Variable_name     | Value |
+-------------------+-------+
| skip_name_resolve | ON    |
+-------------------+-------+

Recommended changes:

  1. Do not state that "CPanel and Flex system skip-name-resolve should be on
  2. In the recommendations, do not recommend adding the skip-name-resolve=0, which effectively enables it rather than disable it (skip-name-resolve is not a boolean variable, it's a switch - it must be completely absent from the config file)

This was tested on an AlmaLinux 8 server running MySQL 8.4 and cPanel 130.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions