oscar

command module
v0.0.0-...-646839d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

OSCAR

Oscar is just a simple name for a simple DNS server with HTTP API capabilities.

Oscar implements an authoritative DNS server a long with HTTP Server. You may already know what is a DNS server, if not go to Wikipedia. What is kind of a new here is the HTTP server. The HTTP server only provides an API so you can update the DNS zone using a REST API.

NOTE: This is project in a really early stage and it has been build for an specific purpose. That means this software may do not work as expected. It shouldn't be use in production enviromentes. Use this software at your own risk I am not responsable of anything good or bad thing could happen by using this software.

DNS Server

The DNS server only understands DNS queries of type A.

HTTP REST API

The API is quite simple, at least at this time.

### CRUD

Create

POST /create/{domain}/{type}/{value}/{ttl}

curl -XPOST http://oscar:8080/create/google.es/A/1.2.3.4/3600
Read

GET /read/{domain}/{type}

curl http://oscar:8080/read/google.es/A
Update

PUT /update/{domain}/{type}/{value}/{ttl}

curl -XPUT http://oscar:8080/update/google.es/A/4.3.2.1/3600
Delete

DELETE /delete/{domain}/{type}

curl -X DELETE http://oscar:8080/delete/google.es/A

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址