[pve-devel] [PATCH common v3 0/2] Allow multiple base domains for DNS queries

Emmanuel Kasper e.kasper at proxmox.com
Thu Apr 13 11:21:48 CEST 2017


NB: http://pve.proxmox.com/pipermail/pve-devel/2017-March/025803.html
must be applied before as ssl key generation expects a single search entry

change since V2:
 * capture up to 6 domains in a 'search' list
 * ignore 'search' line when the 'search' list contains more than 255 characters
 * restore behaviour of multiple 'domain' entries are defined that the first 
 one is matched, similar to previous behavious and libc.
 * add tests for these variations
 * use English so we can accessed named capture groups whith
 $LAST_PAREN_MATCH{$capture_name} instead of $+{$capture_name}

Emmanuel Kasper (2):
  Document current handling of reading and updating resolv.conf
  Fix #1234: allows multiple search domains to be set

 src/PVE/INotify.pm                                | 24 +++++-
 test/inotify/resolv.conf_empty_search             |  5 ++
 test/inotify/resolv.conf_long_search              |  4 +
 test/inotify/resolv.conf_multiple_domain          |  5 ++
 test/inotify/resolv.conf_multiple_search          |  5 ++
 test/inotify/resolv.conf_search_with_domain_first |  6 ++
 test/inotify/resolv.conf_search_with_domain_last  |  6 ++
 test/inotify/resolv.conf_single_domain            |  5 ++
 test/inotify/resolv.conf_single_search            |  5 ++
 test/inotify/run_inotify_tests.pl                 | 97 +++++++++++++++++++++++
 10 files changed, 159 insertions(+), 3 deletions(-)
 create mode 100644 test/inotify/resolv.conf_empty_search
 create mode 100644 test/inotify/resolv.conf_long_search
 create mode 100644 test/inotify/resolv.conf_multiple_domain
 create mode 100644 test/inotify/resolv.conf_multiple_search
 create mode 100644 test/inotify/resolv.conf_search_with_domain_first
 create mode 100644 test/inotify/resolv.conf_search_with_domain_last
 create mode 100644 test/inotify/resolv.conf_single_domain
 create mode 100644 test/inotify/resolv.conf_single_search
 create mode 100755 test/inotify/run_inotify_tests.pl

-- 
2.1.4





More information about the pve-devel mailing list