oEmbed work on localhost but not on distant server

It’s a missing configuration on the apache hosts file which cause troubles on serveur ‘self call’. For exemple, if serveur is using domain.com, I’ve a timeout when I typing curl domain.com with shh.

Adding 127.0.0.1 domain.com in /etc/hosts file and it’s work !

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)