Skip to content

Instantly share code, notes, and snippets.

View CodingNinja's full-sized avatar
🏠
Working from home

David Mann CodingNinja

🏠
Working from home
View GitHub Profile
@alixaxel
alixaxel / README.md
Last active June 15, 2023 15:33 — forked from Techwolf12/README.md
Generating IPv6 PTR records from a Bind9 zonefile using Bash

Generating IPv6 PTR records from a Bind9 Zonefile using Bash.

The following script takes a Bind9 zonefile, gets all AAAA records from it and generated PTR records based on them.

What you need to do:

  1. Edit the Zone header in the script.
  2. Run the script with ./generate_v6_ptr.sh /path/to/zonefile.zone

This will output the zones on STDOUT. If you want to save this to a zonefile, you can use this example:

@benhowes
benhowes / info.md
Last active March 22, 2021 12:49
Simple JWT decoder

Gets a JS object which contains the decoded body of the JWT. For now I am pasting this in to postman tests when I need to get JWT decoding

#Important Does not validate the token at all!