Hi there
Apologies for the delay in replying to this. I don't get much time to work on this stuff. I have run the command as as requested on the current working configuration, The only differences between this and the non working config is that the Interface Wan had "peer dns" enabled, it had "mtu" as default and there were no dns servers listed.
I have also noticed as a result of running these commands that in some of the file listings below there remains the IP addresses of my ISPs dns servers. I have identified them with the address "y.y.y.y" I dont know the significance of this. This current config has been working fine since I last posted,
Thanks in advance for any advice you offer.
root@OpenWrt:~# uci export network; uci export dhcp; ifstatus wan; ls -l /etc/re
solv.* /tmp/resolv.* /tmp/resolv.*/* ; head -n -0 /etc/resolv.* /tmp/resolv.* /t
mp/resolv.*/*
package network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'IPV6 address::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config interface 'lan'
option proto 'static'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'
option ip6assign '60'
option device 'br-lan'
config interface 'wan'
option proto 'pppoe'
option username 'usename'
option password 'password'
option ipv6 'auto'
option device 'eth1.101'
option peerdns '0'
option mtu '1492'
list dns '1.1.1.1'
list dns '1.0.0.1'
config device
option type 'bridge'
option name 'eth1.101'
list ports 'eth1'
option mtu '1500'
config route
option interface 'lan'
option target '192.168.2.2'
option gateway '192.168.2.1'
option mtu '1492'
package dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
list ra_flags 'none'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config dhcp 'WAN'
option interface 'WAN'
list ra_flags 'none'
config domain
option name 'WifiAccessPoint'
option ip '192.168.2.2'
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 360348,
"l3_device": "pppoe-wan",
"proto": "pppoe",
"device": "eth1.101",
"updated": [
"addresses",
"routes"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "x.x.x.x.",
"mask": 32,
"ptpaddress": "x.x.x.x."
}
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "x.x.x.x",
"source": "0.0.0.0/0"
}
],
"dns-server": [
"1.1.1.1",
"1.0.0.1"
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
"y,y,y,y",
"y.y.y.y"
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
}
}
lrwxrwxrwx 1 root root 16 Oct 24 10:01 /etc/resolv.conf -> /tmp/resolv.conf
-rw-r--r-- 1 root root 47 Jan 11 15:27 /tmp/resolv.conf
-rw-r--r-- 1 root root 54 Jan 11 11:53 /tmp/resolv.conf.d/resolv.conf.auto
-rw-r--r-- 1 root root 48 Jan 11 11:48 /tmp/resolv.conf.ppp
/tmp/resolv.conf.d:
-rw-r--r-- 1 root root 54 Jan 11 11:53 resolv.conf.auto
==> /etc/resolv.conf <==
search lan
nameserver 127.0.0.1
nameserver ::1
==> /tmp/resolv.conf <==
search lan
nameserver 127.0.0.1
nameserver ::1
==> /tmp/resolv.conf.d <==
head: /tmp/resolv.conf.d: I/O error
==> /tmp/resolv.conf.ppp <==
nameserver y.y.y.y
nameserver y.y.y.y
==> /tmp/resolv.conf.d/resolv.conf.auto <==
# Interface wan
nameserver 1.1.1.1
nameserver 1.0.0.1