There is an OpenWRT router on the local network (12.09) and several Ezviz cameras. If the electricity goes out, then the time on the cameras gets lost and getting the recordings they make without a set time is a whole story...
I have built my NTP server on ESP. But I can't set up cameras to work with it, only 0.amazon.pool.ntp.org . DNS cannot be replaced, 8.8.8.8, 8.8.4.4. Perhaps also the router's address, I'm not sure. The task is to make sure that the camera receives time from the local NTP server if there is no Internet. Well, it will be a great option if the camera receives time from a real Amazon server, if there is Internet. And it would be necessary for the camera to still see one of Google's DNS servers so that the camera has access to its cloud.
The initial data.
NTP server 192.168.0.160 (Wi-Fi)
Contains an NTP server on port 123
Contains a DNS server with a single record (0.amazon.pool.ntp.org 192.168.0.160)
Redirects all DNS queries with other names to the router, for example (I can enter any IP address).
Camera 192.168.0.140 (Wi-Fi)
Requests the NTP server 0.amazon.pool.ntp.org
DNS 8.8.8.8 and 8.8.4.4
Router 192.168.0.100
/etc/config/network and /etc/config/wireless
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.0.100'
config switch
option name 'eth0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'eth0'
option vlan '1'
option ports '0 1 2 3 4'
config interface 'WAN_HUAWEI'
option proto 'dhcp'
option ifname 'eth2'
config interface 'WAN_ZTE'
option proto 'dhcp'
option ifname 'usb0'
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option macaddr '90:f6:52:00:00:00'
list ht_capab 'SHORT-GI-20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'TX-STBC'
list ht_capab 'RX-STBC1'
list ht_capab 'DSSS_CCK-40'
option country 'RU'
option hwmode '11ng'
option distance '1'
option channel '6'
option txpower '20'
option htmode 'HT20'
config wifi-iface
option device 'radio0'
option mode 'ap'
option ssid 'OpenWrt'
option network 'lan'
option encryption 'psk-mixed'
option key '123456789'