GithubHelp home page GithubHelp logo

cloudxtreme / g53 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hawkingrei/g53

0.0 0.0 0.0 138 KB

a dns service with restful api (support private domain)/ 一个带restuful接口的dns服务器(支持内部域名)

License: Apache License 2.0

Dockerfile 1.03% Go 97.51% Makefile 1.46%

g53's Introduction

G53

Build Status Build Status Coverage Status codebeat badge Go Report Card

Build

Building without docker:
export GOPATH=/tmp/go
export PATH=${PATH}:${GOPATH}/bin
go get -v github.com/tools/godep
go get -d -v github.com/hawkingrei/g53
cd ${GOPATH}/src/github.com/hawkingrei/g53
godep restore
cd ${GOPATH}/src/github.com/hawkingrei/g53/
make all
Building with docker:
wget https://raw.githubusercontent.com/hawkingrei/G53/master/Dockerfile
sudo docker build -t g53 .
sudo docker run -d -p 80:80 -p 53:53/udp  g53

HTTP API

# show all active services
curl http://<host>:<ip>/services

# add new service manually
curl http://<host>:<ip>/service -X PUT --data-ascii '{"RecordType":"A","Value":"127.0.0.1","TTL":3600,"Aliases":"c.d.net"}'

# get a service 
curl http://<host>:<ip>/service -X GET  --data-ascii '{"RecordType":"A","Aliases":"c.d.net"}'

# remove a service
curl http://<host>:<ip>/service  -X DELETE '{"RecordType":"A","Value":"127.0.0.1","TTL":3600,"Aliases":"c.d.net"}'

# set new default TTL value
curl http://<host>:<ip>/set/ttl -X PUT --data-ascii '10'

# get version information
curl http://<host>:<ip>/version

To do

  • Support tls
  • Update restful
  • Update document
  • Add lock-free cache

g53's People

Contributors

hawkingrei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.