{"id":36486687,"url":"https://github.com/kenmoini/go-zones","last_synced_at":"2026-01-12T01:51:58.140Z","repository":{"id":39892294,"uuid":"344659518","full_name":"kenmoini/go-zones","owner":"kenmoini","description":"Go Zones takes a YAML structure and creates BIND compliant DNS Zone files and Configuration","archived":false,"fork":false,"pushed_at":"2025-07-26T15:50:42.000Z","size":10307,"stargazers_count":5,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-26T20:52:16.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/kenmoini.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,"zenodo":null}},"created_at":"2021-03-05T01:31:57.000Z","updated_at":"2025-07-26T15:39:21.000Z","dependencies_parsed_at":"2024-06-19T09:52:36.392Z","dependency_job_id":"334bbaca-f134-4248-809b-fa4febffdadf","html_url":"https://github.com/kenmoini/go-zones","commit_stats":{"total_commits":70,"total_committers":2,"mean_commits":35.0,"dds":0.05714285714285716,"last_synced_commit":"7992d8a94d6c425b20b842ac912a09ae7d03f946"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kenmoini/go-zones","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmoini%2Fgo-zones","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmoini%2Fgo-zones/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmoini%2Fgo-zones/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmoini%2Fgo-zones/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenmoini","download_url":"https://codeload.github.com/kenmoini/go-zones/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmoini%2Fgo-zones/sbom","scorecard":{"id":555211,"data":{"date":"2025-08-11","repo":{"name":"github.com/kenmoini/go-zones","commit":"24514d0a2ba85fbe824d5965cd15e885159a9476"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":7,"reason":"9 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":8,"reason":"2 out of the last 2 releases have a total of 2 signed artifacts.","details":["Info: signed release artifact: go-zones_0.0.2_SHA256SUMS.sig: https://github.com/kenmoini/go-zones/releases/tag/v0.0.2","Info: signed release artifact: go-zones_0.0.1_SHA256SUMS.sig: https://github.com/kenmoini/go-zones/releases/tag/v0.0.1","Warn: release artifact v0.0.2 does not have provenance: https://api.github.com/repos/kenmoini/go-zones/releases/40230212","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/kenmoini/go-zones/releases/39370788"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-push-ftb.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push-ftb.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-push-ftb.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push-ftb.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-push-ftb.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push-ftb.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-push-ftb.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push-ftb.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-push-ftb.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push-ftb.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-push-ftb.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push-ftb.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-push.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-push.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-push.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-push.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-push.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-push.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/build-and-push.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:63: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/kenmoini/go-zones/test.yml/main?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  16 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build-and-push-ftb.yml:1","Warn: no topLevel permission defined: .github/workflows/build-and-push.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/build-and-push-ftb.yml:19"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T12:08:10.742Z","repository_id":39892294,"created_at":"2025-08-20T12:08:10.742Z","updated_at":"2025-08-20T12:08:10.742Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-12T01:51:57.993Z","updated_at":"2026-01-12T01:51:58.066Z","avatar_url":"https://github.com/kenmoini.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoZones\n\n[![Docker Repository on Quay](https://quay.io/repository/kenmoini/go-zones/status \"Docker Repository on Quay\")](https://quay.io/repository/kenmoini/go-zones) [![Tests](https://github.com/kenmoini/go-zones/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/kenmoini/go-zones/actions/workflows/test.yml) [![release](https://github.com/kenmoini/go-zones/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/kenmoini/go-zones/actions/workflows/release.yml)\n\nGoZones is an application that will take DNS Zones as defined in YAML and generate BIND-compatable DNS Zone files and the configuration required to load the zone file.\n\nGoZones can operate in single-file input/output batches, or via an HTTP server, in a variety of different modes:\n\n- **Server Mode**: GoZones will listen for DNS requests and respond with the generated zone file.  Supported by the standalone binary and container images.\n- **File Mode**: GoZones will read a zone file and generate the BIND configuration at a specified path.  Supported by the standalone binary and container images.\n- **File Mode Fronting to BIND**: GoZones will read a zone file and generate the BIND configuration at a specified path, which will then start a BIND server  Supported in a container image.\n\n## Example Commands \u0026 Parameters\n\n```bash\n# File Mode - input source, output target (default mode)\n$ ./go-zones -source=./example.server.yml -dir=./generated\n\n# Server Mode - listens on a port and responds with the generated assets\n$ ./go-zones -mode server -config=./example.config.yml\n```\n\n## Deployment - As a Container\n\nPre-built container images can be found at https://quay.io/repository/kenmoini/go-zones\n\nGoZones comes with a set of `Containerfile`s that can be built with Docker or Podman with the following commands:\n\n### Server Mode Container\n\n```bash\n# Build the container\npodman build -f Containerfile -t go-zones .\n\n# Create a config directory locally with a server configuration YAML file\nmkdir -p config \u0026\u0026 cp example.config.yml config/config.yml\n\n# Mount that directory and run a container\npodman run -p 8080:8080 -v \"$(pwd)\"/config:/etc/go-zones/ go-zones\n```\n\n### File Mode Fronting to BIND\n\nThere is an extra `Containerfile.file-to-bind` container definition file that will set up a container image that starts GoZones to generate zone files and BIND configuration, then starts a BIND DNS Server.\n\n```bash\n# Build the container\npodman build -f Containerfile.file-to-BIND -t go-zones:file-to-bind .\n\n# Create a config directory locally with a Zones configuration YAML file for file mode operation\nmkdir -p config \u0026\u0026 cp example.server.yml config/server.yml\n\n# Mount that directory and run a container\npodman run --name go-zones-ftb -d -p 8053:8053 -v \"$(pwd)\"/config:/etc/go-zones/ go-zones:file-to-bind\n```\n\n#### Container-as-a-Service\n\nIf you're interested in running a GoZones File-to-BIND container as a service with a static IP, you can do so with the following (tested on RHEL 8.3 with Podman 2.2.1):\n\n##### 1. Create Bridge Device\n\nFirst you must create a Bridge Network Device on your system - this creates a virtual device, the bridge, that allows containers and VMs on your system to connect through to the network that system is connected to.\n\nCreating a Bridge device is outside of the scope of this document, find the different ways to create one here: https://www.tecmint.com/create-network-bridge-in-rhel-centos-8/\n\n##### 2. Create a new Podman Bridge Network\n\nBy default, containers will have access to a bridge device that connects the Pods to a NAT'd network.  This is not ideal for running static services for your network - instead, use Podman to create a new network that uses a macvlan-style container network to connect to a bridge device.  Run the following commands:\n\n```bash\nsudo podman create network lanBridge\nsudo nano /etc/cni/net.d/lanBridge.conflist\n```\n\nMake the file look something like this, substituting for ***bridge*** (your bridge device), and your bridged network subnet and ***range*** Podman can utilize (it can overlap with your full subnet, DHCP would be passed off to the gateway through the bridge):\n\n```json\n{\n   \"cniVersion\": \"0.4.0\",\n   \"name\": \"lanBridge\",\n   \"plugins\": [\n      {\n         \"type\": \"bridge\",\n         \"bridge\": \"LANbr0\",\n         \"ipam\": {\n            \"type\": \"host-local\",\n            \"ranges\": [\n                [\n                    {\n                        \"subnet\": \"192.168.42.0/24\",\n                        \"rangeStart\": \"192.168.42.2\",\n                        \"rangeEnd\": \"192.168.42.254\",\n                        \"gateway\": \"192.168.42.1\"\n                    }\n                ]\n            ],\n            \"routes\": [\n                {\"dst\": \"0.0.0.0/0\"}\n            ]\n         }\n      },\n      {\n         \"type\": \"portmap\",\n         \"capabilities\": {\n            \"portMappings\": true\n         }\n      },\n      {\n         \"type\": \"firewall\",\n         \"backend\": \"\"\n      },\n      {\n         \"type\": \"tuning\",\n         \"capabilities\": {\n            \"mac\": true\n         }\n      }\n   ]\n}\n```\n\n##### 3. Test the Container and Network\n\nBefore firing up a service wraped deployment, test the plumbing so far:\n\n```bash\n# Create needed directories\nmkdir -p /opt/service-containers/dns-core-1/volumes/etc-conf\n\n# Download an example zones file\ncurl https://raw.githubusercontent.com/kenmoini/go-zones/main/zones.yml.example -o /opt/service-containers/dns-core-1/volumes/etc-conf/zones.yml\n\n# Test the container, assign it an IP in your bridged subnet range\npodman run -d --name dns-core-1 --network lanBridge --ip 192.168.42.10 -p 53 -v /opt/service-containers/dns-core-1/volumes/etc-conf:/etc/go-zones/ quay.io/kenmoini/go-zones:file-to-bind\n```\n\nNote that the `-d` option will launch the container into the background - test the BIND DNS Server running in the container, the query for example.net should look like the following from an internal network:\n\n```bash\ndig @192.168.42.10 example.net\n\n; \u003c\u003c\u003e\u003e DiG 9.11.20-RedHat-9.11.20-5.el8_3.1 \u003c\u003c\u003e\u003e @192.168.42.10 example.net\n; (1 server found)\n;; global options: +cmd\n;; Got answer:\n;; -\u003e\u003eHEADER\u003c\u003c- opcode: QUERY, status: NOERROR, id: 7346\n;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3\n\n;; OPT PSEUDOSECTION:\n; EDNS: version: 0, flags:; udp: 1232\n; COOKIE: 710f246c6fde139b45d1957e60453e6b526aded7b99e739f (good)\n;; QUESTION SECTION:\n;example.net.                   IN      A\n\n;; ANSWER SECTION:\nexample.net.            3600    IN      A       192.168.42.100\n\n;; AUTHORITY SECTION:\nexample.net.            86400   IN      NS      dns-core-1.example.labs.\nexample.net.            86400   IN      NS      dns-core-2.example.labs.\n\n;; ADDITIONAL SECTION:\ndns-core-1.example.labs. 86400  IN      A       192.168.42.2\ndns-core-2.example.labs. 86400  IN      A       192.168.42.3\n\n;; Query time: 0 msec\n;; SERVER: 192.168.42.10#53(192.168.42.10)\n;; WHEN: Sun Mar 07 15:58:19 EST 2021\n;; MSG SIZE  rcvd: 178\n```\n\nNote that you may need to handle some SELinux contexts *(like disabling it lol jk kinda not jk)* - also don't forget to clean up the running container with `podman ps` and `podman kill dns-core-1 \u0026\u0026 podman rm dns-core-1`\n\n##### 4. Creating a Service\n\nNow that the service is tested to work properly you can create a service file and launch the container at system boot.\n\nReference the file `go-zones-file-to-bind-podman.service` in this repository for defining your service.  The file is ready to work with these example steps as a service called `dns-core-1` and the following steps will produce that resulting service:\n\n```bash\n# Download the service file\ncurl https://raw.githubusercontent.com/kenmoini/go-zones/main/go-zones-file-to-bind-podman.service -o /etc/systemd/system/dns-core-1.service\n\n# Reload systemd services\nsystemctl daemon-reload\n\n# Start service\nsystemctl enable --now dns-core-1\n\n# Check service status and running container\nsystemctl status dns-core-1\npodman ps\n```\n\n### Adding extra files to the container image\n\nIf you need additional assets along side the Golang binary in the built container you can simply place them in the `container_root` directory - directories/files in this `container_root` directory will be copied to the root of the container file system.  You can find an example of using a touchfile to create the `/etc/go-zones/` directory in the built container.\n\n## Deployment - Building From Source\n\nSince this is just a Golang application, as long as you have Golang v1.15+ then the following commands will do the job:\n\n```bash\ngo build\n\n# or mega test\nrm -rf generated/ \u0026\u0026 go build \u0026\u0026 ./go-zones -source=./example.server.yml -dir=./generated\n\n./go-zones\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenmoini%2Fgo-zones","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenmoini%2Fgo-zones","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenmoini%2Fgo-zones/lists"}