wy580477 / Mosdns-on-PaaS

Deploy DNS over HTTPS service on PaaS platforms (Heroku, Okteto, etc.) | 在 Heroku / Okteto 等免费 PaaS 服务平台上部署 Mosdns
GNU General Public License v3.0
23 stars 18 forks source link

Doprax #3

Closed t-e-s-tweb closed 1 year ago

t-e-s-tweb commented 1 year ago

Hey can you please make a tutorial for it on dropax? I tried but can't get it to work.

wy580477 commented 1 year ago

Show me your deployment log and runtime log.

t-e-s-tweb commented 1 year ago

process log

auto scroll Step 1/7 : FROM irinesistiana/mosdns:v4.5.3 ---> 90b9989c86a0 Step 2/7 : COPY ./content /etc/mosdns ---> 0ce876a9627f Step 3/7 : RUN sh /etc/mosdns/install_geodata.sh ---> Running in bd2f66b10edd Updating geoip.dat and geosite.dat dlc.dat: OK geoip.dat: OK ---> 2c0d78076767 Step 4/7 : ENV PORT=8080 ---> Running in 1e8c30bfcbf6 ---> c7786b8ab5cb Step 5/7 : ENV DOH_PATH=/dns-query ---> Running in c93f18bf45ff ---> 2ad35a607d68 Step 6/7 : EXPOSE 8080 ---> Running in b921322f24f7 ---> 35f96b463ad8 Step 7/7 : ENTRYPOINT [ "sh","/etc/mosdns/entrypoint.sh" ] ---> Running in 0a0225687096 ---> 105a2b0a0ec9 Successfully built 105a2b0a0ec9 Successfully tagged registry.doprax.com:5000/testweb/q1ms9lm9tpoudnlmy7nyxhnoxjify5:latest Starting main ... Main is now running

process log

main auto scroll Updating geoip.dat and geosite.dat

dlc.dat: OK

geoip.dat: OK

2023-01-28T06:41:09.233Z info working directory changed {"path": "/etc/mosdns"}

2023-01-28T06:41:09.238Z info loading plugin {"tag": "forward_query_to_fallback_cloudflare", "type": "fast_forward"}

2023-01-28T06:41:09.238Z info loading plugin {"tag": "forward_query_to_fallback_dnssb", "type": "fast_forward"}

2023-01-28T06:41:09.239Z info loading plugin {"tag": "forward_query_to_fallback_quad9", "type": "fast_forward"}

2023-01-28T06:41:09.239Z info loading plugin {"tag": "forward_query_to_local_360", "type": "fast_forward"}

2023-01-28T06:41:09.239Z info loading plugin {"tag": "forward_query_to_local_alidns", "type": "fast_forward"}

2023-01-28T06:41:09.239Z info loading plugin {"tag": "forward_query_to_local_dnspod", "type": "fast_forward"}

2023-01-28T06:41:09.239Z info loading plugin {"tag": "forward_query_to_remote_twnic", "type": "fast_forward"}

2023-01-28T06:41:09.239Z info loading plugin {"tag": "forward_query_to_remote_adguard", "type": "fast_forward"}

2023-01-28T06:41:09.239Z info loading plugin {"tag": "forward_query_to_remote_google", "type": "fast_forward"}

2023-01-28T06:41:09.239Z info loading plugin {"tag": "forward_query_to_remote_opendns", "type": "fast_forward"}

2023-01-28T06:41:09.239Z info loading plugin {"tag": "mem_cache", "type": "cache"}

2023-01-28T06:41:09.239Z info loading plugin {"tag": "match_qtype65", "type": "query_matcher"}

2023-01-28T06:41:09.239Z info loading plugin {"tag": "response_has_gfw_ip", "type": "response_matcher"}

2023-01-28T06:41:09.240Z info response_has_gfw_ip ip matcher loaded {"length": 582}

2023-01-28T06:41:09.240Z info loading plugin {"tag": "query_is_blacklist_domain", "type": "query_matcher"}

2023-01-28T06:41:09.260Z info query_is_blacklist_domain domain matcher loaded {"length": 637}

2023-01-28T06:41:09.260Z info loading plugin {"tag": "query_is_local_domain", "type": "query_matcher"}

2023-01-28T06:41:09.280Z info query_is_local_domain domain matcher loaded {"length": 4339}

2023-01-28T06:41:09.280Z info loading plugin {"tag": "response_has_local_ip", "type": "response_matcher"}

2023-01-28T06:41:09.487Z info response_has_local_ip ip matcher loaded {"length": 11673}

2023-01-28T06:41:09.487Z info loading plugin {"tag": "response_has_valid_rcode", "type": "response_matcher"}

2023-01-28T06:41:09.487Z info loading plugin {"tag": "set_edns0_bufsize", "type": "bufsize"}

2023-01-28T06:41:09.487Z info loading plugin {"tag": "set_edns0_client_subnet", "type": "ecs"}

2023-01-28T06:41:09.487Z info loading plugin {"tag": "forward_local", "type": "sequence"}

2023-01-28T06:41:09.487Z info loading plugin {"tag": "main_server", "type": "sequence"}

2023-01-28T06:41:09.487Z info starting server {"proto": "http", "addr": ":8080"}

t-e-s-tweb commented 1 year ago

I get bad gateway error on opening and setting the URL.

wy580477 commented 1 year ago

I get bad gateway error on opening and setting the URL.

Did you set HTTP port to 8080 during deployment?

t-e-s-tweb commented 1 year ago

I get bad gateway error on opening and setting the URL.

Did you set HTTP port to 8080 during deployment?

It's already set in docker file. Also I set both the environment variables DOH_PATH /dns-query and PORT 8080.

wy580477 commented 1 year ago

It's already set in docker file. Also I set both the environment variables DOH_PATH /dns-query and PORT 8080.

Emm..... I think it's likely a problem due to high load on Doprax servers.

image

t-e-s-tweb commented 1 year ago

It's already set in docker file. Also I set both the environment variables DOH_PATH /dns-query and PORT 8080.

Emm..... I think it's likely a problem due to high load on Doprax servers.

image

Well the other app that you screenshoted, I use that too but never had any issue with that at all.

wy580477 commented 1 year ago

Well the other app that you screenshoted, I use that too but never had any issue with that at all.

Some servers has higher load than others.

image

I will test it later.

wy580477 commented 1 year ago

Well the other app that you screenshoted, I use that too but never had any issue with that at all.

Doprax website is totally unusable now. I tried with two different accounts, both failed to import Github repo....

Did a new deployment on Okteto, it works fine.

root@OpenWrt /opt/etc/clash# dogs "@https://mosdns-test.cloud.okteto.net/dns-query" www.163.com NAME TYPE CLASS TTL ADDRESS NAMESERVER TIME TAKEN www.163.com. A IN 60s 221.180.228.243 https://mosdns-test.cloud.okteto.net/dns-query 1449ms www.163.com. A IN 60s 221.180.228.241 https://mosdns-test.cloud.okteto.net/dns-query 1449ms www.163.com. A IN 60s 221.180.228.242 https://mosdns-test.cloud.okteto.net/dns-query 1449ms www.163.com. A IN 60s 221.180.228.239 https://mosdns-test.cloud.okteto.net/dns-query 1449ms

t-e-s-tweb commented 1 year ago

It works on okteto, railway and koyeb. I wanted to run it on dropax because my latency is lowest to their servers so it's fast.

wy580477 commented 1 year ago

It works on okteto, railway and koyeb. I wanted to run it on dropax because my latency is lowest to their servers so it's fast.

I can't help you, Doprax is totally unusable for me now.