Here's a script that works for me (put in /etc/resolvconf/update.d.... please include in the package.
#!/bin/sh # # Script to update every forwarding djbdns dnscache instance running # on the local machine # # this script sets up every FORWARDONLY dnscache managed by either # daemontools or runit on this machine to use the dynamically-offered # nameservers for the default '@' # # Licensed under the GNU GPL. See /usr/share/doc/resolvconf/copyright. # # (C) 2015 Phil Lello <[email protected]> for file in /run/net-*.conf; do . $file echo "# From $file" >>/etc/resolv.conf if [ "$IPV4DNS0" != "0.0.0.0" ]; then echo nameserver $IPV4DNS0 >>/etc/resolv.conf fi if [ "$IPV4DNS1" != "0.0.0.0" ]; then echo nameserver $IPV4DNS1 >>/etc/resolv.conf fi if [ -n "$DOMAINSEARCH" ]; then echo search $DOMAINSEARCH >>/etc/resolv.conf fi echo "# End from $file" >>/etc/resolv.conf 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 [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
