]> git.ipfire.org Git - ipfire-2.x.git/commit
general-functions.pl: Add get_nameservers().
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 9 Jan 2020 15:08:13 +0000 (16:08 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 9 Jan 2020 15:08:13 +0000 (16:08 +0100)
commitc8dcd46537bebe4f59cd7c22d09c45e98bfecb1f
tree2cd23bd7d9c42b4a2a16001e1c860360ebb8b119
parent9f9b2b8ebc2751064503fed22602f7608d8c316e
general-functions.pl: Add get_nameservers().

This function simply return an array of all used nameservers.

It also takes care if the usage of ISP assigned nameservers
is enabled or not and if user-added nameservers are enabled or not.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/general-functions.pl