Is there are way to get adguard home DNS and DHCP to work together?

I’m currently testing using both adguard DNS and DHCP. I’ve configured a few DHCP static leases -

But I was surprised to find that the adguard DNS doesn’t automatically resolve these … ie arm2 doesn’t get resolved. Also missing from the adguard DHCP is support for a search domain.

The only solution I’ve found so far to add some DNS rewrites.

Is there a better way to integrate the adguard DNS and DHCP together to avoid specifying the same host/ip twice ?

Thanks,

Pete

Ah.

I see from DHCP · AdguardTeam/AdGuardHome Wiki · GitHub that adguard home has automatic hosts with the domain name defaulted to lan.

So the following does work -

➜  ~ ping arm2.lan
PING arm2.lan (192.168.175.11): 56 data bytes
64 bytes from 192.168.175.11: icmp_seq=0 ttl=64 time=5.228 ms
64 bytes from 192.168.175.11: icmp_seq=1 ttl=64 time=6.376 ms

I would be great if the home assistant plugin exposed configurations for this … I’ll raise an enhancement request.

Aready requested :slight_smile: local_domain_name support · Issue #410 · hassio-addons/addon-adguard-home · GitHub