You have to modify file /etc/resolv.conf
it should have a line:
nameserver 212.23.23.45
where the number should be your ISP DNS server which is generally the fastest one available for your case
note:
in your case before the modifications the ping of an physical address should work, only the
www.adresses.com won't work
feedback the results