2007-04-08

Fool Me Once

For any­one who wants to han­dle dynamic DNS (either in con­junc­tion with DHCPd or not) with Bind and absolutely hates the ver­bosity of nsup­date, here’s a shell script which han­dles the common-cases of adding and removing:

  • Forward/reverse entries
  • CNAMEs

The com­mand line argu­ments are –k (privkey) –a (action) –h (host­name) –i (ipaddr) –c (cname) –d (debu­glevel) (-t ttl)

Usage:
    setns -k privkey -a set -h hostname (-i ipaddr|-c cname) [-d #] [-t ttl]
    setns -k privkey -a unset -h hostname (-i ipaddr|-c cname) [-d #]

You need to be famil­iar enough with Bind9/DNS to have cre­ated a key­pair with dnssec-keygen and added it to your named.conf.

Other ways of sim­pli­fy­ing this are a Tcl/Tk GUI tool and a python script. Neither of which have the dis­tinct advan­tage of my tool: giv­ing me an excuse to do useful/interesting things with bash. Downsides are peren­nial script­ing prob­lems with insuf­fi­cient input val­i­da­tion, it’s not trans­ac­tional (i.e. if the sec­ond half fails it won’t back out the first half), and it requires FQDNs rather than using your search domain.

The script, avail­able under the GPL.

Also, good to see all the progress we’re mak­ing in the ille­gal, immoral, unjust, but mag­i­cally winnable war to let Exxon take upwards of 75% prof­its on all the unex­ploited oil reserves in the Baghdad in the Midwest Cornfields.

Comment on this...


2006-10-02

Dying Democracy and Dehumanization

Last Wednesday night, I was call­ing friends to try and do a lit­tle street the­ater down­town Chicago, in the hopes of pro­vid­ing a par­tic­u­larly gritty infomer­cial and gen­er­at­ing pres­sure on the Senate to not pass S.3930 (aka the “Just Confess to Something Act of 2006″). It appears I wasn’t the only one with the same idea. No one was down for it early that Thursday after­noon, and the bill went on to pass by a hefty majority.

That night, I couldn’t help but think that this is no longer my coun­try. I’m liv­ing on the same land­mass, but “America” has packed up and left for greener pastures.

That is a fic­tion. The America I pine after has only ever existed in the fever dreams of its bohemian ide­al­ists. America as a whole has always been a bru­tal, mean-spirited hyp­ocrite. It enslaved mil­lions of Africans in the name of God. It slaugh­tered mil­lions of indige­nous Americans in the name of civ­i­liza­tion. It con­quered Cuba and the Phillipines in the name of colo­nial lib­er­a­tion. It setup banana republics in Central America in the name of democ­racy. It used nuclear weapons in the name of peace. It impov­er­ishes a large chunk of the planet in the name of devel­op­ment. It con­quered Iraq in the name of free­dom, and con­tin­ues to dec­i­mate it in the name of stability.

Now, it has decided to let itself dis­ap­pear any­one it wishes and abuse them for­ever — in the name of security.

Comment on this...


2006-08-20

Armed Madhouse

Yesterday, I read Greg Palast’s Armed Madhouse. On the one hand, it’s nice to know that I intu­itively under­stood the neo-conservative inva­sion plan and rea­son — the so-called “Plan B” — well enough to describe it as “glob­al­iza­tion by force” in a paper I wrote for a Political Economy course. It’s also nice to know the vaunted-but-ignored State Department plan was, essen­tially, the oil indus­try plan, and not all that much less fan­ci­ful (an “inva­sion dis­guised as a coup that would be over in three days” — sure).

The cli­mate chaos unleashed by find­ing large new reserves would make the mere col­lapse of indus­trial civ­i­liza­tion look like a sideshow bagatelle1

On the other hand, it’s some­what dis­ap­point­ing to have my belief in Peak Oil skew­ered so expertly. The issue is not so much that I believed in it, but rather that there is so much petro­leum in the world as to make both extreme cli­mate change and fur­ther impov­er­ish­ment of the U.S. poor and mid­dle classes essen­tially inevitable.

I don’t, how­ever, sub­scribe to his hand-waving dis­missal of the petrodol­lar the­o­ries for the inva­sion of Iraq, if for no other rea­son than he does the stan­dard “only on the Internet” shuck-n-jive in lieu of any actual counter argu­ment. Yes, Bush wants to devalue the dol­lar against the Euro. That does not include throw­ing the global econ­omy into chaos by let­ting over three bil­lion dol­lars sit idle each day — or worse, come back to the Federal Reserve as coun­tries dropped their dol­lar cur­rency reserves, no longer requir­ing them to trade oil? Because that is what a switch from the dol­lar to the Euro would entail.

Americans really don’t care about free­dom; they don’t really care about lib­erty; they don’t care about any of that.2

After that, the book reaches into the var­i­ous vot­ing scams which allowed Bush to steal the office, again. It cov­ers quite a bit of infor­ma­tion, from Ohio to New Mexico, from the more mun­danely racist lists of vot­ers to chal­lenge to the more “sexy, Hollywoodish” (the book’s term) machine hack­ing. On page 243, I read the fol­low­ing, from an African American who was ille­gally denied the right to vote in 2000 in Tampa, and would have been again in 2004 had Palast’s film­ing crew not shown up to do a story on him:

I went into the place to vote and I was with my son and there were about 40 to 50 other peo­ple around and I got up there to vote and they told me I was a con­victed felon. I told the young lady that I had never been arrested. I’ve never been arrested in my life. I I was in the mil­i­tary for four years and have been in the med­ical field ever since. You can’t even work for a hos­pi­tal being a con­victed felon… I was in the Persian Gulf War in ’91. It’s pretty screwed up how they did me, but what can I say?

I was upset, I was ashamed — with 40 peo­ple around — it made me feel real bad. And I’m just hop­ing I get a let­ter stat­ing, hey, you can vote again, Willie.

I really feel it was bad for African-Americans — but hey, what can we do some­times? What can we do?

At which point I col­lapsed out of my chair with a colos­sal fuck­ing headache behind my left eye­ball. After lying down for a few min­utes to get my bear­ings back (an inter­est­ing expe­ri­ence in itself, BTW), I con­tin­ued read­ing, even­tu­ally com­ing across another cou­ple gems from New Mexico: Governor Bill Richardson (the only Latino gov­er­nor in the U.S.) is the son of a Citibank exec­u­tive and a woman who hails from Mexico City, and the only greater pre­dic­tor of how worth­less your vote is than race is income.

The resis­tance is just wait­ing to be orga­nized3

When this is all finally sorted out, the mid­dle class in gen­eral, and white peo­ple in par­tic­u­lar will have a lot to answer for. It may be us, the younger-types in the work­force today ask­ing for the account­ing. It may be our kids. People will turn back to the last few gen­er­a­tions and ask them: why did you let them get away with all this? Why did you keep your head down, try­ing to not fight them.

We’re all so busy scrap­ing, just try­ing to hang onto our own toys, that they can get away with these kind of colos­sal crimes they’ve been get­ting away with. And while you’re busy try­ing not to get fired, they lynch the black guy next door. And that’s just the progressives/liberals/left.

The self-described “con­ser­v­a­tives” will have more. One thing I don’t want to see, after the fight has been won, is some kind of phony “heal­ing process” where all the bosses get to pre­tend they had noth­ing to do with it — to pre­tend they weren’t right there at the table, waited on by starv­ing peo­ple. Where none of the police can quite remem­ber who was in the K-9 units, and none of the mil­i­tary men can recall who was killing fam­i­lies and rap­ing women in some desert hut, 12,000 miles away.

Ever notice how they never can find the racist cops in those civil rights doc­u­men­taries — the cop who was sic­c­ing the dog on the kid, or the fire­man man­ning the fire hose? That’s what I mean.

  1. Robert Newman’s A History of Oil
  2. Aaron McGruder, on C-SPAN
  3. Ani DiFranco, Millennium Theater

Comment on this...


2006-03-04

Feel The Power

So accord­ing to the peo­ple at Protein Wisdom, the rea­son the U.S. is los­ing the war in Iraq (iron­i­cally enough the same peo­ple said the U.S. was win­ning until a fel­low con­ser­v­a­tive clued them in to the fact it wasn’t) is the anti-war pro­test­ers. Aside from the obvi­ous “stab-in-the-back” par­al­lels, there’s a more con­struc­tive inter­pre­ta­tion to be had.

Now, there hasn’t been a mas­sive anti-war mobi­liza­tion in the U.S. since the week­end the war started. The only time anti-war protests gar­ner any sig­nif­i­cant media atten­tion is when Cindy Sheehan is involved. The protests at the start of the war were described by Bush as “focus group”, and the G knows that Democracy means the peo­ple sit down and shut the fuck up unless they’re being asked to rub­ber stamp the nation’s man­agers’ (who must be wise, oth­er­wise how did the own­ers know to buy them) cushy perks for the next two, four, or six years.

But that’s another issue. What this guy is really say­ing is that hippy left­ists have man­aged to cause the most destruc­tive mil­i­tary machine in the his­tory of the world to fail in their attempt to sub­ju­gate a dirt-poor coun­try which suf­fered under sanc­tions and a CIA-infilitrated weapons-inspection régime for 12 years. Without really doing all that much.

So as a hippy left­ist, you’re telling me that I just helped defeat the most cock-diesel moth­er­fuck­ers in his­tory, with­out hold­ing any sub­stan­tive power, writ­ing any edi­to­ri­als for news­pa­pers, attend­ing an anti-war protest in nearly three years, or really doing any­thing out­side of get­ting up and going to school or work? My mere exis­tance means you lose?

Wow, thanks!

Comment on this...