Documentation for recent versions (Linutop OS V4) is available on http://doc.linutop.com


Tutorials/NoDNSOverwritting

From LinutopWiki

The aim of this tutorial is to prevent the overwritting of DNS files (/etc/resolv.conf) when using DHCP.

Please read this page to know what system mode your Linutop is using.

Full persitence mode

Edit /etc/dhcp3/dhclient-enter-hooks.d/resolv as administrator and add:

make_resolv_conf() {
      echo "doing nothing to resolv.conf"
}

You might need to restart networking services at the end of boot time. Edit /etc/rc.local as administrator and add:

/etc/init.d/networking restart

before exit 0.

Safe mode

You need to create a boot script. Please enter the following commands in a terminal:

sudo mkdir -p /cdrom/casper-local
echo "#!/bin/sh" > /cdrom/casper-local/dns
echo "cat>>/root/etc/dhcp3/dhclient-enter-hooks.d/resolv <<EOF" >> /cdrom/casper-local/dns
echo "make_resolv_conf() { echo 'doing nothing to resolv.conf' }" >> /cdrom/casper-local/dns
echo "EOF" >> /cdrom/casper-local/dns