]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.dns
Replace routing_db_* by db_*
[people/stevee/network.git] / src / functions / functions.dns
index b3f42fd0e04609c8332187bf8cea3358db4b382f..de08c4c7aa592b553036ba5065ff4bb82c54524f 100644 (file)
@@ -269,7 +269,7 @@ dns_get_search_domains() {
 
        for zone in $(zones_get_all); do
                for proto in ${IP_SUPPORTED_PROTOCOLS}; do
 
        for zone in $(zones_get_all); do
                for proto in ${IP_SUPPORTED_PROTOCOLS}; do
-                       domain=$(routing_db_get ${zone} ${proto} domain-name)
+                       domain="$(db_get "${zone}/${proto}/domain-name")"
                        isset domain || continue
 
                        list_append search_domains "${domainname}"
                        isset domain || continue
 
                        list_append search_domains "${domainname}"
@@ -285,10 +285,10 @@ dns_server_get_zone_name_servers() {
 
        for zone in $(zones_get_all); do
                for proto in ${IP_SUPPORTED_PROTOCOLS}; do
 
        for zone in $(zones_get_all); do
                for proto in ${IP_SUPPORTED_PROTOCOLS}; do
-                       priority=$(routing_db_get ${zone} ${proto} domain-name-servers-priority)
+                       priority="$(db_get "${zone}/${proto}/domain-name-servers-priority")"
                        isset priority || priority="${DNS_SERVER_DYNAMIC_PRIORITY}"
 
                        isset priority || priority="${DNS_SERVER_DYNAMIC_PRIORITY}"
 
-                       servers=$(routing_db_get ${zone} ${proto} domain-name-servers)
+                       servers="$(db_get "${zone}/${proto}/domain-name-servers")"
                        for server in ${servers}; do
                                print "${priority} ${server}"
                        done
                        for server in ${servers}; do
                                print "${priority} ${server}"
                        done