- Hardware: F2-210
- Current TOS Version: 4.1.24-2005180955
- HDD: Seagate Iron Wolf Nas
- Setup: Single Disk
- IP Assignment: Static
Network configuration (static) in TOS Desktop is not recognizing the DNS server I add.
Because of this problem, it is unable to connect to the internet / download any apps.
ROOT CAUSE:
Unable to resolve FQDN which I believe due to DNS configuration on the TOS Desktop.
- # nslookup google.com
- Server: 127.0.0.1
- nslookup: can't resolve 'google.com': Name or service not known
- DNS is working on my other host running the same IP.
- IP is reachable from the device.
- The interface configuration are correct through SSH.
config interface 'lan'
option ifname 'eth0'
option netmask '255.255.255.0'
option defaultroute 'true'
option proto 'static'
option ipaddr '10.1.1.100'
option dns1 '10.4.1.253'
option dns2 '8.8.8.8'
option gateway '10.1.1.1'
WORKAROUND:
If I manually add the following lines through # vi /etc/resolv.conf
- nameserver 10.4.1.253
- nameserver 8.8.8.8
- # nslookup google.com
- Server: 10.4.1.253
- Name: google.com
- Address 1: 172.217.164.238 yyz12s05-in-f14.1e100.net
- Address 2: 2607:f8b0:400b:809::200e yyz10s04-in-x0e.1e100.net
Any help would be appreciated.
Why is TOS used my localhost as my default DNS when I have configured my eth0 with DNS?
- During reboot /etc/resolv.conf gets erased, which apparently known to linux.
- The proper way of adding DNS should be through /etc/network/interfaces which is already been properly configured.