You have a file /etc/resolv.conf, but the computer does not use the configured DNS servers to look up host names.
What is most likely the problem?
A.
The hosts entry in your /etc/nsswitch.conf does not list dns.
B.
You do not have a /etc/named.conf file.
C.
The localhost hostname is not properly configured in /etc/hosts.
D.
The named daemon is not running on your computer.
Explanation/Reference:
nsswitch.conf is used to specify what resources a service has to use, check if the hosts entry contains files and dns as possible lookup methods.