Package: dnsmasq
Version: 2.49-1
Followup-For: Bug #528762

I have noticed this problem too; I am using 'resolv-file' in the config file to 
set a manual list of nameservers.

The init script at /etc/init.d/dnsmasq claims that a 'resolv-file' line in 
/etc/dnsmasq.conf will override the RESOLV_CONF variable set by the init 
script.  This does not happen because, according to dnsmasq(8), the first 
'resolv-file' option replaces the default and subsequent 'resolv-file' options 
add to the list of files read.

Is the following a viable solution:
- Change the internal dnsmasq default for resolv file to
  /var/run/dnsmasq/resolv.conf
- In the init script, if /sbin/resolvconf does not exist, create a symlink
  at /var/run/dnsmasq/resolv.conf to /etc/resolv.conf

Thanks.

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (730, 'stable'), (720, 'testing'), (710, 'unstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30+63 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dnsmasq depends on:
ii  adduser                       3.110      add and remove users and groups
ii  dnsmasq-base                  2.49-1     A small caching DNS proxy and DHCP
ii  netbase                       4.34       Basic TCP/IP networking system

dnsmasq recommends no packages.

Versions of packages dnsmasq suggests:
ii  resolvconf                    1.42       name server information handler

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to