Загрузка данных
root@OpenWrt:~# nano /etc/resolv.conf
root@OpenWrt:~# ubus call system board
{
"kernel": "6.12.87",
"hostname": "OpenWrt",
"system": "13th Gen Intel(R) Core(TM) i5-1335U",
"model": "Default string Default string",
"board_name": "default-string-default-string",
"rootfs_type": "ext4",
"release": {
"distribution": "OpenWrt",
"version": "25.12.4",
"firmware_url": "https://downloads.openwrt.org/",
"revision": "r32933-4ccb782af7",
"target": "x86/64",
"description": "OpenWrt 25.12.4 r32933-4ccb782af7",
"builddate": "1778712129"
}
}
root@OpenWrt:~# uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].cachesize='1000'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].ednspacket_max='1232'
dhcp.@dnsmasq[0].filter_aaaa='0'
dhcp.@dnsmasq[0].filter_a='0'
dhcp.@dnsmasq[0].doh_backup_noresolv='-1'
dhcp.@dnsmasq[0].noresolv='1'
dhcp.@dnsmasq[0].doh_backup_server='' '/mask.icloud.com/' '/mask-h2.icloud.com/' '/use-application-dns.net/' '127.0.0.1#5053' '127.0.0.1#5054'
dhcp.@dnsmasq[0].server='/mask.icloud.com/' '/mask-h2.icloud.com/' '/use-application-dns.net/' '127.0.0.1#5053' '127.0.0.1#5054'
dhcp.@dnsmasq[0].doh_server='127.0.0.1#5053' '127.0.0.1#5054'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv4='server'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.lan.ra_preference='medium'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/odhcpd.leases'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
dhcp.odhcpd.piodir='/tmp/odhcpd-piodir'
dhcp.odhcpd.hostsdir='/tmp/hosts'
root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1/8'
network.globals=globals
network.globals.dhcp_default_duid='00041e5a89b4b18b426e8ef43680a7ae9e46'
network.globals.ula_prefix='fd55:7a04:a995::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='eth0'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1/24'
network.lan.ip6assign='60'
network.lan.multipath='off'
network.wan=interface
network.wan.device='eth1'
network.wan.proto='none'
network.wan.multipath='off'
network.wan6=interface
network.wan6.device='eth1'
network.wan6.proto='dhcpv6'
root@OpenWrt:~# ps | grep dns
4862 nobody 2608 S /usr/sbin/https-dns-proxy -r https://dns.google/dns-query -p 5054 -b 8.8.8.8,8.8.4.4 -4 -u nobody -g nogroup
9607 nobody 2588 S /usr/sbin/https-dns-proxy -r https://cloudflare-dns.com/dns-query -p 5053 -b 1.1.1.1,1.0.0.1 -4 -u nobody -g nogroup
11123 root 2260 S {dnsmasq} /sbin/ujail -t 5 -n dnsmasq -u -l -r /bin/ubus -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dns
11159 dnsmasq 1392 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
11350 root 1224 R grep dns
root@OpenWrt:~# netstat -lnptu | grep 53
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 11159/dnsmasq
tcp 0 0 127.0.0.1:5053 0.0.0.0:* LISTEN 9607/https-dns-prox
tcp 0 0 192.168.1.1:53 0.0.0.0:* LISTEN 11159/dnsmasq
tcp 0 0 fd55:7a04:a995::1:53 :::* LISTEN 11159/dnsmasq
tcp 0 0 ::1:53 :::* LISTEN 11159/dnsmasq
tcp 0 0 fe80::aab8:e0ff:fe08:196e:53 :::* LISTEN 11159/dnsmasq
tcp 0 0 fe80::aab8:e0ff:fe08:196f:53 :::* LISTEN 11159/dnsmasq
udp 0 0 127.0.0.1:5053 0.0.0.0:* 9607/https-dns-prox
udp 0 0 127.0.0.1:53 0.0.0.0:* 11159/dnsmasq
udp 0 0 192.168.1.1:53 0.0.0.0:* 11159/dnsmasq
udp 0 0 ::1:53 :::* 11159/dnsmasq
udp 0 0 fe80::aab8:e0ff:fe08:196f:53 :::* 11159/dnsmasq
udp 0 0 fd55:7a04:a995::1:53 :::* 11159/dnsmasq
udp 0 0 fe80::aab8:e0ff:fe08:196e:53 :::* 11159/dnsmasq