Trouble with hosts file - am I doing this right?

P

Peter Hucker

My hosts file contains only (after the instructions that come with it):

127.0.0.1 localhost
64.246.46.90 127.0.0.1

Where 64.246.46.90 is a server I never want to connect to (it's actually an advertising server for popups or something, which is unreliable, so I keep getting dialogs saying couldn't connect)

But the second line in hosts is not doing anything, as shown in the tests below:

---------------

C:\>ping www.impressionz.co.uk

Pinging www.impressionz.co.uk [64.246.46.90] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 64.246.46.90:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms


--
*****TWO BABY CONURES***** 15 parrots and increasing http://www.petersparrots.com
93 silly video clips http://www.insanevideoclips.com
1259 digital photos http://www.petersphotos.com
Served from a pentawatercooled dual silent Athlon 2.8 with terabyte raid

"Computers in the future may weigh no more than 1.5 tons." -- Popular Mechanics, 1949
 
G

Gerry

My advice would be to delete the entry with the
64.246.x.x. You don't need it in your hosts file. The
127.0.0.1 is a loopback address. All that does is test
the connectivity of tcp/ip and your network card to ensure
you network connectivity is established and working
properly. Leave that entry in the hosts file.



-----Original Message-----
My hosts file contains only (after the instructions that come with it):

127.0.0.1 localhost
64.246.46.90 127.0.0.1

Where 64.246.46.90 is a server I never want to connect to
(it's actually an advertising server for popups or
something, which is unreliable, so I keep getting dialogs
saying couldn't connect)
But the second line in hosts is not doing anything, as shown in the tests below:

---------------

C:\>ping www.impressionz.co.uk

Pinging www.impressionz.co.uk [64.246.46.90] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 64.246.46.90:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms


--
*****TWO BABY CONURES***** 15 parrots and increasing http://www.petersparrots.com
93 silly video clips http://www.insanevideoclips.com
1259 digital photos http://www.petersphotos.com
Served from a pentawatercooled dual silent Athlon 2.8 with terabyte raid

"Computers in the future may weigh no more than 1.5
tons." -- Popular Mechanics, 1949
 
T

Tom Porterfield

Peter said:
My hosts file contains only (after the instructions that come with it):

127.0.0.1 localhost
64.246.46.90 127.0.0.1

Where 64.246.46.90 is a server I never want to connect to (it's actually
an advertising server for popups or something, which is unreliable, so I
keep getting dialogs saying couldn't connect)

But the second line in hosts is not doing anything, as shown in the
tests below:

---------------

C:\>ping www.impressionz.co.uk

Pinging www.impressionz.co.uk [64.246.46.90] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 64.246.46.90:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

Hosts translates string to IP address, not IP to IP. So in hosts you
would need to place entries such as:

127.0.0.1 ns1.hostupa.com
127.0.0.1 www.impressionz.co.uk
--
Tom Porterfield
MS-MVP MCE
http://support.telop.org

Please post all follow-ups to the newsgroup only.
 
S

Sooner Al

In addition, you may be interested in this hosts file from the MVP.org site. I use it on both of my
XP boxes at home...

http://mvps.org/winhelp2002/hosts.htm

--
Al Jarvi (MS-MVP Windows Networking)

Please post *ALL* questions and replies to the news group for the mutual benefit of all of us...
The MS-MVP Program - http://mvp.support.microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights...

Tom Porterfield said:
Peter said:
My hosts file contains only (after the instructions that come with it):

127.0.0.1 localhost
64.246.46.90 127.0.0.1

Where 64.246.46.90 is a server I never want to connect to (it's actually an advertising server
for popups or something, which is unreliable, so I keep getting dialogs saying couldn't connect)

But the second line in hosts is not doing anything, as shown in the tests below:

---------------

C:\>ping www.impressionz.co.uk

Pinging www.impressionz.co.uk [64.246.46.90] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 64.246.46.90:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

Hosts translates string to IP address, not IP to IP. So in hosts you would need to place entries
such as:

127.0.0.1 ns1.hostupa.com
127.0.0.1 www.impressionz.co.uk
--
Tom Porterfield
MS-MVP MCE
http://support.telop.org

Please post all follow-ups to the newsgroup only.
 
P

Peter Hucker

Hosts translates string to IP address, not IP to IP. So in hosts you
would need to place entries such as:

127.0.0.1 ns1.hostupa.com
127.0.0.1 www.impressionz.co.uk

DOH! I must have been half asleep and not read the instructions!


--
*****TWO BABY CONURES***** 15 parrots and increasing http://www.petersparrots.com
93 silly video clips http://www.insanevideoclips.com
1259 digital photos http://www.petersphotos.com
Served from a pentawatercooled dual silent Athlon 2.8 with terabyte raid

The best parliament is a well-hung one?
 
P

Peter Hucker

In addition, you may be interested in this hosts file from the MVP.org site. I use it on both of my
XP boxes at home...

http://mvps.org/winhelp2002/hosts.htm

That is a LOT of addresses! Thanks!


--
*****TWO BABY CONURES***** 15 parrots and increasing http://www.petersparrots.com
93 silly video clips http://www.insanevideoclips.com
1259 digital photos http://www.petersphotos.com
Served from a pentawatercooled dual silent Athlon 2.8 with terabyte raid

A lawyer is an expert on justice in much the same way your average hooker is an expert on love.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top