Open Nightmarest opened 1 year ago
Hi there @Nightmarest !
Please refer the following code snippet and customize it according to your dns severs.
"dns": {
"hosts": {
"dns.google": [
"8.8.8.8",
"8.8.4.4"
],
"dns.pub": "119.29.29.29",
"dns.alidns.com": "223.5.5.5"
},"
Use it after the api segment
Okay. I am try this later
it does not work
It prevents you from making absolutely NO changes to the file. Even if I want to change the connection settings somewhere, it will roll back everything again
P.S. - Check file json.go
I'm facing the same issue trying to use pi-hole and x-ui together
@NidukaAkalanka @Nightmarest @MrAliSalehi
Apparently the config.json
file is overridden with the contents of the sqlite database at /etc/x-ui/x-ui.db
.
I tried modifying the database directly by installing (apt install sqlite3
on debian based distros) and editing the db:
sqlite3 /etc/x-ui/x-ui.db
UPDATE settings SET value = '
{
HERE PASTE CONTENTS OF CONFIG.JSON
}'
WHERE key = 'xrayTemplateConfig';
I've seen the file change after restarting the x-ui; however the clients don't seem to be using the DNS servers.
Welcome
Description of the problem,screencshot would be good
I cannot set up this configuration. I check the official V2RAY documentation, but the config.json installed from your panel, after any "dns: null" changes and further panel restart, just resets the configuration file back
config:
Version of x-ui
x-ui log or xray log