nextdns / nextdns

NextDNS CLI client (DoH Proxy)
https://nextdns.io
MIT License
3.13k stars 192 forks source link

NextDNS CLI on Home Assistant! #667

Open FabioEight opened 2 years ago

FabioEight commented 2 years ago

Hello there! Is there any way to implement nextdns-cli as Addon for Home Assistant? This could be very useful for devices using Home Assistant OS, where it's not possible to install other programs. As far as I know, the competitor AdGuard Home does provide an Addon for Home Assistant but this, configured for NextDNS, won't identify the devices on My NextDNS website. Cheers!

mazzy89 commented 2 years ago

that’s pretty doable. just start from an example like Tailscale add-on https://github.com/hassio-addons/addon-tailscale

you need to bake the nextdns cli on a Docker image and prepare the add-on configuration.

FabioEight commented 2 years ago

Thanks for the advice, any idea on how proceeding?

mazzy89 commented 2 years ago

There are many resources out there to start. I’d start from the official add-on template https://github.com/hassio-addons/addon-example.

Then create a Dockerfile baking the nextdns cli binary.

To move on creating the required configuration file depending the configuration interface you have to give to your add-on.

It’s not hard. just time consuming but a lot of fun if you like working with containers.

rs commented 2 years ago

NextDNS is part of home assistant now.

bdr99 commented 1 year ago

This issue should not have been closed. The NextDNS integration that was added to Home Assistant allows monitoring NextDNS statistics and controlling basic NextDNS settings from Home Assistant, but it doesn't provide the NextDNS CLI or allow Home Assistant to use NextDNS as its DNS resolver.

xenia-09A commented 5 months ago

Hi is HA still using UDP or can we now use DoT with NextDNS or other providers In in process of installing this and hoping it supports DoT for HA itself natively my time is limited right now so I have a green being shipped right now to start out and like to use DoT with NEXTDNS with custom URL

thanks