Nenhuma descrição

fix-resolv-conf 930B

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