Tag Archives: resolution

The Hosts File and what it can do for you


When using the Internet most people connect to web sites, ftp servers or other Internet servers by connecting to a domain name, as in www.xmodx.com. Internet applications, though, do not communicate via domain names, but rather using IP addresses, such as Therefore when you type a domain name in your program that you wish to connect to, your application must first convert it to an IP address that it will use to connect to. The way these hostnames are resolved to their mapped IP address is called Domain Name Resolution. On almost all operating systems whether they be Apple, Linux, Unix, Netware, or Windows the majority of resolutions from domain names to IP addresses are done through a procedure called DNS.

What is DNS

DNS stands for Domain Name System and is the standard domain name resolution service used on the Internet. Whenever a device connects to another device on the Internet it needs to connect to it via the IP address of the remote device. In order to get that IP address, DNS is used to resolve that domain name to its mapped IP address. This is done by the device querying its configured DNS Servers and asking that server what the IP address is for that particular domain name. The DNS server will then query other servers on the Internet that know the correct information for that domain name, and then return to the device the IP address. The device will then open a connection directly to the IP address and perform the desired operation.

Enter the Hosts File

There is another way to resolve domain names without using the Domain Name System, and that is by using your HOSTS file. Almost every operating system that communicates via TCP/IP, the standard of communication on the Internet, has a file called the HOSTS file. This file allows you to create mappings between domain names and IP addresses.

The HOSTS file is a text file that contains IP addresses separated by at least once space and then a domain name, with each entry on its own line. For example, imaging that we wanted to make it so that if you typed in www.google.com, instead of going to Google we would go to www.yahoo.com. In order to do this you would need to find out one of the IP addresses of Yahoo and map www.google.com to that IP address.

One of the IP addresses for Yahoo is  If we wanted to map Google to that IP address we would add an entry into our HOSTS file as follows:  www.google.com

NOTE: When inputting entries in the hosts file there must be at least one space between the IP address and the domain name. You should not use any web notations such as \, /, or http://. You can disable a specific entry by putting a # sign in front of it.

You may be wondering why this would work as we said previously that when you need to resolve a domain name to an IP address the device will use its configured DNS servers. Normally this is true, but on most operating system the default configuration is that any mappings contained in the Hosts file overrides any information that would be retrieved from a DNS server. In fact, if there is a mapping for a domain name in a hosts file, then your computer will not even bother querying the DNS servers that are authoritative for that domain, but instead read the IP address directly from the HOSTS file. It is also important to note that when you add entries to your HOSTS file they automatically start working. There is no need to reboot or enter another command to start using the entries in the HOSTS file.

Please note that there are ways to change the order that your computer performs Domain Name Resolution. If there are problems with HOSTS file not working you may want to read this article that goes into much greater detail on Domain Name Resolution on various operating systems:

Understanding Domain Name Resolution

For reference the HOSTS file is located in the following locations for the listed operating systems:


In Windows machines you may not already have a hosts file. If this is the case there will most likely be a sample hosts file called hosts.sam that you can rename to hosts and use as you wish. You can edit this file either from the cmd prompt using Edit or Notepad on windows or VI on Unix/Linux. Really any text editor can open and modify the HOSTS file. It is also recommended that if you use this file that you make periodic backups of it by copying it to another name. Some people recommend that you make this file read only so that it will be harder to modify by a malicious program, which there are Hijackers that are known to do this, but there are Hijackers such as CoolWebSearch that add entries to the file regardless of whether or not its read only. Therefore you should not think that having your HOSTS as read only will make it safe from modification.

Why would I want to use a HOSTS file

There are a variety reasons as to why you would want to use a HOSTS file and we will discuss a few examples of them so you can see the versatility of the little file called the HOSTS file.

Network Testing – I manage a large Internet Data center and many times we need to set up test machines or set up development servers for our customers applications. When connecting to these development or test machines, you can use the HOSTS file to test these machines as if they were the real thing and not a development server. As an example, lets say that you had a domain name for a development computer called development.mydomain.tld. When testing this server you want to make sure it operates correctly if people reference it as the true web server domain name, www.mydomain.tld. Since if you change www.mydomain.com in the DNS Server to point to the development server everyone on the Internet would connect to that server, instead of the real production server. This is where the HOSTS file comes in. You just need to add an entry into your HOSTS file that maps www.mydomain.com to the IP address of the development server on the computers that you will be testing with, so that the change is local to the testing machines and not the entire Internet. Now when you connect to www.mydomain.com from your computer with the modified HOSTS file you are really connecting to the development machine, but it appears to the applications that you are using that you are connecting to www.mydomain.com.

Potentially Increase Browsing Speed – By adding IP address mappings to sites you use a lot into your HOSTS file you can potentially increase the speed of your browsing. This is because your computer no longer has to ask a DNS server for the IP address and wait to receive it’s response, but instead can quickly query a local file. Keep in mind that this method is not advised as there is no guarantee that the IP address you have for that domain name will always stay the same. Therefore if the web site owner decides to change their IP address you will no longer be able to connect.

Block Spyware/Ad Networks – This reason is becoming a very popular reason to use the HOSTS file. By adding large lists of known ad network and Spyware sites into your hosts file and mapping the domain names to the, which is an IP address that always points back to your own machine, you will block these sites from being able to be reached. This has two benefits; one being that it can make your browsing speed up as you no longer have to wait while you download ads from ad network sites and because your browsing will be more secure as you will not be able to reach known malicious sites.

NOTE: It is important to note that there have been complaints of system slowdowns when using a large hosts file. This is usually fixed by turning off and disabling the DNS Client in your Services control panel under Administrative Tools. The DNS client caches previous DNS requests in memory to supposedly speed this process up, but it also reads the entire HOSTS file into that cache as well which can cause a slowdown. This service is unnecessary and can be disabled.

