[OpenWrt Wiki] DNS configuration
openwrt.org › docs › guide-userApr 10, 2019 · If you want to contribute to the OpenWrt wiki, please post HERE in the forum or ask on IRC for access. Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
[OpenWrt Wiki] DNS and DHCP examples
openwrt.org › docs › guide-userDec 28, 2021 · This how-to provides most common dnsmasq and odhcpd tuning scenarios adapted for OpenWrt. Instructions. Static leases. LuCI → DHCPand DNS→ Static Leases. Add a fixed IPv4address 192.168.1.22and name mydesktopfor a machine with the MAC address 00:11:22:33:44:55. uci add dhcp hostuci setdhcp.@host[-1].name="mydesktop"uci setdhcp.@host[-1].dns='1'uci setdhcp.@host[-1].mac="00:11:22:33:44:55"uci setdhcp.@host[-1].ip="192.168.1.22"uci commit dhcp/etc/init.d/dnsmasq restart.