No longer connect to mysql

Any help would be appreciated.
I started getting and error on any connection attempts through api to mysql.
Connection to users ect. still work fine.

“SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution (SQL: SHOW FULL TABLES FROM databaseName WHERE TABLE_TYPE = ‘BASE TABLE’)”

I would assume a DNS issue.
However, I have this service to mysql configured in dreamfactory with IP address so DNS should be out of it.

Thank you.
Bryan