Utilities for your HOSTS file

If you do not plan on modifying your HOSTS file much and plan on using it occasionally for testing purposes, then the basic text editors like VI, Notepad, and Edit are more than adequate for managing your HOSTS file. 


As you can see the HOSTS file is a powerful tool if you understand how to use it. You should now know how to use the HOSTS file to manipulate Domain Name Resolution to suit your needs. It is also important that you use its ability to block malicious programs as discussed above to make your computing environment more secure

The Popular Axxo Secrets on how to RIP DVD

Ripping a DVD to xvid or divx avi is really quite easy, if you have the right tools. You’ll first need to download DVD decrypter and auto gordian knot (autogk). DVD decrypter allows you to rip the raw DVD video and audio data off of your disk drive, decrypt the CSS protection, and finally remove any other protection schemes, such as Macrovision. AutoGK is a package of codecs and a GUI interface that will take the raw DVD data through an AV processing pipeline to produce a single windows video file.

Step 1: RIP

Put in a DVD and launch DVD Decrypter. Choose IFO (Information File) mode:
( Figure 1 )

Now make sure you’ve selected a destination for your files:
( Figure 2 )

Now you need to find which program chain to rip (PGC). Pick the one that’s the longest, or in the case of a TV dvd, the episode you want to rip:
( Figure 3 )

Everything’s set up. Just click the green arrow and wait about twenty minutes, after which you will have a set of files which look like this:

VTS_01_PGC_07 – Stream Information.txt

The whole ripping process shouldn’t take more than 5 minutes.

Step 2: ENCODE

Launch AutoGK and select the first .vob that you just ripped as an input file, and set an output file name:
( Figure 4 )

Now you need to select audio (choose the first one) and subtitles, if any:
( Figure 5 )

If you’re ripping a TV, set the preferred size to 350MB, if you’re ripping a movie, choose either 700MB or 1400MB, depending on your preference:
( Figure 7 )

Finally, click on advanced settings and choose MP3 VBR 128kbs:
( Figure 8 )

Then click “add job” and “start.” After all this, you’ll have a log that looks like the following:

[04/18/2008 9:07:27 AM] AutoGK 2.26
[04/18/2008 9:07:27 AM] OS: WinXP (5.1.2600).2
[04/18/2008 9:07:27 AM] Job started.
[04/18/2008 9:07:27 AM] Input file: J:\VIDEO_TS\VTS_01_0.IFO
[04/18/2008 9:07:27 AM] Output file: J:\Output.avi
[04/18/2008 9:07:27 AM] Output codec: XviD
[04/18/2008 9:07:27 AM] Audio 1: Unknown language AC3 2ch
[04/18/2008 9:07:27 AM] Subtitles: none
[04/18/2008 9:07:27 AM] Format: .AVI
[04/18/2008 9:07:27 AM] Target size: 350Mb
[04/18/2008 9:07:27 AM] Custom audio settings: VBR MP3 with average bitrate: 128Kbps
[04/18/2008 9:07:27 AM] Started encoding.
[04/18/2008 9:07:27 AM] Demuxing and indexing.
[04/18/2008 9:08:30 AM] Processing file: J:\VIDEO_TS\VTS_01_PGC_04_1.VOB
[04/18/2008 9:08:30 AM] Source resolution: 720×480
[04/18/2008 9:08:30 AM] Found NTSC source.
[04/18/2008 9:08:30 AM] Source aspect ratio: 4:3
[04/18/2008 9:08:30 AM] Analyzing source.
[04/18/2008 10:28:40 AM] Source is considered to be hybrid (mostly NTSC).
[04/18/2008 10:28:40 AM] Looking for optimal hybrid thresholds.
[04/18/2008 10:28:45 AM] Found threshold of: 1.38
[04/18/2008 10:28:45 AM] Output will contain 38690 frames
[04/18/2008 10:28:45 AM] Decoding audio.
[04/18/2008 10:29:16 AM] Normalizing audio.
[04/18/2008 10:29:28 AM] Encoding audio.
[04/18/2008 10:31:57 AM] Audio1 size: 17,708,400 bytes (16.89 Mb)
[04/18/2008 10:31:57 AM] Overhead: 1,547,648 bytes (1.48 Mb)
[04/18/2008 10:31:57 AM] Video size: 347,745,552 bytes (331.64 Mb)
[04/18/2008 10:31:57 AM] Running compressibility test.
[04/18/2008 10:35:01 AM] Duration was: 3 minutes 4 seconds
[04/18/2008 10:35:01 AM] Speed was: 12.61 fps.
[04/18/2008 10:35:01 AM] Compressibility percentage is: 55.96
[04/18/2008 10:35:01 AM] Chosen resolution is: 560×416 ( AR: 1.35 )
[04/18/2008 10:35:01 AM] Predicted comptest value is: 73.79%
[04/18/2008 10:35:01 AM] Running first pass.
[04/18/2008 11:02:56 AM] Duration was: 27 minutes 55 seconds
[04/18/2008 11:02:56 AM] Speed was: 23.10 fps.
[04/18/2008 11:02:56 AM] Expected quality of first pass size: 76.04%
[04/18/2008 11:02:56 AM] Running second pass.
[04/18/2008 11:42:42 AM] Duration was: 39 minutes 46 seconds
[04/18/2008 11:42:43 AM] Speed was: 16.22 fps.
[04/18/2008 11:42:43 AM] Job finished. Total time: 2 hours 35 minutes 15 seconds

Step 3: WATCH

You’re done. Delete all the non .avi files and enjoy the fruits of your ripping.

Figure 01

Figure 02

Figure 03

Figure 04

Figure 05

Figure 07

Figure 08