I have properly setup resolvconf, which properly sets up /etc/resolv.conf:# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTENnameserver 8.8.8.8nameserver 8.8.4.4I am behind a proxy, so I have updated /etc/profile.d/proxy.sh, /etc/apt/apt.conf.d/99HttpProxy and /etc/wgetrc.Apt is able to resolve names, but dig or ping is not.# dig ftp.de.debian.org(times out)Why is apt resolving the names properly? I thought there is a single DNS resolving mechanism on Debian, based on /etc/resolv.conf?Why is my properly setup /etc/resolv.conf not working?Do I need to install / setup something else for DNS to work? I am under the assumption that DNS is performed by the system libraries (according to the resolver configuration), so no extra service needs to be installed in order for DNS to work.Do I need to restart any service after tweaking the resolver configuration?EDITMy /etc/nsswitch.conf is:# /etc/nsswitch.conf## Example configuration of GNU Name Service Switch functionality.# If you have the `glibc-doc-reference' and `info' packages installed, try:# `info libc Name Service Switch' for information about this file.passwd:         compatgroup:          compatshadow:         compatgshadow:        fileshosts:          files dnsnetworks:       filesprotocols:      db filesservices:       db filesethers:         db filesrpc:            db filesnetgroup:       nis
DNS not working on Debian jessie
debian;apt;dns
If your network blocks direct HTTP access (so that you need to use a proxy), it probably blocks direct DNS access as well. You've configured your system to access Google's DNS servers. That can't work if your network blocks them.Remove the setting where you hard-code your preference of DNS servers, and leave the system default. Typically you get an IP address through DHCP, and the DHCP server tells your computer what DNS servers to use.Programs that use the HTTP proxy work because they don't make DNS requests the proxy makes them.