| 1234567891011121314151617181920212223 |
- {% import 'globals.jinja' as globals -%}
- #!/bin/sh
- PATH=/sbin:/usr/sbin:/bin:/usr/bin
- # Exit if the file contents have already been replaced.
- grep -q SKIP_SUBSTITUTION /etc/resolv.conf && exit 0
- cat <<'EOM' > /etc/resolv.conf.tmp && grep '^nameserver ' /etc/resolv.conf >> /etc/resolv.conf.tmp && mv /etc/resolv.conf.tmp /etc/resolv.conf
- # ****************************************************************
- # * DO NOT EDIT THIS FILE OR REMOVE THIS LINE: SKIP_SUBSTITUTION *
- # ****************************************************************
- # This file is generated by /etc/network/if-pre-up.d/fix-resolv-conf
- # using the list of nameservers from the original /etc/resolv.conf provided
- # at boot time by the Linode Network Helper.
- domain {{ globals.private_node_domain }}
- search {{ globals.private_node_domain }} {{ globals.private_service_domain }}
- nameserver 127.0.0.1
- # Linode nameserver entries will be appended below.
- EOM
|