Skip to content

Instantly share code, notes, and snippets.

@biinari
Last active February 8, 2023 14:23
Show Gist options
  • Star 23 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save biinari/faed94e70197e129b2dee57bdab20084 to your computer and use it in GitHub Desktop.
Save biinari/faed94e70197e129b2dee57bdab20084 to your computer and use it in GitHub Desktop.
Script to extract the DNS entries from 123-reg advanced dns page
// Moved to a new home at https://github.com/biinari/zonefile-extract/tree/master/123-reg
@adamstrawson
Copy link

You're my hero ❤️

@candell
Copy link

candell commented Jan 15, 2018

This just saved me a nasty piece of work, thanks buddy

@g3rman42
Copy link

Another big thank you from Texas!

@Constantin07
Copy link

Many Thanks !

@alechewitt
Copy link

Nice one 👍

@TheFlymo
Copy link

Saved me an afternoon, cheers!

@barryokane
Copy link

Outstanding work, thanks!

@TheRusstler
Copy link

Great work. Saved me a lot of time, thanks for sharing!

@kieronlanning
Copy link

Hero!

@robwithhair
Copy link

This is brilliant. Thank you so much for putting this together. What a timesaver. 1 small bug is that SPF records should now be set as TXT records. When I did a diff between the name servers using the below snippet that was the only thing which came up.

diff <(sort -u <(for host in $(cat ~/.ssh/scratch); do dig +nottlid +noall +answer @ns.123-reg.co.uk $host ANY; done) ) <(sort -u <(for host in $(cat ~/.ssh/scratch); do dig +nottlid +noall +answer @ns-1341.awsdns-39.org $host ANY; done) )

When read up on SPF record type they say it should not longer be used and that TXT should be preferred from now on.

Thanks once again

@joanne68
Copy link

Thanks that worked for me 👍

@rorydonohue
Copy link

Many thanks for putting this together. As Rob mentioned those SPF records should be TXT to be compliant, also Reg123 don't appear to put TTLs on the form any more so I had to do a ttl = row.getElementsByClassName('dns_ttl')[0].innerText || 14400 to get around it.

@biinari
Copy link
Author

biinari commented Nov 5, 2019

Thanks @robwithhair and @rorydonohue for your suggestions. I've moved this to a proper github repo at https://github.com/biinari/zonefile-extract so that any future changes can be contributed as pull requests.

Also thanks everyone for the supportive comments, I really wasn't aware this was going to be useful for so many other people.

@tdchien
Copy link

tdchien commented Feb 12, 2020

Many thanks

@rbenet-lifesize
Copy link

Brilliant ! Thanks !

@justJackjon
Copy link

Legend! 👏

@lindleycb
Copy link

Genious. Just saved me loads of time and without having to hand over passwords etc. to a script off the internet. Simple but extremely effective. Many thanks! 👏

@Jamiewarb
Copy link

Thank you you legend

@w5m
Copy link

w5m commented Feb 8, 2023

Many thanks for sharing. This is a real timesaver 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment