Reply
Highlighted
Emerging Member
Posts: 88
Registered: ‎05-22-2014
Kudos: 28
Solutions: 1

Unifi - DHCP opt 15 (search domain) starts with a number = BARF?

[ Edited ]

There is a bad bug where Unifi devices placed behind a router that is configured to hand out a search-domain starting sith a number e.g. "365training.lan" will set "search" in /etc/resolv.conf on the WAP to "bad". This then causes the device to fail to contact the controller, fail to show up for adoption, go offline etc.

more details with screenshots over on the pfSense forum
https://forum.pfsense.org/index.php?topic=126354.msg699150#msg699150

 

The bug was fixed upstream almost 2 years ago, can we please get an updated binary ASAP??

of busybox

 

update: I have opened a ticket #656746

Established Member
Posts: 1,103
Registered: ‎08-29-2016
Kudos: 492
Solutions: 50

Re: Unifi - DHCP opt 15 (search domain) starts with a number = BARF?

[ Edited ]

@UBNT-MikeD @UBNT-cmb 

 

Please, recompile busybox with FEATURE_UDHCPC_SANITIZEOPT turned off, or - preferably - patch or update to a busybox versions that fixed the broken behaviour. 

 

https://git.busybox.net/busybox/tree/networking/udhcp/dhcpc.c#n172 - fixed code

https://git.busybox.net/busybox/commit/?id=7280d2017d8075267a12e469983e38277dcf0374 - broken code in outdated versions

 

 

Ubiquiti Employee
Posts: 4,620
Registered: ‎08-08-2016
Kudos: 4568
Solutions: 337

Re: Unifi - DHCP opt 15 (search domain) starts with a number = BARF?

Thanks for the tag @doktornotor. Yes we need to update that, I opened a bug ticket for the UAP firmware team. 

Emerging Member
Posts: 88
Registered: ‎05-22-2014
Kudos: 28
Solutions: 1

Re: Unifi - DHCP opt 15 (search domain) starts with a number = BARF?

Hey Chris

Does the bug only affect UAP? What about USG, USW etc? Just want to make sure all bases are covered
Ubiquiti Employee
Posts: 4,620
Registered: ‎08-08-2016
Kudos: 4568
Solutions: 337

Re: Unifi - DHCP opt 15 (search domain) starts with a number = BARF?

It doesn't affect USG. USW and UAP come from the same repo so both covered by that. 

Emerging Member
Posts: 88
Registered: ‎05-22-2014
Kudos: 28
Solutions: 1

Re: Unifi - DHCP opt 15 (search domain) starts with a number = BARF?

Can anyone from UBNT give an idea of when the fix will be rolled in? I'd like to know if will be days/weeks/months so I can plan to wait it out or implement workarounds now. We have some networks affected by this.

Ubiquiti Employee
Posts: 4,620
Registered: ‎08-08-2016
Kudos: 4568
Solutions: 337

Re: Unifi - DHCP opt 15 (search domain) starts with a number = BARF?

This was fixed today, should make the next release. 

Emerging Member
Posts: 88
Registered: ‎05-22-2014
Kudos: 28
Solutions: 1

Re: Unifi - DHCP opt 15 (search domain) starts with a number = BARF?

Excellent! It's not baked into 3.7.47.6194 by chance is it?

Emerging Member
Posts: 88
Registered: ‎05-22-2014
Kudos: 28
Solutions: 1

Re: Unifi - DHCP opt 15 (search domain) starts with a number = BARF?

Fixed in 3.7.49.6201

 

thx to everyone who helped.

Established Member
Posts: 1,103
Registered: ‎08-29-2016
Kudos: 492
Solutions: 50

Re: Unifi - DHCP opt 15 (search domain) starts with a number = BARF?

@UBNT-cmb - Thanks for quick fix. Ubnt Banana

Reply