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 <p...@dunlop-lello.uk>

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
Touch seeded packages, which is subscribed to resolvconf in Ubuntu.
https://bugs.launchpad.net/bugs/1473727

Title:
  No DNS servers after netboot

Status in resolvconf package in Ubuntu:
  New

Bug description:
  Ubuntu 14.04 / resolvconf 1.69ubuntu1.1

  When netbooting a xen VM, I see the following output:

   address: 192.168.1.180    broadcast: 192.168.1.255    netmask:
  255.255.255.0

   gateway: 192.168.1.1      dns0     : 192.168.1.1      dns1   :
  0.0.0.0

  So I know DHCP is working.

  However, resolv.conf doesn't get updated - the interface is set to
  manual as DHCP was handled at the initrd level.

  Please let me know how I can help get this fixed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1473727/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to