{"id":25249964,"url":"https://github.com/thepuppetqueen57/cc-dns","last_synced_at":"2025-04-05T22:12:31.872Z","repository":{"id":275869957,"uuid":"927455275","full_name":"Thepuppetqueen57/CC-DNS","owner":"Thepuppetqueen57","description":"A DNS Server made for CC: Tweaked","archived":false,"fork":false,"pushed_at":"2025-02-06T21:24:05.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T03:52:23.824Z","etag":null,"topics":["cc-tweaked","cctweaked","computer-craft","computercraft","computercraft-scripts","computercraft-tweaked","dns","lua","minecraft","server"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thepuppetqueen57.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-05T01:30:50.000Z","updated_at":"2025-02-06T21:24:08.000Z","dependencies_parsed_at":"2025-02-05T02:36:27.285Z","dependency_job_id":"21d5921c-810a-47c9-8bd1-aa515c30d7d3","html_url":"https://github.com/Thepuppetqueen57/CC-DNS","commit_stats":null,"previous_names":["thepuppetqueen57/cc-dns"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thepuppetqueen57%2FCC-DNS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thepuppetqueen57%2FCC-DNS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thepuppetqueen57%2FCC-DNS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thepuppetqueen57%2FCC-DNS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thepuppetqueen57","download_url":"https://codeload.github.com/Thepuppetqueen57/CC-DNS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406111,"owners_count":20933806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cc-tweaked","cctweaked","computer-craft","computercraft","computercraft-scripts","computercraft-tweaked","dns","lua","minecraft","server"],"created_at":"2025-02-12T03:51:47.597Z","updated_at":"2025-04-05T22:12:31.848Z","avatar_url":"https://github.com/Thepuppetqueen57.png","language":"Lua","readme":"# CC-DNS\n CC-DNS is a DNS Server made for the CC: Tweaked mod for minecraft.\n\n The domains dict is a list of registered domains and their computer id's\n\n Domains can be anything (as long as they dont have spaces).\n\n They could be: \u00266ftgdfg\n\n Or they could be: hi.com\n\n This is meant to run on an advanced computer in the CC: Tweaked mod.\n\n The domains that are there are me and my friends domains on the network (startup.lua is an exact mirror of the one in my personal mc world with my friends)\n\n But you can add, remove, or change any domain you like. Make sure the computer id is valid.\n\n Also at the moment requests cant have spaces in them (sorry)\n\n The DNS automatically routes responses back to the client computer.\n\n I might add documentation on how to send and receive requests/responses at some point idk.\n\n# Making a client\n I made a simple function for sending a request using the DNS server!\n\n ```lua\nfunction sendrequest(str)\n    rednet.open(\"back\")\n    rednet.send(dns computer id here, \"url here, \" .. str)\n    local id, message = rednet.receive(nil, 3)\n    rednet.close(\"back\")\n    if id then\n        return message\n    else\n        return \"No Response Found\"\n    end\nend\n```\n\n# Making a server\nHeres an example of a server:\n\n```lua\nshell.run(\"clear\")\nprint(\"Server Running!\")\n\nrednet.open(\"top\")\nwhile true do\n    local id, message = rednet.receive()\n    print(\"Received message: \" .. message)\n    if message == \"status\" then\n        rednet.send(9, \"Online\")\n    elseif message == \"version\" then\n        rednet.send(9, \"1.0.0\")\n    else\n        rednet.send(9, \"unknown request\")\n    end\nend\nrednet.close(\"top\")\n```\n\nAs you can see it doesnt put a url to send a response.\n\nThe DNS server automatically routes responses back to the client.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepuppetqueen57%2Fcc-dns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthepuppetqueen57%2Fcc-dns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepuppetqueen57%2Fcc-dns/lists"}