Skip to content

Instantly share code, notes, and snippets.

@dorancemc
dorancemc / dnszone2yml.py
Created November 27, 2023 12:41
dnszone2yml.py
#!/usr/bin/env python3
#
# Script to convert a DNS zone file to a YAML file
#
# Usage:
# python3 dnszone2yml.py -f /path/to/zonefile -e /path/to/export.yml [--ttl] [-t TYPE [TYPE ...]
# --ttl: Print the TTL for each record
# -t TYPE [TYPE ...]: Only print records of the specified type(s) (e.g. A, AAAA, CNAME, etc.)
#
# example:

Keybase proof

I hereby claim:

  • I am dorancemc on github.
  • I am dorancemc (https://keybase.io/dorancemc) on keybase.
  • I have a public key whose fingerprint is CC98 1ABC 3593 A65E A9E1 359D 774D 694B 11F4 30B5

To claim this, I am signing this object:

@dorancemc
dorancemc / aws-cfn.sh
Last active May 6, 2018 06:52 — forked from cgswong/aws-cfn.sh
Setup CentOS server with AWS CFN bootstrap
#!/bin/bash
# Setup CentOS 7 host as AMI
# Update base OS update, and install EPEL repo and Python Pip
sudo yum -y update &&
sudo yum -y install epel-release &&
sudo yum -y install python-pip &&
# Install Python add-ons:
sudo pip install pystache &&