diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/820-dns-config b/package/gluon-core/luasrc/lib/gluon/upgrade/820-dns-config
index 68b3eedd2fd585a629f03f9f9afdb4d7e1a3769a..09fb536e4b2f7f3c6ea1b9625cdc2987bcfe0ac4 100755
--- a/package/gluon-core/luasrc/lib/gluon/upgrade/820-dns-config
+++ b/package/gluon-core/luasrc/lib/gluon/upgrade/820-dns-config
@@ -1,10 +1,10 @@
 #!/usr/bin/lua
 
-local site = require 'gluon.site_config'
+local site = require 'gluon.site'
 local uci = require('simple-uci').cursor()
 
-local dns = site.dns or {}
-local next_node = site.next_node or {}
+local dns = site.dns({})
+local next_node = site.next_node({})
 
 local dnsmasq = uci:get_first("dhcp", "dnsmasq")