Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134101 - net-misc/dhcp fails to set dns correctly on multiple dns servers
Summary: net-misc/dhcp fails to set dns correctly on multiple dns servers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-23 05:37 UTC by Jan Spitalnik
Modified: 2006-05-23 06:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix for dhclient-script (dhclient-script.patch,643 bytes, patch)
2006-05-23 05:37 UTC, Jan Spitalnik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 :)