On 0, [EMAIL PROTECTED] wrote: > > From: Tom Cook [mailto:[EMAIL PROTECTED] > > > > > I changed the IP-address. of my DNS-server. > > > Now, when I upgrade packages on my client, resolv.conf is > > > changed to the DNS-servers old address. > > > > > > How do I tell apt, the new IP-address? > > > > > > Btw. its testing (upgraded from stable). > > > > dpkg-reconfigure bind9-host > > The problem is, "dpkg -S /etc/resolv.conf" gives no output. > I can't find which package to reconfigure.
I noticed that as well. In fact I did this: cd /var/cache/apt/archives for i in `ls *.deb` ; do if ( dpkg-deb --fsys-tarfile | grep -q resolv.conf ) ; do dpkg-reconfigure -p low -s $i fi done and it didn't ask me for a DNS server. So, unless someone volunteers another way, you may be reduced to this: find / -type f -not -path '/proc/*' -exec grep -q <Old_DNS_Addr> {} \; -print to find all the files which contain your old DNS address. There shouldn't be many. I just tried this on my system, and there were none in /boot /root /bin /lib /tmp /usr /home /etc which sound a bit odd - I think I did something wrong. I also forgot to exclude /proc/* and so it just hung on /proc/kmesg. Tom -- Tom Cook Information Technology Services, The University of Adelaide "That you're not paranoid does not mean they're not out to get you." - Robert Waldner Get my GPG public key: https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au
pgp0CVjegk5bl.pgp
Description: PGP signature