Malicious enjoyment derived from observing someone else’s misfortune
 

Tag Archives: dns

DNS for bash

Today, I decided I wanted a network service that propagated variables and aliases to every login shell that subscribed to it. This is dangerous on a large scale, but perfectly acceptable on my small home network where everyone trusts everyone else. First, I got Camping installed, bringing back fond memories of Ruby development. I then copied off the blog example, and created TreeHugger, a 427 line script that provides a web interface to edit the variables, and a plain text [...]

Setting up DNS on my network

I decided to set up bind9 today on my Gutsy server. It wasn’t too painful after I finally found some posts from someone who knew what they were doing (2 tutorials I read contained invalid configurations…). First, you install bind: sudo apt-get install bind9

DNS Catch-all for OpenID

We were trying to get our OpenID server working today, and we found that we needed to make a catch-all DNS entry to do it. That way, things like hank.myopenid.url would work. Here’s one way to do it: *.yourdomain.com. IN A 111.111.111.111 But, we ended up using a CNAME instead: UPDATE ADD *.yourdomain.com. 86400 IN CNAME yourdomain.com Then in your Apache virtual hosts directive add a wildcard alias like this ServerAlias *.yourdomain.com Incredible.

DNS Mania

Well, I was stumbling today and found OpenDNS. I was excited to find that I could make it coexist with OpenNIC in my dhclient configuration. Here’s the resultant line that makes all this magic happen: prepend domain-name-servers 63.226.12.96, 208.67.222.222, 208.67.220.220; So now, when I use dhcp to grab an IP, I end up prepending these nameservers onto my resolv.conf. OpenDNS makes spam sites and domain squatters disappear. And it makes the average request a lot faster. Yesterday, bish0p and I [...]