DNS server adress corresponds to DHCP option 006. According to the OpenWRT Wiki your /etc/config/dhcp should look like config 'dhcp' 'lan' ... list ...
Network basics /etc/config/network This article may contain network configuration that is version dependent post 2021-06 * ifname@interface has been moved to device and device sections * while legacy ifname syntax may work on 21.02 or recent master it is recommended that you migrate to device usage
The dnsmasq and dhcpd configuration is located in /etc/config/dhcp and controls both DNS and DHCP server options on the device (both DHCP and DNS services ...
macOS Version: 11.6 Bigsur. Description. Can't get the rigth DHCP IP only with OpenWRT routers (Tested 3 diferent openwrt flashed routers) Same problem as # #584. With itlwm v1.2 it get the rigth dhcp ip and wifi work but keeps connecting/disconnecting in some seconds. With v1.3 or 2.0 randomly connect and all work fine until restart.
15.02.2017 · As with most settings in LEDE/OpenWRT, defining your DHCP option is a matter of changing a couple lines in a config file. It is not recommended to manually mess around with these sort of settings…
02.01.2022 · OpenWrt in QEMU QEMU is an an open source processor emulator (and virtualizer). This document describes how to run OpenWrt in QEMU. If you are looking to use OpenWrt as a QEMU host, see Running QEMU guests on OpenWrt. It is mixed descriptions from Windows and Linux, so please read through all of it before starting.
OpenWrt will translate this to --dhcp-option, with a hyphen, as ultimately used by dnsmasq. this doesn't seem to have anything to do with any of the 3 permutations above. Searching for "dhcp_option" on duckduckgo yields little of relevance probably because ddg isn't distinguishing hyphens, underscores etc.
Network -> Interfaces -> LAN (Edit) -> DHCP Server -> Advanced Settings -> DHCP-Options. 6,192.168.x.y. That UI on my version even includes the note at the bottom: Define additional DHCP options, for example "6,192.168.2.1,192.168.2.2" which advertises different DNS servers to clients.
28.12.2021 · DNS and DHCP examples See also: DNS and DHCP configuration, DNS encryption, DNS hijacking Introduction This how-to provides most common dnsmasq and odhcpd tuning scenarios adapted for OpenWrt. Instructions Static leases LuCI -> DHCP and DNS -> Static Leases Add a fixed IPv4 address 192.168.1.22 and name
04.02.2021 · Firmware Version OpenWrt 19.07.6 r11278-8055e38794 / LuCI openwrt-19.07 branch git-21.029.68283-bf8b0bb Kernel Version 4.14.215. dnsmasq 2.80-16.3 (i try and dnsmasq-full 2.80-16.3) I set option 66 = IP-address (192.168.0.2 for example) but DHCP server always set NEXT-SERVER option = dhcp server address (192.168.0.1)