Coder Social home page Coder Social logo

gons's Introduction

GoNS

Gobuild Download

GoNS is experimental name server in golang.

Install from binary

You're free to download up-to-date binary from gobuild.io.

HTTP API

Best way to configure GoNS server

Authentication

You must use HTTP Basic authentication. Username and password is set in configuration file.

Handling errors

If GoNS is having trouble, you might see a 5xx error. 500 means that the app is entirely down, but you might also see 502 Bad Gateway, 503 Service Unavailable, or 504 Gateway Timeout. It's your responsibility in all of these cases to retry your request later.

Create record

POST /v1/records.json

Add dns record

Parameter Description
type Record type
name Record name
ttl Record ttl value
a Record a value
aaaa Record aaaa value
ns Record ns value
mx Record mx value
txt Record txt value
cname Record cname value
preference Record prefecence value
{
    "type": "cname",
    "name": "git.u3.lt",
    "ttl": 3600,
    "cname": "bitbucket.org."
    ...
}

This will return 201 Created, with the current JSON representation of the record if the creation was a success.

Get record

GET /v1/records/<id>.json

Retrieve the particular record by id

{
    "id": 6,
    "type": "a",
    "name": "ui8.lt.",
    "a": "8.8.8.8",
    "aaaa": "",
    "ns": "",
    "mx": "",
    "txt": "",
    "cname": "",
    "preference": 0,
    "ttl": 3600
}

Get all records

GET /v1/records.json

Retrieve the existing records

[
    {
        "id": 7,
        "type": "a",
        "name": "ui8.lt.",
        "a": "8.8.8.8",
        "aaaa": "",
        "ns": "",
        "mx": "",
        "txt": "",
        "cname": "",
        "preference": 0,
        "ttl": 3600
    },
    {
        "id": 8,
        "type": "a",
        "name": "ns2.ui8.lt.",
        "a": "127.0.0.2",
        "aaaa": "",
        "ns": "",
        "mx": "",
        "txt": "",
        "cname": "",
        "preference": 0,
        "ttl": 3600
    }
]

gons's People

Contributors

asjustas avatar

Stargazers

 avatar

Watchers

 avatar  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.