Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/narkisr/tinymasq
A malleable DNS server
https://github.com/narkisr/tinymasq
Last synced: 12 days ago
JSON representation
A malleable DNS server
- Host: GitHub
- URL: https://github.com/narkisr/tinymasq
- Owner: narkisr
- License: epl-1.0
- Created: 2014-08-22T00:15:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-17T21:46:05.000Z (over 8 years ago)
- Last Synced: 2024-04-14T16:10:44.441Z (8 months ago)
- Language: Clojure
- Size: 59.6 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Intro
Tinymasq, Clojure based DNS server.
[![Build Status](https://travis-ci.org/narkisr/tinymasq.png)](https://travis-ci.org/narkisr/tinymasq)
# Usage
API:
```bash
# Adding
$ curl -u admin:foobar https://localhost:8444/hosts -H Content-Type: application/json -d {"hostname":"foo","ip":"1.2.3.4"} -k
# Updating
$ curl -u admin:foobar -X PUT https://localhost:8444/hosts -H Content-Type: application/json -d {"hostname":"foo","ip":"1.2.3.4"} -k
# Deleting
$ curl -u admin:foobar -X DELETE https://localhost:8444/hosts -H Content-Type: application/json -d {"hostname":"foo"} -k
# Listing
$ curl -u admin:foobar -X GET https://localhost:8444/hosts -H Content-Type: application/json -d {"hostname":"foo"} -k
```DNS lookup:
```bash
$ dig @localhost bar.com -p 53
```Importing an existing hosts file:
```bash
# TBD
$ tinyimport /etc/hosts
```
# Copyright and licenseCopyright [2014] [Ronen Narkis]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.