resolv.conf being overwritten

Something is overwriting /etc/resolv.conf with nvidia specific nameservers on the new build with 16.04 from the 2.3 Jetpack.

cat /etc/resolv.conf

In 14.04, I was able to manually modify /etc/resolv.conf and it would stick after reboots, but now something else is overwriting resolv.conf each time the system is restarted. Some quick google searches suggest that resolvconf is responsible for overwriting this, but it doesn’t even appear to be installed. Some help would be appreciated as I am currently unable to resolve any dns addresses (but I can ping and get responses just fine).

My /etc/network/interfaces is setup as (which worked fine on 14.04 - Jetpacks 2.2 and below):

[ubuntu@tegra-ubuntu:~] >>> cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

auto wlan0
iface wlan0 inet static
wpa-ssid xxx
wpa-psk xxx


This is one I’ve never figured out, but DHCP should be writing that file, which in turn means the entries are generated by the DHCP server itself. The question is whether you are using a router, or if DHCP is being served by your host? At some point I ended up just creating “/etc/ALT-resolv.conf”, and scripting the overwrite of resolv.conf with this at each boot.

I’m using a router, so there’s no way that the router dhcp is generating those nameservers. Seems like these are some legacy internal ips leftover from Nvidia dev work (can’t ping them). Would be nice to figure out where they are being generated from.

In the mean time, overwriting the resolv.conf file after boot and then ifdown/ifup the interfaces fixes things as a temp work around.

I believe this is coming from /boot/initrd

As root:

cd /root
cp /boot/initrd ./initrd.gz
gzip -d initrd.gz
mkdir initDisk
cd initDisk
cpio -i <…/initrd

vim etc/resolv.conf # make your changes here

find . | cpio --create --format=‘newc’ >…/newInitrd
cd …/
gzip newInitrd

mv /boot/initrd /boot/initrd_original
cp newInitrd.gz /boot/initrd