DNS woes on OS X 10.10 Yosemite

Today I spent the better part of two hours setting up a BIND9 nameserver on my raspberry pi server, and I quickly ran into an issue:

The DNS cache on OS X was not updating. There are two methods circulating of solving these, which are:

dscacheutil -flushcache
sudo discoveryutil udnsflushcaches

So, I had to find another way.
And I found one. The super easy way of fixing this is to lower your TTL in your zone file, do the ping, and set it back again (or leave it)

e.g. take this here:

ben.local. IN SOA server.ben.local. hostmaster.ben.local. (
        1               ; serial
        5H              ; refresh
        4H              ; retry
        4W              ; expire
        1D              ; minimum
)

In this case, the TTL (refresh) is set to 5 hours. You won’t be able to get a lot of work done in that time, so set it to 5 to force a refresh every 5 seconds, i.e.

ben.local. IN SOA server.ben.local. hostmaster.ben.local. (
        1               ; serial
        5               ; refresh
        4H              ; retry
        4W              ; expire
        1D              ; minimum
)

Oh, and you don’t need to change the serial unless you have slaves waiting for an update. Make the changes, then run sudo service bind9 restart to restart the nameserver, and voilĂ ! You can get back to work.

In future, if this is a private nameserver which only receives a few queries a second, then feel free to set it to something reasonable, like a minute. or five. or ten. Keep the five hour TTLs for high load servers where you need to cater for tens of thousands of DNS requests a second

Floating Spam

I am bored, and therefore I intend to transfer my boredom to the internet.

Whilst looking from my spam folder (I really was that bored), I noticed that there were a bunch of messages at the top which had been there since I last looked (a long while ago)

At first, I dismissed it as my spam filter not working, but upon closer inspection, it appears that they were sent in October…

October 2018, that is. 4 years from now.

I therefore conclude that a type of spam designed to bug you to open it is what I have dubbed ‘floating spam’. That is, spam which was sent to you from the future. It will appear in your inbox if you perhaps run a small business, and are using a cheap mailserver to server you mail without a built in spam-filter and you only access your mail through webmail. If it’s all poorly put together, you will theoretically end up with these spam messages stuck at the top, hiding your other mail.

Of course, for me, the fact it was sent 4 years from now indicates to my spam filter that I am either involved in some Doctor Who plotline involving complicated timey-wimey stuff and email, or I have been sent some spam. It’s pretty obvious which one it is.

BE WARNED! FLOATING SPAM IS AMONG US!

Oh! Ye who hast been scrapped!

Today’s going to be an interesting article for those of you who take an interest in cars.

The Governmental People released a list of all the cars they’ve scrapped through the Vehicle Scrappage Scheme. Today I intend to go through the top 5 cars scrapped, to celebrate the hunks of junk we all stuck it to.

  1. Ford Fiesta – 13,622 Scrapped
    So, Britain’s officially best-selling car is hitting the scrapheaps in their tens of thousands.
    Something leads me to suspect that they are either Mk4 or Mk5 Fiestas, because let’s face it. Nobody really wants one anymore.
  2. Nissan Micra – 11,808 Scrapped
    This car deserves nothing more. Most likely scrapped was the Mk2
  3. Vauxhall Corsa – 10,453 Scrapped
    If I had the choice, I’d take the Corsa C over the Corsa B any day, which is why I suspect that the Corsa B was worse off in those figures
  4. Volkswagen Polo – 8,432 Scrapped
    I’m sorry, but the Polo has nothing going for it. I bet you most of those were either Typ 6Ns or Typ 9Ns.
  5. Vauxhall Astra – 8,066 Scrapped
    I suspect 3rd or 4th Gen. These cars were simply terrible

That’s it. I’m going back to work, and I suggest you do the same before someone catches you.
I’ll do a proper post sometime soon

How to look good in your Prius

Now. This IS unusual. I haven’t talked about the one thing I talk about all of the time normally on my blog. No, it’s not looking good, it’s cars. Here we go…

It is a common stereotype: Prius drivers are boring people who ought to be locked up in old people homes for making the horrendous mistake of buying themselves a prius in the first place. Not so anymore, as I have some simple tips to help you look good whilst prancing around in your prius (Note: these tips may or may not affect your oh-so-sought-for gas mileage – YOU HAVE BEEN WARNED! Oh, and these tips are not guaranteed to work…):

  1. Wear an awesome hat and pair of glasses like you stole it. If you look like a normal person in a Prius, you’re doing it wrong. Ramp up the macho and wear a friggin’ awesome cowboy hat and an awesome pair of shades! When you get out, people will imagine you’re leaving a really awesome muscle car. They will (or they might).
  2. Drive it like you stole it. If you drive your Prius by the book, coasting wherever possible to save fuel and recharge the batteries, people will loathe you (Because they want to get past you and look better than you). The Prius has the advantage over similar vehicles in its class because pedal to the metal equals both the petrol and electric engine give you all they’ve got. MORE POWER!
  3. Paint it like you stole it. What good is it wearing you silly hat and your silly glasses and driving it like a silly little kid who ought to be on public transport when nobody notices your silent blur (silent unless you’ve got your foot planted) whizzing past them? Give yourself an epic white/blue two tone and rock that motherf*cker!
  4. Park it like you stole it. You have your clothes, your speed and your two tone. Now what? Go find an executive’s parking space and park in it of course! People will eventually catch on that the rich kids are spending their money on new Prii (Yes, that is the official plural for Prius) and will view you as a cool pioneer in Prius awesomeness.

There you go. You now know how to look good in your Prius, so don your hat, your glasses, give it a frikkin’ awesome paint-do and race it down to the exec’s space and walk away like a badass.

Be a proud Priuser.

I’m ill as unexpected, please leave a message

I don’t like being ill, nor do many other people I know of.

However, to be ill is to be relieved of normal duties for a period of time, which can be used to recuperate and recharge. This recuperation and recharging is very important for a person akin to myself as you need all the energy you can get.

What else is very important is to know that you are not the only one that’s ill.

The crisis of the storage space – part two.

If your windows machine has run for twenty days straight without crashing or otherwise needing a restart, then congratulations!

It also means I should share with you a little secret. Windows uptime = disk space used for the page file, etc. A restart will significantly cut hard disk usage (4GB in my case :)) and allow you to continue working.

I would write more but I simply couldn’t be bothered. Believe it or not I have a life.