It was caused by the fact that the old IP address was still here. I commented it out and solved the problem once and for all.
/etc/hosts
When querying a DNS server on a mac, do we get the information written here first?
If it is not written there, it is interpreted as making a query to the DNS server.