Bug 134101 - net-misc/dhcp fails to set dns correctly on multiple dns servers
Bug#: 134101 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: uberlord@gentoo.org Reported By: jan@spitalnik.net
Component: Ebuilds
URL: 
Summary: net-misc/dhcp fails to set dns correctly on multiple dns servers
Keywords:  
Status Whiteboard: 
Opened: 2006-05-23 05:37 0000
Description:   Opened: 2006-05-23 05:37 0000
Hi,

when i try to use dhcp client in our company network dhclient-script
logs this into syslog:

May 23 14:28:36 spity-nb dhclient: bound to 129.157.75.161 -- renewal in 6630
seconds.
---
May 23 14:28:36 spity-nb ifplugd(lan0)[6161]: client: /sbin/dhclient-script:
line 27: [: too many arguments
May 23 14:28:36 spity-nb ifplugd(lan0)[6161]: client: /sbin/dhclient-script:
line 27: [: too many arguments
---

dhclient-script is not able to cope well with multiple DNS's or multiple search
domains. Appended patch fixes it.

------- Comment #1 From Jan Spitalnik 2006-05-23 05:37:57 0000 -------
Created an attachment (id=87320) [details]
fix for dhclient-script

------- Comment #2 From Roy Marples (RETIRED) 2006-05-23 06:04:44 0000 -------
Fixed in dhcp-3.0.3-r9

Thanks for the report :)