Symptoms

  1. PHP operations executed in the scope of some applications fail with error:

    name lookup timed out
    
  2. DNS on the webserver is configured properly and the hostname the application tried to resolve resolves OK locally.

Cause

Incorrect DNS servers were specified in /etc/resolv.conf recently. Apache cached them and kept using it despite the nameserves were updated in /etc/resolv.conf.

Resolution

Restart Apache service to make it re read /etc/resolv.conf and be using new nameservers.

Internal content