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

How to generate the geosite.dat file manually in my local computer? #86

Open
m2kar opened this issue Aug 21, 2019 · 7 comments
Open

How to generate the geosite.dat file manually in my local computer? #86

m2kar opened this issue Aug 21, 2019 · 7 comments

Comments

@m2kar
Copy link
Contributor

m2kar commented Aug 21, 2019

How to generate the geosite.dat file manually in my local computer?

I want to modify some of the files and debug whether it could work. And in some cases, I want to do some private customization. But i don't know how to generate the geosite.data manually. Could any one give some help?

@kslr
Copy link
Contributor

kslr commented Aug 21, 2019

of course, see https://github.com/v2ray/geoip
https://github.com/v2ray/geoip/blob/master/generate.sh

@m2kar
Copy link
Contributor Author

m2kar commented Aug 21, 2019

🌹🌹🌹🌹
Thank you very much, this is exactly what I need.

@zhechenzhu
Copy link

was looking for this, thanx

@zhechenzhu
Copy link

Using the default data content in this repo I was able to generate a dlc.dat of size 264KB. However, the geosite.dat file release with v2ray is around 512KB. Is that normal? Or am I missing something?

@rikkix
Copy link
Collaborator

rikkix commented Feb 9, 2020

remove $GOPATH/src/github.com/v2ray/domain-list-community/
then go get -u github.com/v2ray/domain-list-community and generate ookla-speedtest file.
try again

@Loyalsoldier
Copy link
Contributor

Loyalsoldier commented Jul 16, 2020

The latest method:

  1. Install golang and git
  2. go get -v --insecure github.com/v2fly/domain-list-community
  3. Generate dlc.dat (without datapath option means use default data folder of this project):
    ${GOPATH:-$(go env GOPATH)}/bin/domain-list-community
    ${GOPATH:-$(go env GOPATH)}/bin/domain-list-community --datapath=/path/to/your/custom/data/directory

@net-warriors
Copy link

How to edit the geoip and geosite file, when I edit with normal text editors, I get an error

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

No branches or pull requests

6 participants