A weird issue about domain name resolution
Developers of Snowflake,
I have trouble to use the snowflake bridge to connect to Tor. To find out the main issue, I managed to collect the log of snowflake. (attached below)
It can be seen that the snowflake program tries to resolve host names from [::1]:53, but there is no dns server listening, nor is there a statement for [::1]:53 in /etc/resolv.conf .
--- Starting Snowflake Client ---
2021/07/24 07:12:11 Using ICE servers:
2021/07/24 07:12:11 url: stun:stun.sonetel.com:3478
2021/07/24 07:12:11 url: stun:stun.stunprotocol.org:3478
2021/07/24 07:12:11 url: stun:stun.dus.net:3478
2021/07/24 07:12:11 url: stun:stun.uls.co.za:3478
2021/07/24 07:12:11 url: stun:stun.voip.blackberry.com:3478
2021/07/24 07:12:11 url: stun:stun.sonetel.net:3478
2021/07/24 07:12:11 url: stun:stun.bluesip.net:3478
2021/07/24 07:12:11 Rendezvous using Broker at: https://snowflake-broker.torproject.net.global.prod.fastly.net/
2021/07/24 07:12:11 Domain fronting using: cdn.sstatic.net
2021/07/24 07:12:11 Started SOCKS listener at 127.0.0.1:39363.
2021/07/24 07:12:11 Error resolving address: lookup stun.sonetel.com on [::1]:53: read udp [::1]:60448->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error creating STUN connection: lookup stun.sonetel.com on [::1]:53: read udp [::1]:60448->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error resolving address: lookup stun.stunprotocol.org on [::1]:53: read udp [::1]:46030->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error creating STUN connection: lookup stun.stunprotocol.org on [::1]:53: read udp [::1]:46030->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error resolving address: lookup stun.dus.net on [::1]:53: read udp [::1]:46841->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error creating STUN connection: lookup stun.dus.net on [::1]:53: read udp [::1]:46841->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error resolving address: lookup stun.uls.co.za on [::1]:53: read udp [::1]:51689->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error creating STUN connection: lookup stun.uls.co.za on [::1]:53: read udp [::1]:51689->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error resolving address: lookup stun.voip.blackberry.com on [::1]:53: read udp [::1]:51608->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error creating STUN connection: lookup stun.voip.blackberry.com on [::1]:53: read udp [::1]:51608->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error resolving address: lookup stun.sonetel.net on [::1]:53: read udp [::1]:35863->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error creating STUN connection: lookup stun.sonetel.net on [::1]:53: read udp [::1]:35863->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error resolving address: lookup stun.bluesip.net on [::1]:53: read udp [::1]:42763->[::1]:53: read: connection refused
2021/07/24 07:12:11 Error creating STUN connection: lookup stun.bluesip.net on [::1]:53: read udp [::1]:42763->[::1]:53: read: connection refused
2021/07/24 07:12:11 NAT Type: unknown
2021/07/24 07:12:11 SOCKS accepted: {192.0.2.3:1 map[]}
2021/07/24 07:12:11 ---- SnowflakeConn: begin collecting snowflakes ---
2021/07/24 07:12:11 ---- SnowflakeConn: starting a new session ---
2021/07/24 07:12:11 ---- SnowflakeConn: begin stream 3 ---
2021/07/24 07:12:11 redialing on same connection
2021/07/24 07:12:11 WebRTC: Collecting a new Snowflake. Currently at [0/1]
2021/07/24 07:12:11 snowflake-c33c6e11b0e8bdf9 connecting...
2021/07/24 07:12:11 WebRTC: DataChannel created.
2021/07/24 07:12:11 WebRTC: Created offer
2021/07/24 07:12:11 WebRTC: Set local description
2021/07/24 07:12:11 WebRTC: PeerConnection created.
2021/07/24 07:12:11 Negotiating via BrokerChannel...
Target URL: snowflake-broker.torproject.net.global.prod.fastly.net
Front URL: cdn.sstatic.net
2021/07/24 07:12:11 WebRTC: closing DataChannel
2021/07/24 07:12:11 WebRTC: closing PeerConnection
2021/07/24 07:12:11 WebRTC: Closing
2021/07/24 07:12:11 WebRTC: dial tcp: lookup cdn.sstatic.net on [::1]:53: read udp [::1]:41939->[::1]:53: read: connection refused Retrying...
2021/07/24 07:12:21 WebRTC: Collecting a new Snowflake. Currently at [0/1]
2021/07/24 07:12:21 snowflake-07b5e298791ef573 connecting...
2021/07/24 07:12:21 WebRTC: DataChannel created.
2021/07/24 07:12:21 WebRTC: Created offer
2021/07/24 07:12:21 WebRTC: Set local description
2021/07/24 07:12:21 WebRTC: PeerConnection created.
2021/07/24 07:12:21 Negotiating via BrokerChannel...
Target URL: snowflake-broker.torproject.net.global.prod.fastly.net
Front URL: cdn.sstatic.net
2021/07/24 07:12:21 WebRTC: closing DataChannel
2021/07/24 07:12:21 WebRTC: closing PeerConnection
2021/07/24 07:12:21 WebRTC: Closing
2021/07/24 07:12:21 WebRTC: dial tcp: lookup cdn.sstatic.net on [::1]:53: read udp [::1]:40102->[::1]:53: read: connection refused Retrying...