[Resolvconf-devel] Bug#573868: [resolvconf] resolvconf doesnt handles search entries correctly

Christoph Thielecke christoph.thielecke at gmx.de
Sun Mar 14 15:08:01 UTC 2010


Package: resolvconf
Version: 1.45
Severity: important

--- Please enter the report below this line. ---
Its possible  to put valid lines from resolv.conf config file to resolvconf to 
update /etc/resolv.conf like nameserver, search, etc:

echo "nameserver 1.2.3,4" | resolvconf -a eth0

updates the nameserver.

That function works fine for nameserver and search but it does wrong for 
domain line:

---------------- begin ------------------

develop:/home/crissi # cat /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 10.111.0.1
search event.linux-tage.de


develop:/home/crissi # echo "domain bla" | resolvconf -a eth0
develop:/home/crissi # cat /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 10.111.0.1
search bla event.linux-tage.de

develop:/home/crissi/ # resolvconf -d eth0

develop:/home/crissi/ # cat /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 10.111.0.1
search event.linux-tage.de

---------------- end ------------------

The value of the domain line is appended at search line, which is wrong. It 
should be result in a domain line.


--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.33-rc8

Debian Release: 5.0.3
  990 stable          www.debian-multimedia.org 
  990 stable          wine.budgetdedicated.com 
  990 stable          security.debian.org 
  990 stable          ftp.de.debian.org 
  990 stable          dl.google.com 

--- Package information. ---
Depends          (Version) | Installed
==========================-+-===========
coreutils        (>= 5.93) | 7.4-2
lsb-base        (>= 3.0-9) | 3.2-23
debconf          (>= 0.5)  | 1.5.28
 OR debconf-2.0            | 


Package's Recommends field is empty.

Package's Suggests field is empty.




-- 
Linux User Group Wernigerode
http://www.lug-wr.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/resolvconf-devel/attachments/20100314/d08181a8/attachment.pgp>


More information about the Resolvconf-devel mailing list