Skip to content

Instantly share code, notes, and snippets.

View olafz's full-sized avatar

Olaf van Zandwijk olafz

  • Nedap N.V.
  • Enschede, The Netherlands
View GitHub Profile
@olafz
olafz / cloudns.py.diff
Created January 3, 2024 11:39
This file is a patch for the `cloudns`py` file from the Python `dns-lexicon` package to properly support CAA, MX and SRV records. This patch-file only works for dns-lexicon up till 3.13, as 3.14 contains a significant rewrite.
--- cloudns.py
+++ cloudns.py.patched
@@ -62,6 +62,24 @@
if self._get_provider_option("port"):
params["port"] = self._get_lexicon_option("port")
+ if rtype == 'CAA':
+ caa_split = params['record'].split()
+ params['caa_flag'] = caa_split[0]
+ params['caa_type'] = caa_split[1]
@olafz
olafz / tweak_6rd.rsc
Created January 8, 2020 19:37
Tweak IPv6 mikrotik RouterOS (6RD)
# Dutch ISP Tweak offers IPv6 via 6rd. The commands below configure a mikrotik
# RouterOS with 6rd. This was tested with RouterOS 6.46.1.
#
# First, you'll have to request IPv6 information from Tweak. You'll receive
# a fixed IPv4 address and some other information. For the rest of this guide,
# I assume the following information is received from Tweak:
#
# ===
# IPv4 address: 185.227.123.123
# IPv4 mask length: 22
### Keybase proof
I hereby claim:
* I am olafz on github.
* I am olafvanzandwijk (https://keybase.io/olafvanzandwijk) on keybase.
* I have a public key whose fingerprint is 7239 C114 D7C4 8ACE 45D8 82CC ACD0 EA6D 84DB 33D9
To claim this, I am signing this object: