shawn1m / overture

A customized DNS relay server
MIT License
1.79k stars 284 forks source link

Overture doesn't listen on 0.0.0.0 #248

Open phantomcraft opened 3 years ago

phantomcraft commented 3 years ago

When I chose 0.0.0.0 as listening address, Overture listens on [::] instead:

user@localhost:~$ netstat -nlp | grep overture
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp6       0      0 :::1053                 :::*                    LISTEN      38734/overture      
udp6       0      0 :::1053                 :::*                                38734/overture 

My configuration:

{
  "BindAddress": "0.0.0.0:53",
  "PrimaryDNS": [
    {
      "Name": "SSH",
      "Address": "anycast.censurfridns.dk:53",
      "Protocol": "udp",
      "SOCKS5Address": "127.0.0.1:1080",
      "Timeout": 100,
      "EDNSClientSubnet": {
        "Policy": "disable",
        "ExternalIP": "",
        "NoCookie": true
      }
    }
  ],
  "OnlyPrimaryDNS": true,
  "IPv6UseAlternativeDNS": false,
  "AlternativeDNSConcurrent": false,
  "PoolIdleTimeout": 15,
  "PoolMaxCapacity": 15,
  "WhenPrimaryDNSAnswerNoneUse": "PrimaryDNS",
  "MinimumTTL": 0,
  "CacheSize" : 0,
  "RejectQType": [255]
}
hongjie2008 commented 2 years ago

I also have the same issue. But actually, it works althrough listen on tcp6 and udp6