Skip to content
Permalink
Browse files

Squashed commit of the following:

commit 2548eff
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Tue Jan 23 16:27:29 2018 -0800

    cmd/zonedb: log # of DNS servers in working zones

commit 547e6a7
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Jan 12 14:37:45 2018 +1300

    internal/build: IP -> address

commit 29dcebb
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Jan 12 11:53:07 2018 +1300

    internal/build: use single-variable names in generated zones.go

commit f4cd5ae
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Jan 12 09:04:31 2018 +1300

    status: use dnsr.NameCollision constant

commit d25b920
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Thu Jan 11 10:11:30 2018 +1300

    go generate

commit 4af126c
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Thu Jan 11 10:10:18 2018 +1300

    internal/build: quoted filter to generate smaller empty string src

commit 9dd6a8f
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Thu Jan 11 09:43:25 2018 +1300

    zone, zones, internal/build: Zone.Wildcards slice

commit 1fec1be
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 17:57:21 2018 +1300

    zonedb -update-wildcards

commit e3d49bb
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 17:29:30 2018 +1300

    internal/build: ignore ICANN name collision IP; fix logging

commit 09eebb1
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 17:08:52 2018 +1300

    internal/build, cmd/zonedb: wildcard IP addr detection

commit c14d688
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 17:06:39 2018 +1300

    internal/build: remove unused IDNCPIndexes

commit b7ff30f
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Jan 12 11:56:39 2018 +1300

    internal/build: remove now-unused ASCII code points

commit 362be84
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Thu Jan 11 09:47:34 2018 +1300

    exise Zone.CodePoints (breaking change)

commit cf44caf
Merge: 4f6d99e 9a11d5d
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 14:27:24 2018 +1300

    Merge branch 'master' into ydnar/policy

commit 4f6d99e
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 12:14:14 2018 +1300

    cherry-pick AllowsIDN test from ydnar/allows-idn branch

commit 3ee0467
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 12:04:22 2018 +1300

    zone, zones, internal/build: add transitional AllowsIDN method; rename generated variables

commit 10b254b
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 11:11:53 2018 +1300

    metadata: transition policy format

commit 6c606de
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 11:09:16 2018 +1300

    internal/build: transition Policy.Language to Policy.Key

commit 2e916c3
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 11:08:19 2018 +1300

    internal/build: reimplement Zone.HasMetadata without mutex copy

commit 0e7ffef
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 10:36:54 2018 +1300

    internal/build: sortPolicies; comments

commit 4507ba3
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Wed Jan 10 10:29:04 2018 +1300

    internal/build: remove unused semaphore type

commit 87b3e41
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 15:26:47 2017 -0800

    metadata: additional Chinese IDN tables

commit dec9b77
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 15:24:55 2017 -0800

    make normalize

