Created
June 23, 2014 12:34
-
-
Save hawkowl/c0b39b94443584cfc94f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -X POST localhost:8020/v1/domains -d "domain=atleastfornow.net" \ | |
-d "[email protected]" | |
-u user:password | |
{"status": "success", "data": {"soa": "[email protected]", "default": "active", "domain": "atleastfornow.net", "axfr": [], "id": 3}} | |
$ curl -X POST localhost:8020/v1/domains/3/A -d "host=" | |
-d "target=192.168.1.1" | |
-u user:password | |
{"status": "success", "data": {"host": "", "ttl": 86000, "id": 4, "target": "192.168.1.1"}} | |
$ curl -X POST localhost:8020/v1/domains/3/A -d "host=www" | |
-d "target=192.168.1.1" | |
-u user:password | |
{"status": "success", "data": {"host": "www", "ttl": 86000, "id": 5, "target": "192.168.1.1"}} | |
$ curl -X POST localhost:8020/v1/domains/3/A -d "host=blog" | |
-d "target=192.168.1.2" | |
-u user:password | |
{"status": "success", "data": {"host": "blog", "ttl": 86000, "id": 6, "target": "192.168.1.2"}} | |
$ dig -p 10053 @127.0.0.1 atleastfornow.net A +short | |
192.168.1.1 | |
$ dig -p 10053 @127.0.0.1 www.atleastfornow.net A +short | |
192.168.1.1 | |
$ dig -p 10053 @127.0.0.1 blog.atleastfornow.net A +short | |
192.168.1.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment