Skip to content

networkshokunin/bind9-validation-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bind9-validation-action

This GitHub Action is designed to automate the validation of DNS zone files and BIND configuration files (named.conf) using named-checkzone and named-checkconf. It builds upon the features of the original action-named-checkzone with enhancements aimed at speed improvements and addtional checks.

Features

  • Zone File Validation: Validates DNS zone files for syntax correctness using named-checkzone.
  • Configuration Validation: Verifies the syntax of BIND configuration files (named.conf) using named-checkconf.
  • Automation: Automatically runs on push and pull_request events, ensuring all changes are validated.

Enhancements Over Original Action

  • Alpine Docker Image: Utilizes a smaller Alpine-based Docker image, reducing the overall runtime footprint.
  • Dynamic Zone Name Extraction: Instead of relying on zone filenames, this action extracts zone names directly from the $ORIGIN directive in zone files, ensuring greater accuracy and flexibility.
  • Enhanced named.conf Validation: Specifically targets and verifies configuration files formatted like named?.conf, ensuring only relevant BIND configuration files are checked.

Credits

This project is based on and extends action-named-checkzone by @grramos. I want to express my gratitude for the groundwork laid in the original project, which inspired my enhancements.

Usage

To use this action in your GitHub workflows, add the following to your workflow file (e.g., .github/workflows/check-bind.yml):

name: Bind9 Validation

on: [push, pull_request]

jobs:
  bind9-validation:
    runs-on: ubuntu-latest

    steps:
    - name: Check out code
      uses: actions/checkout@main
    - name: Run named-checkzone
      uses: networkshokunin/bind9-validation-action@main

About

This GitHub Action verifies the syntax and correctness of BIND9 named.conf files and associated zone files, ensuring reliable DNS configuration management

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors