Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

指定DNS resolver不生效 #6

Closed
aa51513 opened this issue Jan 24, 2022 · 4 comments
Closed

指定DNS resolver不生效 #6

aa51513 opened this issue Jan 24, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@aa51513
Copy link

aa51513 commented Jan 24, 2022

v3版本尚未正式发布,所以我用的docker v3版本,版本号是gost 3.0.0-alpha (go1.17.6 linux/amd64)
我定义了resolver-0,期望chains—hops—nodes—node—addr中的域名,能到我定义的resolver-0中去解析
实际运行结果是,gost并没有去resolver-0进行域名解析,反而是直接调用操作系统dns地址去解析

我的配置文件如下:

resolvers:
- name: **my-resolver**
  nameservers:
  - addr: udp://114.114.114.114:53
    prefer: ipv4
    timeout: 3s
services:
- name: service-0
  addr: ":1080"
  handler:
    type: socks5
    **resolver: my-resolver**
    chain: chain-0
  listener:
    type: tcp
chains:
- name: chain-0
  hops:
  - name: hop-0
    nodes:
    - name: node-0
      **resolver: my-resolver**
      addr: **gost.myserver.com**:443
      connector:
        type: relay
      dialer:
        type: wss

我希望域名gost.myserver.commy-resolver解析,实际上并不生效

@ginuerzh
Copy link
Member

resolver目前仅支持service上对目标地址的解析,后面会添加对chain的支持。

@ginuerzh ginuerzh added the enhancement New feature or request label Jan 25, 2022
@ginuerzh
Copy link
Member

ginuerzh commented Jan 30, 2022

转发链已经支持了resolver,具体使用参考:https://latest.gost.run/concepts/resolver/#_4
同时也支持了hosts:https://latest.gost.run/concepts/hosts/#_3

@aa51513
Copy link
Author

aa51513 commented Jan 30, 2022

转发链已经支持了resolver,具体使用参考:https://latest.gost.run/concepts/resolver/#_4 同时也支持了hosts:https://latest.gost.run/concepts/hosts/#_3

@aa51513 aa51513 closed this as completed Jan 30, 2022
@aa51513
Copy link
Author

aa51513 commented Jan 30, 2022

转发链已经支持了resolver,具体使用参考:https://latest.gost.run/concepts/resolver/#_4 同时也支持了hosts:https://latest.gost.run/concepts/hosts/#_3

非常感谢您,我现在就去试一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants