Generating zone files from Route53

Recently I found myself wanting to do some analysis on all of our DNS entires stored in AWS’s Route53 for security reasons (specifically to prevent subdomain takeover attacks, I’ll probably write that up soon). In doing so, I realized that while Route53 has the ability to import a zone file, it’s not possible to export one.

To some extent, this makes sense. Since Route53 supports ALIAS records (which can automatically determine their values based on other AWS products, such as an ELB changing its public IP) and those aren’t actually ‘real’ DNS entries, things will get confused. But I don’t currently intend to re-import these zone files, just use them. So let’s see what we can do.


Hard Magic

One general law, leading to the advancement of all organic beings, namely, multiply, vary, let the strongest live and the weakest die. The appearance of esoteric and etheral abiliites, magical fires and feats of strength, in recent decades are the purest demonstration of natural selection. Surely, in time, that general law will require the extinction of traditional man.

—Charles Darwin, On the Origin of Man and Selection of Human Magical Abilities, 1879


The Truth

There are, it has been said, two types of people in the world. There are those who, when presented with a glass that is exactly half full, say: this glass is half full. And then there are those who say: this glass is half empty.

The world belongs, however, to those who can look at the glass and say: What’s up with this glass? Excuse me? Excuse me? This is my glass? I don’t think so. My glass was full! And it was a bigger glass! Who’s been pinching my beer?

And at the other end of the bar the world is full of the other type of person, who has a broken glass, or a glass that has been carelessly knocked over (usually by one of the people calling for a larger glass) or who had no glass at all, because he was at the back of the crowd and had failed to catch the barman’s eye.


Moving Pictures

Discworld goes Hollywood. Or perhaps Hollywood comes to Discworld?

Basically, Hollywood is a manifestation of a ‘Great Old Ones’ esque cult where the final cultist keeping the Holy Wood from arising once again dies. One thing leads to another, trolls get dressed up as elephants, and a movie hero has to save the day.


Oathbringer

Hooooly crap. The first three quarters of Oathbringer are fairly slow. They’re still fascinating, building up more and more of the world of The Stormlight Archive, answering some questions while raising even more.

And then crap really hits the fan. I read the final several hundred pages in one session and wow a lot of things happen. Epic. Just epic. Read the book just for that and don’t put it down early.


Automatic self-signed HTTPS for local development

From time to time when doing web development, you need to test something related to HTTPS. In some cases, the application you’re writing already supports HTTPS natively and that’s no problem. But more often (and probably better, in my opinion) is the case when you have another service (be it an AWS ELB or an nginx layer) that will terminate the HTTPS connection for you so your application doesn’t have to know how to speak HTTPS.

In those cases, how can you test functionality that specifically interacts with HTTPS?

Today I will show you autohttps, a thin nginx proxy using Docker and a self signed certificate to automatically create an HTTPS proxy in front of your application.


Words of Radiance

“I am offend!” Shallan yelled. “You have offended Her Highness again!”

“Very offend!”

“You’d better apologize.”

“No apologize!” Shallan declared. “Boots!”

Kal leaned back, looking between the two of them, trying to parse what had just been said. “Boots?” he asked.

“Yes,” Shallan said. “I am liking your boots. You will apology with boots.”

“You … want my boots?”

“Did you not hear Her Highness?” Tyn asked, arms folded. “Are soldiers of this Dalinar Kholin’s army so disrespectful?”

“I’m not disrespectful,” Kal said. “But I’m not giving her my boots.”

“You insult!” Shallan declared, stepping forward, pointing at him. Stormfather, those horses were enormous! “I will tell all who are to listen! When arriving, I will say, ‘Kholin is stealer of boots and taker of women’s virtue!’”

Kal sputtered. “Virtue!”

“Yes,” Shallan said; then she glanced over to Tyn. “Virtue? No, wrong word. Virture … No … Vesture. Vesture! Taker of woman’s vesture! That is word I wanted.”

The soldier glanced to his companions, looking confused. Drat, Shallan thought. Good puns are lost on men with poor vocabulary.

Words of Radiance takes The Way of Kings and builds it up in all the right ways… only to tear everything down once again.


Snuff

And so it ends.

Yes, sir, thank you, sir, and I wouldn’t trust me one little inch, sir. I knows a bad one when I sees them. I have a mirror.


The Way of Kings

Tell … tell my brother … he must find the most important words a man can say.

First, the worldbuilding and magic systems.


Thud!

“Quis custodiet ipsos custodes? Your grace.”

“I know that one,” said Vimes. “Who watches the watchmen? Me, Mr. Pessimal.”