Skip to content

DNS spike for the operations engineering team • This repository is defined and managed in Terraform

License

Notifications You must be signed in to change notification settings

ministryofjustice/operations-engineering-dns-spike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNS Spike

repo standards badge

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-dns-spike.git
  1. Navigate to the cloned repository:
cd operations-engineering-dns-spike
  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

DNS spike for the operations engineering team • 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