Here is a rough draft, untested, of a script that would be run once in the main boot sequence in order to bring the resolvconf database up to date. The main difference from your script is that it sends the info to resolvconf instead of writing directly to resolv.conf. (I am assuming that /etc/resolv.conf is a symbolic link to /run/resolvconf/resolv.conf.) Can you please test this (or some improved variant of it)?
#!/bin/sh for F in /run/net-*.conf ; do . $F IFACE="${F%.conf}" IFACE="${IFACE#/run/net-}" S="" if [ "$IPV4DNS0" != "0.0.0.0" ] ; then S="${S}nameserver $IPV4DNS0 " fi if [ "$IPV4DNS1" != "0.0.0.0" ] ; then S="${S}nameserver $IPV4DNS1 " fi if [ "$DOMAINSEARCH" ] ; then S="${S}search $DOMAINSEARCH " fi If [ "$S" ] ; then echo "$S" | resolvconf -a "${IFACE}.initramfs" fi done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1473727 Title: No DNS servers after netboot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1473727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs