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

Bug 512494

Summary: =net-misc/dhcpcd-6.2.0-r1 adds multiple search lines into /etc/resolv.conf
Product: Gentoo Linux Reporter: Zoltán Halassy <zhalassy>
Component: [OLD] Core systemAssignee: William Hubbs <williamh>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, roy
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Zoltán Halassy 2014-06-05 09:09:12 UTC
If dhcpcd find two networks with a DHCP server, and both DHCP servers are giving domain information, dhcpcd puts two search lines into /etc/resolv.conf which results in only usign the second one. dhcpcd should gather all the domains and put them into one line.

Reproducible: Always

Steps to Reproduce:
- Two networks with a DHCP server, both providing domain parts.
Actual Results:  
contents of /etc/resolv.conf:
...
search a.example.com
search b.example.com

Expected Results:  
search a.example.com b.example.com
Comment 1 Roy Marples 2014-06-18 21:13:35 UTC
Fixed here:
http://roy.marples.name/projects/dhcpcd/ci/d064219ac7fad304a3c8ce0d1434566a4d033500?sbs=0

Can you test the 9999 build please?
Comment 2 Zoltán Halassy 2014-06-19 08:26:06 UTC
Hello!

Yes, it created a search line with two domains, cool! Thank you.
Comment 3 William Hubbs gentoo-dev 2014-06-21 00:28:55 UTC
Is this in 6.4.0, which is now in the tree?

Thanks,

William
Comment 4 Roy Marples 2014-06-21 09:21:27 UTC
(In reply to William Hubbs from comment #3)
> Is this in 6.4.0, which is now in the tree?

No it's not.
There's a PD enhancement I'm working on and when that's done I'll release 6.4.1, hopefully this weekend.
Comment 5 Roy Marples 2014-07-14 12:03:20 UTC
dhcpcd-6.4.1 released to fix this
Comment 6 William Hubbs gentoo-dev 2014-07-14 15:25:13 UTC
Dhcpcd-6.4.2 is now in the tree; Thanks a lot, Roy. :-)