You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
498 B

  1. #!/bin/sh
  2. #
  3. # Prepend resolver options to /etc/resolv.conf after dhclient`
  4. # regenerates the file. See man (5) resolver for more details.
  5. #
  6. zdnsupdate_config() {
  7. if [ -n "$new_domain_search" -o -n "$new_domain_name_servers" ]; then
  8. RESOLV_CONF=$(cat /etc/resolv.conf | sed -r '/^options (timeout|attempts|ndots).*$/d')
  9. OPTIONS="options timeout:2\noptions attempts:2\noptions ndots:{{ ndots }}"
  10. echo -e "$RESOLV_CONF\n$OPTIONS" > /etc/resolv.conf
  11. fi
  12. }
  13. zdnsupdate_restore() {
  14. :
  15. }