txthinking / brook

A cross-platform programmable network tool
https://brook.app
GNU General Public License v3.0
14.4k stars 2.39k forks source link

ipv6 only brook server erro #1330

Closed catcherxuefeng closed 5 months ago

catcherxuefeng commented 5 months ago

os: debian11 brook version : 20240214 nic: only one ipv6 ip address errolog : Feb 03 04:10:46 vps6 brook[2340908]: 2024/02/03 04:10:46 {"dst":"www.youtube.com:443","error":"no ipv4 from nic","from":"[2408:8222:b252:db80::a3d]:50584"}

use old version (20221212) no err

txthinking commented 5 months ago

it looks like the default resolver returns A record, how about with this:

--dialWithDNS '[2001:4860:4860::8888]:53'

--dialWithDNSPrefer AAAA

On Sat, Feb 3, 2024 at 11:15 AM catcherxuefeng @.***> wrote:

os: debian11 brook version : 20240214 nic: only one ipv6 ip address errolog : Feb 03 04:10:46 vps6 brook[2340908]: 2024/02/03 04:10:46 {"dst":" www.youtube.com:443","error":"no ipv4 from nic","from":"[2408:8222:b252:db80::a3d]:50584"}

use old version (20221212) no err

— Reply to this email directly, view it on GitHub https://github.com/txthinking/brook/issues/1330, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJPFTYMMDG2KVESJFMBNN3YRWTWXAVCNFSM6AAAAABCXUDBXWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYTMMJUGY2TIMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

catcherxuefeng commented 5 months ago

it looks like the default resolver returns A record, how about with this: --dialWithDNS '[2001:4860:4860::8888]:53' --dialWithDNSPrefer AAAA On Sat, Feb 3, 2024 at 11:15 AM catcherxuefeng @.> wrote: os: debian11 brook version : 20240214 nic: only one ipv6 ip address errolog : Feb 03 04:10:46 vps6 brook[2340908]: 2024/02/03 04:10:46 {"dst":" www.youtube.com:443","error":"no ipv4 from nic","from":"[2408:8222:b252:db80::a3d]:50584"} use old version (20221212) no err — Reply to this email directly, view it on GitHub <#1330>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJPFTYMMDG2KVESJFMBNN3YRWTWXAVCNFSM6AAAAABCXUDBXWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYTMMJUGY2TIMA . You are receiving this because you are subscribed to this thread.Message ID: @.>

Thank you, this solution can work