Freelancer.com

Go Back   Warrior Forum - The #1 Internet Marketing Forum & Marketplace > Warrior Support Forums > Programming
Register Blogs Social Groups Advertise with usHelp Desk

Reply
LinkBack Thread Tools
Unread 28th May 2011, 11:35 PM   #1
Senior Warrior Member
 
Join Date: 2009
Posts: 1,861
Thanks: 250
Thanked 27 Times in 27 Posts
Default Hosts file? What is this? {c:\windows\system32\drivers\etc\hosts}

What is that Hosts file, found on windows XP,

found here
c:\windows\system32\drivers\etc\hosts

eg:
38.25.63.10 x.acme.com # x client host

what does this file mean, and what does it do?

what can be done modifying it?

I Have to say a Massive...THANK YOU to every Warrior who has helped me, and thanks to every warrior who helps me in the future...
entry is offline   Reply With Quote
Unread 28th May 2011, 11:41 PM   #2
Active Warrior
War Room Member
 
Cigar2010's Avatar
 
Join Date: 2011
Posts: 85
Thanks: 20
Thanked 2 Times in 2 Posts
Default Re: Hosts file? What is this? {c:\windows\system32\drivers\etc\hosts}

It is like a local DNS ,usually you type x.acme.com in broswer,it go to some ip address ,but with that record added ,it go to 38.25.63.10 instead of remote dns record.
I don't know am I right?

Cigar2010 is offline   Reply With Quote
Unread 29th May 2011, 12:18 AM   #3
This Space For Rent
War Room Member
 
Bradley J Anderson's Avatar
 
Join Date: 2011
Location: Cincinnati, OH USA
Posts: 993
Thanks: 384
Thanked 330 Times in 225 Posts
Default Re: Hosts file? What is this? {c:\windows\system32\drivers\etc\hosts}

Quote:
Originally Posted by entry View Post
What is that Hosts file, found on windows XP,

what can be done modifying it?
It maps host names to IP addresses so your computer doesn't have to ask a DNS server to do it, which allows you to access the site faster.

For example, the host name for Google is www .google. com, but its IP address is 74.125.91.105 Typing in either address will take you to Google's site, but the www address first has to be translated into the IP address. If you type in the IP address directly, however, your computer won't have to look it up.

The Hosts file tells your computer what the name is in numbers so the computer can go straight to it. If the IP address is found in your Hosts file, the computer will stop looking immediately and go directly to that site, but if it isn't it will ask a DNS computer (domain name server) for the information, which slows things down a bit. But, since the search ends once a match is found, it also gives you a way to block sites you may not like, too.

If you need to find the IP for a particular site:

Start Menu > All Programs > Accessories > Command prompt > enter "ping" followed by the URL (e.g. ping www .google. com) > [Enter].

Your computer will ping (i.e., send a request to the URL) and will retrieve the URL's IP address.

Bradley J Anderson is offline   Reply With Quote
Unread 29th May 2011, 12:25 AM   #4
Software Developer
War Room Member
 
Matthew Iannotti's Avatar
 
Join Date: 2009
Location: Queens, NY
Posts: 1,184
Thanks: 437
Thanked 376 Times in 147 Posts
Default Re: Hosts file? What is this? {c:\windows\system32\drivers\etc\hosts}

Its the file people use to add IP's or URL's to so they can use software they didn't purchase as that will block the activation.

So, if you have a software product make sure your programmer forces the app to fail activation if some tries using the host file to beat your system.

Reputation Crusher - #1 Software for Reputation Management.
Power Leads Pro - Worlds Most Powerful Lead Generation Software.
Learn From Me
Matthew Iannotti is offline   Reply With Quote
Unread 29th May 2011, 05:40 AM   #5
HC STUDIOS
War Room Member
 
Join Date: 2005
Location: India
Posts: 75
Thanks: 88
Thanked 5 Times in 5 Posts
Default Re: Hosts file? What is this? {c:\windows\system32\drivers\etc\hosts}

Hi,

38.25.63.10 ==> IP Address
x.acme.com == > Hostname

Open the file in text editor and add the below code and try http://localhost/ in your browser. You will understand what is the purpose of it.

127.0.0.1 Google

what the above entry will do is it maps ip address to hostnames.

pdhana is offline   Reply With Quote
Unread 30th May 2011, 03:40 PM   #6
HyperActive Warrior
War Room Member
 
Join Date: 2011
Posts: 249
Thanks: 37
Thanked 20 Times in 20 Posts
Default Re: Hosts file? What is this? {c:\windows\system32\drivers\etc\hosts}

All good answers. You can get a custom hosts file to block ads and other dodgy sites. Also if you were using it for faster DNS lookups and you want faster you could use DNSBench instead.

Vaoser Link Ninja Software
DHV Delivery Systems FAILING at online dating???
TG12 is offline   Reply With Quote
Unread 30th May 2011, 05:54 PM   #7
Fiverr GURU
War Room Member
 
Join Date: 2010
Posts: 104
Thanks: 17
Thanked 16 Times in 16 Posts
Default Re: Hosts file? What is this? {c:\windows\system32\drivers\etc\hosts}

Without using big words, the hosts file is a text file that you can use to block suspicious websites,

e.g.: If you block Adsense's ad server there, you won't see any Adsense ad in any of the websites you visit.

You can block adult/illegal websites as a form of parental control (Although I wouldn't recommend that as there are tons of free/paid software that are far more effective than simple manual website blocking).
Bryan99 is offline   Reply With Quote
Reply

  Warrior Forum - The #1 Internet Marketing Forum & Marketplace > Warrior Support Forums > Programming

Bookmarks

Tags
file, hosts

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:15 PM.