MySQL (might migrate to MongoDB) based internal DNS Server
573
This Repository hosts a mini DNS Server, powered by Ruby + MySQL.
このリポジトリは、Ruby言語で書かれ、RDBMSによって駆動されるDNSサーバが含まれています。
此存儲庫包含一個使用Ruby編寫及使用RDBMS作爲數據庫的迷你DNS Server。
Gemfilemysql2$ bundler update$ rake config:create.env$ rake db:migrate$ ruby dnsd.rb$ rackup to run the API Server. Default on port 9292, append -p 1234 to use port 1234
POST /records/new to create{
"type": "A",
"name": "hostname",
"ipv4address": "192.0.2.4",
"ipv6address": "::FFFF:192.0.2.4"
}
GET /recordsPATCH /records/n, where n is record id, No empty records, just leave the field you wanna update{
"name": "hostname",
"ipv4address": "192.0.2.4",
"ipv6address": "::FFFF:192.0.2.4"
}
DELETE /records/n, where n is record idGET /search/name/hostname, where abc is hostnameGET /search/ip4/192.0.2.4, where 192.0.2.4 is the recorded IPv4 AddressGET /search/ip6/::FFFF:192.0.2.4, where ::FFFF:192.0.2.4 is the recorded IPv6 Addressdig @localhost -p 5300 hostname.yourdesiredzone.localdig @localhost -p 5300 -x 192.0.2.4 or dig @localhost -p 5300 -x ::FFFF:192.0.2.4docker run command snippetContent type
Image
Digest
Size
264.9 MB
Last updated
over 9 years ago
docker pull nowherecloud/ruby-dns