TritonDataCenter / smartos-live

For more information, please see http://smartos.org/ For any questions that aren't answered there, please join the SmartOS discussion list: https://smartos.topicbox.com/groups/smartos-discuss
1.56k stars 244 forks source link

LX Ubuntu 20.04 dnsmasq issue #1046

Open living7ikelarry opened 2 years ago

living7ikelarry commented 2 years ago

Hi, I've been trying to use pihole in ubuntu lx zone. It uses dnsmasq to handle the requests and block ad domains. I have figured out how to get it listening on port 53, but now my issue is that I keep getting this error in log and then it crashes.

It receives the first dns request upon starting and crashes with this error:

May 20 07:46:35 dnsmasq[301529]: netlink returns error: Unknown error -122

I also noticed in pihole status I have this message:

Cannot open netlink socket: Protocol not supported

So I assume its related. I honestly don't know a lot about lx zones (just started using smartos at home trying to learn), is this a limitation of the lx zone? Or do I maybe need to edit or add something within the zone to get dns working?

Thanks

danmcd commented 2 years ago

It would be interesting to know what netlink features pihole/dnsmasq requires. LX does not necessarily support ALL Linux kernel primitives, and netlink is a particularly invasive one w.r.t. the underlying (very different) illumos kernel.

In the worst case, you can spin up a BHYVE zone to run pihole, however.

danmcd commented 2 years ago

p.s. Technically this sort of issue belongs in TritonDataCenter/illumos-joyent .