{"id":18151482,"url":"https://github.com/shun159/brahman","last_synced_at":"2026-06-28T22:31:44.202Z","repository":{"id":92369434,"uuid":"147333130","full_name":"shun159/brahman","owner":"shun159","description":"ब्रह्मन् brahman","archived":false,"fork":false,"pushed_at":"2018-09-28T07:53:35.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-06T23:34:08.246Z","etag":null,"topics":["dns","elixir","ewma","loadbalancer","networking","server"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shun159.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-09-04T11:06:32.000Z","updated_at":"2018-09-28T07:53:37.000Z","dependencies_parsed_at":"2023-05-17T00:45:32.361Z","dependency_job_id":null,"html_url":"https://github.com/shun159/brahman","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shun159/brahman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shun159%2Fbrahman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shun159%2Fbrahman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shun159%2Fbrahman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shun159%2Fbrahman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shun159","download_url":"https://codeload.github.com/shun159/brahman/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shun159%2Fbrahman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34906700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dns","elixir","ewma","loadbalancer","networking","server"],"created_at":"2024-11-02T01:07:44.336Z","updated_at":"2026-06-28T22:31:44.184Z","avatar_url":"https://github.com/shun159.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"brahman (ब्रह्मन्)\n====\n\nIt is written as an extendable library for building DNS Balancer/Server.  \nRunning it is pretty simple:  \n\n- Start the `brahman` app\n- Implement a socket server(using `:gen_udp` or `netlink`)\n- Implement a handler function\n- Call `Brahman.Dns.Handler.handle/2`\n\nOverview\n====\n\n### Querying\n\nAims to make it as easy as possible to build DNS LB/Server.  \n\n```elixir\niex\u003e packet = File.read!(\"test/packet_data/dns_query.raw\")\niex\u003e handler_fn = \u0026IO.inspect/1\niex\u003e Brahman.Dns.Handler.handle(packet, handler_fn)\n```\n\nThe `handler_fn` is a higher order function or form of `{function(), [:args]}`.  \n\n### Zone Interfaces\n\n- `Brahman.Dns.Zones.put/2`\n  ```elixir\n  name = \"example.com\"\n\n  records = [\n    %{\n      name: \"dummy1.example.com\",\n      type: \"A\",\n      ttl: 3600,\n      data: %{ip: \"192.168.5.1\"}\n    },\n    %{\n      name: \"dummy2.example.com\",\n      type: \"A\",\n      ttl: 3600,\n      data: %{ip: \"192.168.5.2\"}\n    },\n    %{\n      name: \"dummy3.example.com\",\n      type: \"A\",\n      ttl: 3600,\n      data: %{ip: \"192.168.5.3\"}\n    }\n  ]\n\n  :ok = Brahman.Dns.Zones.put(name, records)\n  ```\n\n- `Brahman.Dns.Zones.get/1`\n  ```elixir\n  ^records = Brahman.Dns.Zones.get(\"example.com\")\n  ```\n\n- `Brahman.Dns.Zones.delete/1`\n  ```elixir\n  :ok = Brahman.Dns.Zones.delete(\"example.com\")\n  [] = Brahman.Dns.Zones.get(\"example.com\")\n  ```\n\nStatus\n===\n\n__Under development__\n\nLicense\n-------\nTres is released under the __SUSHI-WARE LICENSE__.\n\n__私に寿司をおごってください__\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshun159%2Fbrahman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshun159%2Fbrahman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshun159%2Fbrahman/lists"}