Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

This repository will be used to prove the concept of managing DNS records using OctoDNS. • This repository is defined and managed in Terraform

License

Notifications You must be signed in to change notification settings

ministryofjustice/operations-engineering-octodns-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OctoDNS Proof of Concept

This repository demonstrates how to use OctoDNS to manage DNS records.

Setup

  1. Clone the repository to your local machine:
git clone https://github.com/ministryofjustice/operations-engineering-octodns-poc.git
  1. Navigate to the cloned repository:
cd operations-engineering-octodns-poc
  1. Create a new virtual environment and activate it:
python3 -m venv env
source env/bin/activate
  1. Install OctoDNS:
pip install octodns

Configuration

The DNS configuration is defined in the config.yaml file. Here's an example of what it might look like:

providers:
    config:
        class: octodns.provider.yaml.YamlProvider
        directory: ./config   # directory where your YAML files are located
        default_ttl: 300      # default TTL for records

zones:
    example.com.:
        sources:
            - config
        targets:
            - config

Usage

To sync your DNS configuration, run the following command:

octodns-sync --config-file=./config.yaml

CI/CD

This repository uses GitHub Actions to automatically sync the DNS configuration whenever changes are pushed to the main branch. See the .github/workflows/main.yml file for the workflow configuration.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository will be used to prove the concept of managing DNS records using OctoDNS. • This repository is defined and managed in Terraform

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published