I know resolv.conf is a temp file but I can't figure out how to set DNS for the router. All my clients are using pi-hole 10.10.1.2 and I thought I had this setup correctly but when I SSH into LEDE I have no name resolution. I am not sure what I'm doing wrong.
Post your /etc/config/dhcp
and /etc/config/network
files.
root@LEDE:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option localservice '1'
option nonwildcard '0'
option port '0'
option domain 'lan'
list server '10.10.1.2'
option noresolv '1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option leasetime '12h'
option limit '100'
list dhcp_option '6,10.10.1.2'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
root@LEDE:~# 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 globals 'globals'
option ula_prefix 'fdd7:8769:0041::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '10.10.1.1'
option dns '10.10.1.2'
config interface 'wan'
option ifname 'eth1'
option proto 'dhcp'
option peerdns '0'
option dns '10.10.1.2'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 5'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6'
root@LEDE:~#