Skip to content

Commit

Permalink
rename to https-dns
Browse files Browse the repository at this point in the history
  • Loading branch information
honwen committed May 10, 2018
1 parent e3683c1 commit 89b0e5a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -24,5 +24,5 @@ _testmain.go
*.prof

release
google-https-dns
https-dns
main
8 changes: 4 additions & 4 deletions Dockerfile
@@ -1,14 +1,14 @@
FROM golang:alpine as builder
RUN apk add --update git
RUN go get -u -v \
-ldflags "-X main.version=$(curl -sSL https://api.github.com/repos/chenhw2/google-https-dns/commits/master | \
-ldflags "-X main.version=$(curl -sSL https://api.github.com/repos/chenhw2/https-dns/commits/master | \
sed -n '1,9{/sha/p; /date/p}' | sed 's/.* \"//g' | cut -c1-10 | tr [a-z] [A-Z] | sed 'N;s/\n/@/g')" \
github.com/google-https-dns
github.com/https-dns

FROM chenhw2/alpine:base
LABEL MAINTAINER CHENHW2 <https://github.com/chenhw2>

# /usr/bin/google-https-dns
# /usr/bin/https-dns
COPY --from=builder /go/bin /usr/bin

USER nobody
Expand All @@ -18,4 +18,4 @@ ENV ARGS="-d 8.8.8.8"
EXPOSE 5300
EXPOSE 5300/udp

CMD google-https-dns -T -U ${ARGS} --logtostderr -V 3
CMD https-dns -T -U ${ARGS} --logtostderr -V 3
14 changes: 7 additions & 7 deletions README.md
@@ -1,13 +1,13 @@
### Source
- https://github.com/chenhw2/google-https-dns
- https://github.com/chenhw2/https-dns

### Thanks
- https://github.com/fardog/secureoperator
- https://github.com/jackyyf/go-shadowsocks2
- https://developers.google.com/speed/public-dns/docs/dns-over-https

### Docker
- https://hub.docker.com/r/chenhw2/google-https-dns
- https://hub.docker.com/r/chenhw2/https-dns

### TODO
- Currently only Block DNS TYPE:```ANY```
Expand All @@ -16,23 +16,23 @@

### Usage
```
$ docker pull chenhw2/google-https-dns
$ docker pull chenhw2/https-dns
$ docker run -d \
-e "ARGS=-d 8.8.8.8 --edns 0.0.0.0/0" \
-p "5300:5300/udp" \
-p "5300:5300/tcp" \
chenhw2/google-https-dns
chenhw2/https-dns
```
### Help
```
$ docker run --rm chenhw2/google-https-dns -h
$ docker run --rm chenhw2/https-dns -h
NAME:
google-https-dns - A DNS-protocol proxy for Google's DNS-over-HTTPS service.
https-dns - A DNS-protocol proxy for Google's DNS-over-HTTPS service.
USAGE:
google-https-dns [global options] command [command options] [arguments...]
https-dns [global options] command [command options] [arguments...]
VERSION:
MISSING build version [git hash]
Expand Down
2 changes: 1 addition & 1 deletion build-release.sh
@@ -1,6 +1,6 @@
#!/bin/bash

name='google-https-dns'
name='https-dns'

MD5='md5sum'
if [[ "$(uname)" == 'Darwin' ]]; then
Expand Down
4 changes: 2 additions & 2 deletions main.go
Expand Up @@ -11,7 +11,7 @@ import (
"syscall"
"time"

"github.com/chenhw2/google-https-dns/gdns"
"github.com/chenhw2/https-dns/gdns"
"github.com/golang/glog"
"github.com/miekg/dns"
"github.com/urfave/cli"
Expand Down Expand Up @@ -62,7 +62,7 @@ func init() {

func main() {
app := cli.NewApp()
app.Name = "google-https-dns"
app.Name = "https-dns"
app.Usage = "A DNS-protocol proxy for Google's DNS-over-HTTPS service."
app.Version = fmt.Sprintf("Git:[%s] (%s)", strings.ToUpper(version), runtime.Version())
// app.HideVersion = true
Expand Down

0 comments on commit 89b0e5a

Please sign in to comment.