[Bug 306706] [NEW] bind9 should flush the DNS cache on suspend / resume to avoid stale records

Daniel Pittman daniel at rimspace.net
Tue Dec 9 23:59:30 GMT 2008


Public bug reported:

Binary package hint: bind9

I use bind9 on my laptop as the primary source of DNS information for
several reasons: first, it provides reasonable independence of the local
network infrastructure, which is useful when my job is working out why a
client network doesn't have working DNS, and secondly, because it allows
me much greater flexibility in, for example, always forwarding lookups
to our internal DNS servers via VPN, rather than to the client network
DNS servers.

The one problem that I have hit with this is that bind will cache
results over suspend/resume, which can lead to situations where split-
view DNS on a client network causes the private IP rather than the
public IP to be visible to my applications.

(eg: service.example.com returns 192.168.1.1 while inside my clients
network, but a real Internet IP while outside it.)

It would be reasonably easy to address this issue by including a pm-
utils suspend/resume script to flush the DNS cache; this, to me, seems a
reasonable behaviour since a potentially unlimited period of time passes
between the two events.

I have attached the private script I use for implementing this, which
does address my own issues.

Regards,
        Daniel

Description:    Ubuntu 8.04.1
Release:        8.04
bind9:
  Installed: 1:9.4.2.dfsg.P2-2
  Candidate: 1:9.4.2.dfsg.P2-2
  Version table:
 *** 1:9.4.2.dfsg.P2-2 0
        500 http://mirror.internode.on.net hardy-updates/main Packages
        500 http://mirrors.kernel.org hardy-updates/main Packages
        100 /var/lib/dpkg/status
     1:9.4.2-10ubuntu0.1 0
        500 http://security.ubuntu.com hardy-security/main Packages
     1:9.4.2-10 0
        500 http://mirror.internode.on.net hardy/main Packages
        500 http://mirrors.kernel.org hardy/main Packages

ProblemType: Bug
Architecture: amd64
Date: Wed Dec 10 10:51:10 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Package: bind9 1:9.4.2.dfsg.P2-2 [modified: usr/sbin/named usr/sbin/rndc usr/sbin/rndc-confgen usr/sbin/dnssec-keygen usr/sbin/dnssec-signzone usr/sbin/named-checkconf usr/sbin/named-checkzone]
PackageArchitecture: amd64
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/games
 LANG=en_AU.UTF-8
SourcePackage: bind9
Uname: Linux 2.6.24-22-openvz x86_64

** Affects: bind9 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: bind9 (Debian)
     Importance: Undecided
         Status: New


** Tags: apport-bug

-- 
bind9 should flush the DNS cache on suspend / resume to avoid stale records
https://bugs.launchpad.net/bugs/306706
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bind9 in ubuntu.



More information about the Ubuntu-server-bugs mailing list