diff --git a/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua b/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua
index cee720cf0..bc891a65a 100644
--- a/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua
+++ b/luci-app-openmptcprouter/luasrc/controller/openmptcprouter.lua
@@ -508,6 +508,18 @@ function wizard_add()
ucic:set("openmptcprouter","settings","country",country)
ucic:save("openmptcprouter")
+ -- Get DNS64
+ local dns64 = luci.http.formvalue("dns64") or "0"
+ ucic:set("openmptcprouter","settings","dns64",dns64)
+ ucic:save("openmptcprouter")
+ if dns64 == "1" then
+ ucic:set("unbound","ub_main","dns64","1")
+ ucic:set("unbound","ub_main","validator","0")
+ else
+ ucic:set("unbound","ub_main","dns64","0")
+
+ end
+
-- Get Proxy set by default
local default_proxy = luci.http.formvalue("default_proxy") or "shadowsocks"
if default_proxy == "shadowsocks" and serversnb > 0 and serversnb > disablednb then
diff --git a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm
index 0cb872722..2375c9a29 100644
--- a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm
+++ b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wizard.htm
@@ -118,7 +118,7 @@
+
+
+
+
checked <% end %>/>
+
+
+ <%:If host support NAT64, you can enable DNS64 support.%>
+
+
+