I've got MySQL Master/Slave setup and I've noticed the following warnings in the mysql log files on both servers:
[Warning] IP address 'xxx.xxx.xxx.xxx' could not be resolved: Name or service not known
I've checked and the DNS lookups works fine and most of these IPs are from China.
I planning to limit access on port 3306 on the firewall however could you please help me to understand what they are trying to do. Are they just trying to connect to the MySQL server. Where I can look for some more details.
Thanks
localhost, MySQL will still do the forward lookup onlocalhostto make sure it matches the original IP address. However, as with all things security related, don't just trust me on this. And it's still better to turn off name resolving in your config. – Ladadadada May 31 '17 at 16:14skip_name_resolve = onI would need to change all mylocalhostusers to127.0.0.1? It looks like MariaDB driver is smart enough to allowlocalhostusers to be honored: All host values in the GRANT tables must be IP addresses (or localhost) – MeSo2 Dec 11 '21 at 18:44