Adguardhome: OpenWRT: AdGuard Home as a dnsmasq replacement

Created on 11 Mar 2020  路  4Comments  路  Source: AdguardTeam/AdGuardHome

We should provide an easy way to replace dnsmasq on openwrt:
https://openwrt.org/docs/guide-user/base-system/dhcp.dnsmasq

So we should provide an option to import the necessary configuration parameters including DHCP settings and DNS settings. Please note, that the DNS server from there will be used as a bootstrap, the real upstream will be configured in AdGuard Home settings exclusively.

Additionally, we should figure out how to keep DHCP integration in place. How does openwrt read the information about dynamic DHCP leases?

Medium enhancement

Most helpful comment

And dhcp-option. I currently have these in /etc/dnsmasq.conf:

dhcp-option=60,IPTV_RG
dhcp-option=28,192.168.1.255

I need these for my IPTV to function.

All 4 comments

The absolute minimum is:

cat /etc/config/network

config interface 'lan'
        option netmask '255.255.255.0'
        option ipaddr '192.168.8.1'

cat /etc/config/dhcp

config dhcp 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'

ignoring anything else.

And DNS server bootstrap address must be read from /etc/resolv.conf:

nameserver ...
nameserver ...

Don't forget about static leases

And dhcp-option. I currently have these in /etc/dnsmasq.conf:

dhcp-option=60,IPTV_RG
dhcp-option=28,192.168.1.255

I need these for my IPTV to function.

Reassigning to v0.103, a lot about our DHCP server should be improved first

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hl2guide picture hl2guide  路  3Comments

ameshkov picture ameshkov  路  3Comments

alexpovel picture alexpovel  路  3Comments

ameshkov picture ameshkov  路  3Comments

sosp picture sosp  路  3Comments