specifying multiple domains in dns-search,but only the first is used

Bug #320414 reported by Alk on 2009-01-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
guessnet (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: guessnet

When specifying multiple domains or sub-domains in dns-search, only the first domain is used in /etc/resolv.conf

Example /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
auto wlan0
auto tun0

# Guessnet
# possible guessnet default
iface dhcp inet dhcp

mapping eth0
script guessnet-ifupdown
map default: dhcp
map verbose: true
map debug: true
map work-wired

mapping wlan0
script guessnet-ifupdown
map default: dhcp
map verbose: true
map debug: true
map work-wifi
map home-wifi

iface work-wired inet dhcp
dns-search emea.example.com nam.example.com asia.example.com example.com
dns-server <work name server>
test peer address <work ip address> mac <work mac address>

iface work-wifi inet dhcp
dns-search emea.example.com nam.example.com asia.example.com example.com
dns-server <work name server>
test wireless essid Wireless

iface home-wifi inet dhcp
dns-search mydomain.com
dns-server <home name server>
test wireless essid PrivateWireless

iface unknown inet dhcp

/etc/resolv.conf looks like below when wired connected at work

domain emea.example.com
search emea.example.com
nameserver <work name server>

The expected behavior should have been

domain emea.example.com
search emea.example.com nam.example.com asia.example.com example.com
nameserver <work name server>

Currently I have to add the extra sub-domains to /etc/resolv.conf every time I come to office.

# lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

-- System Information:
Debian Release: lenny/sid
APT prefers intrepid-updates
APT policy: (500, 'intrepid-updates'), (500, 'intrepid-security'), (500, 'intrepid')
Architecture: i386 (i686)

Kernel: Linux 2.6.27-9-generic (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages guessnet depends on:
ii libc6 2.8~20080505-0ubuntu7 GNU C Library: Shared libraries
ii libgcc1 1:4.3.2-1ubuntu11 GCC support library
ii libiw29 29-1ubuntu2 Wireless tools - library
ii libnet1 1.1.2.1-2build1 library for the construction and h
ii libpcap0.8 0.9.8-5 system interface for user-level pa
ii libstdc++6 4.3.2-1ubuntu11 The GNU Standard C++ Library v3

Chris Cooper (ccooper-rsa) wrote :

this bug still exists in 10.04

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers