Bind9 Wildcard DNS

This article was posted more than 1 year ago. Please keep in mind that the information on this page may be outdated, insecure, or just plain wrong today.

Decided instead of managing all the DNS records for techish.net. that I would just setup wildcard entry for techish.net.
In my zone master file, I added the following:

*.techish.net. IN A 74.219.241.252

Then I reloaded bind9

/etc/init.d/bind9 reload

Voila, wildcard DNS.  Make sure you put the entry after all your static definitions and if you add more static definitions, put them above that wildcard entry.

My .screenrc

I'm bored, so here's what my current .screenrc is (screenshot included). backtick 1 60 60 /usr/local/bin/checkmail.pl hardstatus alwayslastline hardstatus string '%{= kW}%-Lw%{= KW}%50>%n%f* %t%{= kW}%+Lw%< %{= kG}%-=[Mail: %1`] %D %d %M %Y %c:%s%{-}' vbell off startup_message off This is my .fetchmailrc poll mail.techish.net with proto IMAP user me@example.com there with password xxxxxxxxx folder 'INBOX' This is /usr/local/bin/checkmail.pl #!/usr/bin/perl open FETCHMAIL, /usr/bin/fetchmail Continue reading →

Debian Wheezy Bind9 Failing to Start

After installing Bind9 chrooted to /var/lib/named in accordance to this guide (link), Bind9 is failing to start due to the following error noted in /var/log/daemon.log
To resolve this, I found some search results hinting around the fact that OpenSSL libraries for 1.0.0 were the cause since chroot didn't have access to them.  So to correct this, on my system, I used the following commands.
mkdir -p /var/lib/named/usr/lib/x86_64-linux-gnu
cd /var/lib/named/usr/lib/x86_64-linux-gnu
cp -R /usr/lib/x86_64-linux-gnu/openssl-1.0.0 Continue reading →

iptables facepalm

This article was posted more than 1 year ago. Please keep in mind that the information on this page may be outdated, insecure, or just plain wrong today.

Facepalm Friday I think!
I recently reconfigured my iptables based firewall and stupidly forgot to allow access out to Akismet for spam filtering on WordPress. No wonder I was getting hammered with spam content.
Time to go home. #*)@$%#$

#wordpress

Basic IPtables Firewall

This is a very simple iptables firewall scripts to get you started.  I use this all the time as a basis.  It allows for access to your system via SSH (you can define a different port if you run SSH on a different port;  you do, right? ;)), outbound DNS requests.
I use this as a boilerplate for all containers in the virtual world.
#!/bin/bash
IPT="/sbin/iptables"
# Flush old rules, old custom tables
$IPT --flush
$IPT --delete-chain
# Set default policies for all three default chains
$IPT Continue reading →