Wednesday
Jul012009
Fun with sed and domain blacklists
Wednesday, July 1, 2009 at 10:32AM Well I couldn't sleep one night and a friend sent me a DNS blacklist of domain names. I needed it to be in the windows hosts file format to install on to an old computer, the format looks a little like this:
127.0.0.1 somedomainxxxxxxxxxxxxx.ru
127.0.0.1 someotherurlyyyy.com
However the list had several thousand lines and cut and paste will only get you so far. I used the program sed on my mac to change all these lines quickly.
$ sed "s/^/127.0.0.1\ /" InPutFile >> OutPutFile
fun times :)
Disclaimer: I'm by no means a command line wizard so there is probably a better way of doing this. Security gained by loopback hosts files is also questionable.
tagged
dns,
hosts,
sed in
Graham's Blog
dns,
hosts,
sed in
Graham's Blog 

Reader Comments (11)
Wow,the article is very good ! I like it very much,but If you can add more video and pictures can be much better, I have never read such a lovely article and I am coming back tomorrow to continue reading.fendi replica
tiffany jewellery are nothing but pendants that you can attach to any form of jewelry you like. But some ladies like it to be dangling from their tiffany uk. Well that is entirely a personal matter of choice, but first let us have a look at the swarovski available under the charm's category. Some of them are made of swarovski crystals and others of gold. These swarovski uk are mostly worn to express your thoughts and personality. For instance, a swarovski jewelery is worn by someone who plays or likes to play violin.
<p>Great UGG Boots Cheap get into office sometimes, but what this country needs is men that will do what we tell them to do. This nation-Where the people rule-is governed by the people, for the people, and so long as it is, then UGG classic tall grey is but the servant of the people, and the Bible says the servant cannot be greater than the master. I believe in woman’s suffrage, and there is no doubt but UGG snow Boots is coming, and I am getting out of the way, anyhow. I may want an office by and by myself; but if the ambition of an office influences the women in their desire to vote, I want to say right here what australian UGG Outlet say to the young men, that if you only get the privilege of casting one vote, you don’t get anything that is worth while. Unless you can control UGG winter Boots more than one vote, you will be unknown, and your influence so dissipated as practically not to be felt. UGG classic short is not run by votes. Do you think it is? It is governed by influence. It is governed by the ambitions and the enterprises which control votes. The young woman that thinks classic cardy UGG Boots is going to vote for the sake of holding an office is making an awful blunder. Then I will march up to the cannon’s mouth; I will sweep up among the glistening bayonets; UGG bailey button will leap into the arena and tear down the flag and bear it away in triumph. I will come home with stars on my shoulder, and Cheapest UGG Boots hold every office in the gift of the nation, and I will be great. We ought to teach that, however humble a man’s station may be, if he does his full duty in that place UGG australia is just as much entitled to the american people’s honor as is the king upon his throne. But we do not so teach. We are now teaching everywhere that Really Cheap UGG Boots do all the fighting.</p>
<p>UGG Boots On Sale</p>
<p>Women's UGG Boots</p>
<p>UGG Boots clearances</p>
<p align="center"></p> ZXJ
tory burch heels on sale understanding tory burch flats Benefits of Completing Electrician Coursesnew articles,for buy cheap tory burch shoes will become an electrician; they are going to have to take the proper electrician courses and some other things as well. cheap tory burch handbags online sale will defenitely drive all women crazy because of the stylish and the tory burch boots sale design.
So, sac a main are more than just an accessory to enhance your style. Buying Sac à main can often be confusing. Browse through our buying sac a main pas cher tips to get an insight into buying the right one. Among the most important sac a main luxe buying tips are - always buy only from a reputed store and read thoroughly through the warranty policy. One of the most important moncler jackets on sale buying tips when it comes to gemstones, is to beware of imitations in plastic and glass. The synthetically manufactured moncler coats for sale are less expensive than naturally mined stones. When it comes to moncler down coats, since natural pearls are rare, most pearls used in jewelry are either cultured or imitation pearls. A moncler online shop's value is based on its size, and the quality of it's nacre coating, which imparts the sheen. When it comes to improving or maintaining an individual's health, there are various sac a main that can be followed to accomplish this objective. Diet and exercise are often a hot topic of Sac à main in the fitness market as individuals try to maintain a healthy image and improve their daily lives. One of the possibilities of sac a main pas cher that individuals ought to take is with the benefit of utilizing to protect their eyes from the damaging UV rays and improve the health of their eyes. When considering what these options are, it is best to compare your sac a main luxe that are available with this advantage of health. Traditionally most people look to moncler like mall outlets or specialized stores so as to meet their need. Whilst this is a choice which allows for individual interaction and the opportunity to try on various, it might not provide you with your best moncler jackets in design and price. In fact, the majority of consumers make use of moncler outlet to buy designer brands such as, more out of habit than as a conscious choice that represents their best buying tool. The reality is that several people know exactly what they are looking for such as moncler online when it comes to custom made colors and the conventional aspect of trying has become outdated. When you are looking for moncler coats, one of the best solutions is to break conventional practices and seek the opportunities which could be found online. The internet has become a leading aspect in purchasing sac louis vuitton from the corporate retailers, as a result of the economic indicator of supply and demand. The online environment features millions of stores with hundreds of sacs gucci usually attempting to market the exact same products or services. This oversaturation in the market has companies fighting to get hold of sac hermes, inspiring them to take measures which are usually not seen in the conventional purchasing environment.
moncler outlet are featured products of Moncler, and Moncler Jackets, moncler outlet are best sold and have a good reputation. Moncler not only could offer you the basic need , we also take personalized and diversification into consideration to make the cloths just for your personal need.
YT4M327CJS02QNU
Welcome to oakleys Hut to buy cool and cheap oakleys sunglasses
In this modern and fashionable society, people are pursuing for juicy couture handbags cool, unique, stylish and innovative. Whether it is juicy couture sale or fashion accessories all means a lot for modern society of today. Same is the case with trendy looking cheap juicy couture. When these are juicy couture tracksuits, the excitement just gets doubled. Most chic looking juicy couture are in fashion now. These are one of the favorite fashion accessories for men and women long time ago. If you have not yet tried juicy couture uk, it's time to own one and feel the difference it can make to your personality. These are just brilliant and fabulous juicy couture outlet. They are most iconic and can provide you with a new feeling and enhance confidence. The quality of juicy couture uk sale is just superior to what you have dreamt of. Today owning a new and trendy looking Louis Vuitton are not only meant for the wealthy people. These are now made luxurious and affordable Louis Vuitton Borse to reach out to every budget and range. You can just enjoy them by ordering louis vuitton prezzi online where you get the complete satisfaction and genuine quality at best possible rates. The finish, quality and designs you get from outlet borse louis vuitton are really astonishing and you will love them all. Different styles and designs of collezione hogan are now available to make your wrist beautiful. You can choose from the wide variety of hogan outlet by comparing lots of perfect and stunning pieces. These sito hogan would be nice investments for you in long term.
In this modern and fashionable society, people are pursuing for [url=http://www.saleburberryoutlet.co.uk]burberry[/url] cool, unique, stylish and innovative. Whether it is [url=http://www.saleburberryoutlet.co.uk]burberry uk[/url] or fashion accessories all means a lot for modern society of today. Same is the case with trendy looking [url=http://www.saleburberryoutlet.co.uk]burberry sale[/url]. When these are [url=http://www.afshoponline.org.uk]abercrombie[/url], the excitement just gets doubled. Most chic looking [url=http://www.afshoponline.org.uk]abercrombie and fitch uk[/url] are in fashion now. These are one of the favorite fashion accessories for men and women long time ago. If you have not yet tried [url=http://www.afshoponline.org.uk]abercrombie uk[/url], it's time to own one and feel the difference it can make to your personality. These are just brilliant and fabulous [url=http://www.afshoponline.org.uk]abercrombie & fitch sale[/url]. They are most iconic and can provide you with a new feeling and enhance confidence. The quality of [url=http://www.burberrycheapsale.com]burberry[/url] is just superior to what you have dreamt of. Today owning a new and trendy looking [url=http://www.burberrycheapsale.com]burberry outlet[/url] are not only meant for the wealthy people. These are now made luxurious and affordable [url=http://www.burberrycheapsale.com]cheap burberry outlet store[/url] to reach out to every budget and range. You can just enjoy them by ordering [url=http://www.burberryhandbag-sale.com]burberry outlet online store[/url] online where you get the complete satisfaction and genuine quality at best possible rates. The finish, quality and designs you get from [url=http://www.burberryhandbag-sale.com]cheap burberry for sale[/url] are really astonishing and you will love them all.
In this modern and fashionable society, people are pursuing for burberry cool, unique, stylish and innovative. Whether it is burberry uk or fashion accessories all means a lot for modern society of today. Same is the case with trendy looking burberry sale. When these are abercrombie, the excitement just gets doubled. Most chic looking abercrombie and fitch uk are in fashion now. These are one of the favorite fashion accessories for men and women long time ago. If you have not yet tried abercrombie uk, it's time to own one and feel the difference it can make to your personality. These are just brilliant and fabulous abercrombie & fitch sale. They are most iconic and can provide you with a new feeling and enhance confidence. The quality of burberry is just superior to what you have dreamt of. Today owning a new and trendy looking burberry outlet are not only meant for the wealthy people. These are now made luxurious and affordable cheap burberry outlet store to reach out to every budget and range. You can just enjoy them by ordering burberry outlet online store online where you get the complete satisfaction and genuine quality at best possible rates. The finish, quality and designs you get from cheap burberry for sale are really astonishing and you will love them all.
Hey
Coach Outlet Online Storeis a well
Coach Factory Store Online
known brandCoach Outlet all over the world.
From 1941Coach Factory Online when it was founded, Coach Outlet Store Onlineit has
Coach Factory Outlet Store
seized theCoach Purses Outlet Online hearts of thousands of Coach Bag and purse fans.
Coach Outletgained the reputation
for itsCoach Bags fashionable style and signature materials.Coach Outlet Store Online In the very beginning, Coach Factory Outletwas
Coach Factory Outlet Online
a familyCoach Factory Online owned business run by Cheap Coach Purses masters making Manhattan Coach Factory Outlet Online Today, it has lots and lots of coach outlet stores globally.
Coach Outlet Online outlet online websites,
you could find Coach Outlet Store purses and Coach Outlet Couponwallets at discounted prices and, you also get 80% off retail coach products.
Coach Outlet Store Onlinealthough sold at low price, are guaranteed to be genuine and not counterfeited and best quality.