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 OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4
I 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?
EDIT
My /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: compat
group: compat
shadow: compat
gshadow: files
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis