Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@adamstrawson adamstrawson commented Jan 2, 2018

You're my hero ❤️

@candell

This comment has been minimized.

Copy link

@candell candell commented Jan 15, 2018

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

@g3rman42

This comment has been minimized.

Copy link

@g3rman42 g3rman42 commented Feb 23, 2018

Another big thank you from Texas!

@Constantin07

This comment has been minimized.

Copy link

@Constantin07 Constantin07 commented Mar 15, 2018

Many Thanks !

@alechewitt

This comment has been minimized.

Copy link

@alechewitt alechewitt commented Mar 19, 2018

Nice one 👍

@TheFlymo

This comment has been minimized.

Copy link

@TheFlymo TheFlymo commented Apr 20, 2018

Saved me an afternoon, cheers!

@barryokane

This comment has been minimized.

Copy link

@barryokane barryokane commented Jun 15, 2018

Outstanding work, thanks!

@TheRusstler

This comment has been minimized.

Copy link

@TheRusstler TheRusstler commented Aug 9, 2018

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

@kieronlanning

This comment has been minimized.

Copy link

@kieronlanning kieronlanning commented Oct 3, 2019

Hero!

@robwithhair

This comment has been minimized.

Copy link

@robwithhair robwithhair commented Oct 11, 2019

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

This comment has been minimized.

Copy link

@joanne68 joanne68 commented Oct 18, 2019

Thanks that worked for me 👍

@rorydonohue

This comment has been minimized.

Copy link

@rorydonohue rorydonohue commented Nov 5, 2019

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

This comment has been minimized.

Copy link
Owner Author

@biinari 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

This comment has been minimized.

Copy link

@tdchien tdchien commented Feb 12, 2020

Many thanks

@rbenet-lifesize

This comment has been minimized.

Copy link

@rbenet-lifesize rbenet-lifesize commented Oct 12, 2020

Brilliant ! Thanks !

@justJackjon

This comment has been minimized.

Copy link

@justJackjon justJackjon commented Oct 18, 2020

Legend! 👏

@lindleycb

This comment has been minimized.

Copy link

@lindleycb lindleycb commented Mar 5, 2021

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! 👏

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