Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 134101

Summary: net-misc/dhcp fails to set dns correctly on multiple dns servers
Product: Gentoo Linux Reporter: Jan Spitalnik <jan>
Component: New packagesAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fix for dhclient-script

Description Jan Spitalnik 2006-05-23 05:37:21 UTC
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 Jan Spitalnik 2006-05-23 05:37:57 UTC
Created attachment 87320 [details, diff]
fix for dhclient-script
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-05-23 06:04:44 UTC
Fixed in dhcp-3.0.3-r9

Thanks for the report :)