* Antonio A. M. Kukul <mktoni@gmail.com>, 2013-09-20, 15:13:
Changing this: server=$(pdnsd-ctl status|sed -ne '/^Global:$/,/^Server.*:$/s/.*Server ip.*: \(.*\)$/\1/p') to this server=$(pdnsd-ctl status|sed -ne '/^Global:$/,/^Server.*:$/s/.*Server ip.*: \(.*\)$/\1/ip') in both scripts, it now works fine.This is because the way of pdnsd-ctl status reports server ip, now it do that with the word "ip" capitalized:
Your analysis is correct, but the fix isn't completely right. This is because case-sensitive matching is locale-dependent. For example, in Turkish "i" and "I" are different letters, so your fix wouldn't work in tr_TR locales.
-- Jakub Wilk