I have a IOT 2020 so it only has one LAN port which is connected to my router. The router is configured as a gateway for a lot of my devices, including the IOT2020. My /etc/network/interfaces has the following entries.

The only way I can get a nameserver to be recognized is to put "nameserver 8.8.8.8" in /etc/resolv.conf. This is all working fine until the IOT2020 is rebooted, at which time the /etc/resolv.conf is overwritten with a copy that has no entries.

(It's better but not mandatory to prepend the file with the sh shell indication; this forum doesn't allow me to write the line of code.)

make the file executable with:

chmod +x /etc/init.d/filename

make the script start at boot time with:

update-rc.d filename defaults

This allows you to handle dns at boot time using a more standard way.

It could be helpful if the package resolvconf will be included inside the Siemens example image or someone give us more details about how to handle dns better than overwriting /etc/resolv.conf like I did.