commit 5d7b405
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 15:24:27 2017 -0800

    internal/build: use BCP 47 language tag 'und' and 'mul' correctly (I think?

commit b13e6c2
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 15:11:08 2017 -0800

    internal/build: transition invalid BCP 47 language tags

commit e81384f
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 15:02:29 2017 -0800

    internal/build: remove unnecessary logging; handle 'none' language tag as 'unk'

commit 7adabf7
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 14:59:29 2017 -0800

    go generate

commit 5cc4ef4
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 14:59:11 2017 -0800

    internal/build: re-add deprecated Zone.CodePoints for backwards compatibility

commit ee18c2c
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 14:47:04 2017 -0800

    go generate

commit 858aeda
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 14:46:51 2017 -0800

    internal/build: remove NS and L aliases for []string

commit 68cac83
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 14:45:28 2017 -0800

    Update © year

commit 2e1b8e8
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 14:38:04 2017 -0800

    remove IDNT type

commit 6142d5f
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 14:27:48 2017 -0800

    make normalize

commit 87429bf
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 14:27:20 2017 -0800

    internal/build: correct Policy sort Less func

commit 5cc25dc
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 14:26:59 2017 -0800

    cmd/zonedb: only write metadata files for workZones

commit a408b0e
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 14:11:28 2017 -0800

    make normalize

commit 6581e9a
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 14:05:06 2017 -0800

    internal/build: sort name servers

commit 4fae18b
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 13:48:50 2017 -0800

    metadata: transition from codePoints to policies; add IDN tables from idn_expansion branch

commit 2dfaf1b
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 13:47:32 2017 -0800

    internal/build: always zero out legacy data

commit 7e99279
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 13:38:14 2017 -0800

    internal/build: transition previous data model to new data model

commit df5e2e7
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 13:37:38 2017 -0800

    internal/build: un-export build.Zone.Subdomains

commit 01ad4f4
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 12:54:26 2017 -0800

    internal/build, cmd/zonedb: make build package internal

commit 9cf8c88
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 12:50:18 2017 -0800

    build: less opaque struct member names

commit 8f7dccd
Author: Randy Reddig <ydnar@shaderlab.com>
Date:   Fri Nov 17 11:23:17 2017 -0800

    Ported a heavily modified version of the idn_expansion branch to start an implementation of label generation policies for IDN
  • Loading branch information...
cee-dub committed Feb 1, 2018
1 parent 0ca4916 commit 6ee6f046b8433e008dc5248c990a8caa6d1e25dc
Showing 3,946 changed files with 74,337 additions and 19,510 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -1,20 +1,20 @@
.PHONY: test update metadata/*.json

install:
go install ./build/cmd/zonedb
go install ./cmd/zonedb

test:
go run build/cmd/zonedb/main.go
go run cmd/zonedb/main.go
go test ./...

zones.go: zones.txt metadata/*.json build/*.go build/*/*/*.go
zones.go: zones.txt metadata/*.json internal/* internal/*/*
go generate

update:
go run build/cmd/zonedb/main.go -update -w -c 100
go run cmd/zonedb/main.go -update -w -c 100
make zones.go
make test

normalize:
go run build/cmd/zonedb/main.go -w
go run cmd/zonedb/main.go -w
make zones.go
@@ -60,46 +60,46 @@ Fork this repository, make changes, and send a pull request. Before submitting a
This database is generated and validated using the `zonedb` tool in this directory. To install, make sure you have a working [Go](https://golang.org) installation (1.4+) and run this command:

```shell
go get -u github.com/zonedb/zonedb/build/cmd/zonedb
go get -u github.com/zonedb/zonedb/cmd/zonedb
```

You can also run the `zonedb` tool directly: `go run build/cmd/zonedb/main.go`
You can also run the `zonedb` tool directly: `go run cmd/zonedb/main.go`

### Example commands

List all zones tagged `geo`:

```shell
$ go run build/cmd/zonedb/main.go -tags geo
$ go run cmd/zonedb/main.go -tags geo
```

List a given zone's tags:

```shell
$ go run build/cmd/zonedb/main.go -zones capetown -list-tags
$ go run cmd/zonedb/main.go -zones capetown -list-tags
```

Add a tag to multiple zones (and write the output):

```shell
$ go run build/cmd/zonedb/main.go -zones capetown,durban,joburg -add-tags city -w
$ go run cmd/zonedb/main.go -zones capetown,durban,joburg -add-tags city -w
$ make normalize
```

Remove a tag from a zone (and write the output):

```shell
$ go run build/cmd/zonedb/main.go -zones la -remove-tags generic -w
$ go run cmd/zonedb/main.go -zones la -remove-tags generic -w
```

Add a location to a zone (and write the output):

```shell
$ go run build/cmd/zonedb/main.go -zones alsace -add-locations fr-a -w
$ go run cmd/zonedb/main.go -zones alsace -add-locations fr-a -w
```

## License

This database is licensed under the [Open Database License (ODBl) version 1.0](http://opendatacommons.org/licenses/odbl/1.0/). See [LICENSE.md](https://github.com/domainr/zonedb/blob/master/LICENSE.md) for more information.

Copyright © 2008–2015 the Public Zone Database authors.
Copyright © 2008–2017 the Public Zone Database authors.

This file was deleted.

This file was deleted.

0 comments on commit 6ee6f04

Please sign in to comment.
You can’t perform that action at this time.