Google?

Discussion in 'Hardware' started by PJ1966, Nov 2, 2003.

  1. PJ1966

    PJ1966 Private E-2

    Not sure if this is the right forum for this but hopefully some of you guys can help me out.

    I'm currently unable to access either google.co.uk or google.com. all i get is a page by cPanel saying this address if not currently configured.

    No-one on my network can access these either. However we can access google using an ip (http://216.239.53.99/) and i can use the search on this (only the default not images etc...)

    This being unable to search also applies to MSN search & yahoo.

    I figure i have a virus but cant find anything on my system, can anyone help me out?
     
  2. mr_flea

    mr_flea First Sergeant

    i'm guessing there's some sort of filter on the web sites. Is it a company or school network? If it is, it probably is a site blocker.
     
  3. PJ1966

    PJ1966 Private E-2

    nope, this is my home network, problems started a couple of weeks ago and i have searched all over the place and cant find anything about it...
     
  4. Vlad902

    Vlad902 Guest

  5. Kodo

    Kodo SNATCHSQUATCH

    check your hosts file and make sure there are not DNS entries in there for the sites in question.
     
  6. PJ1966

    PJ1966 Private E-2

    how do i check the hosts file?

    sorry but i dont know much about this stuff
     
  7. djlowe

    djlowe Private First Class

    Hi,

    On Windows 9x PCs the file is in C:\Windows and is called simply HOSTS.

    On Windows NT/2K/XP PCs it is in C:\WINNT\SYSTEM32\drivers\etc and is also called HOSTS.

    Note: I'm assuming in both cases above that Windows is installed on your C: drive.

    There may also be a sample HOSTS file called HOSTS.SAM: It will be located in the same subdirectory as the HOSTS file.

    Both are plain text files and can be edited with Notepad. If it exists, you can use the HOSTS.SAM as a reference to determine if anything has been added to the HOSTS file, as in its default form HOSTS.SAM only contains comments and an entry for the loopback address.

    Here's the HOSTS.SAM from my Windows 98SE PC:

    <snip>
    # Copyright (c) 1998 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP stack for Windows98
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    127.0.0.1 localhost
    <snip>

    I couldn't find a HOSTS.SAM on my Windows 2000 Professional PC, but the HOSTS file on it is basically the same as the HOSTS.SAM listing above, except that the reference to Windows 98 is missing. I probably just renamed HOSTS.SAM to HOSTS and don't remember doing it :).

    Hope this helps!

    Regards,

    dj
     
  8. Kodo

    Kodo SNATCHSQUATCH

    hosts.sam is just s SAMple file ;) they are the same thing :D
     
  9. PJ1966

    PJ1966 Private E-2

    I would just like to say thank you very much guys.

    I've found the host file and fixed the problem now, thank you very much for your help
     
  10. djlowe

    djlowe Private First Class

    Hi,

    Umm, actually, it appears that you are incorrect. They aren't the same thing.

    After reading your post, I was curious, because my understanding was that the HOSTS.SAM file was a sample HOSTS file, and in order for Windows to use a hosts files, it had to be called HOSTS.

    So, I did a test :).

    First I copied the HOSTS file to something that I knew Windows 2000 wouldn't read. Then I copied it to HOSTS.SAM, deleted HOSTS and restarted. The only entry in the HOSTS.SAM file was the loopback address. Then I tried a "ping localhost" and sure enough, it worked...

    Now, I was really interested :). So, I added an entry to the HOSTS.SAM file:

    127.0.0.1 xyzzy

    Then I issued a "ping xyzzy" and got an "Unknown host xyzzy" error, as I expected. But it still resolves local host?!? Maybe it's only reading it at boot? Restart, try it again. Still won't resolve xyzzy... but localhost works. Very odd!

    Renamed HOSTS.SAM to HOSTS, restarted, and I could ping both localhost and xyzzy... just for grins, I removed the xyzzy entry from HOSTS, saved it, and tried to ping xyzzy without restarting - Uknown host error. Put it back in, saved and tried again without restarting, it works.

    Then I deleted the HOSTS file and tried pinging localhost, it worked, but pinging xyzzy didn't.

    Then, just to see, I tried it on a Windows 98SE PC... it does the same thing as detailed above.

    So, it appears that:

    1. Windows 98SE and Windows 2000 don't use any other file name for a hosts file except for HOSTS (without an extension).

    2. Both of them read the HOSTS file before resolving names. Whether or not that's a function of PING.EXE I don't know.

    3. Both "know" what localhost is without having an entry in the HOSTS file. It's built into Windows networking somewhere, because when I pinged localhost by name without a HOSTS file, it still resolved to the loopback address, and listed the PCs' names.

    I don't have Windows NT, ME, or XP running, so I can't test them. I'd be interested to see what happens on those platforms, though.

    Regards,

    dj
     
  11. Starkman

    Starkman Private First Class

    BUT WHAT ABOUT ...

    What about the fact that my computer (Win98SE) doesn't even had a hosts file, only a hosts.sam?

    Starkman
     
  12. Kodo

    Kodo SNATCHSQUATCH

    acutally I am correct. If you remove the .SAM from it...it's the same file with only a different extension. The contents before modification are exactly the same. this is the file that you CAN use to edit. Trust me.. been doing this a long time.
     
  13. djlowe

    djlowe Private First Class

    Hi,

    Yes, you are correct in that regard. But, if you rename it then it isn't the same file :).

    I thought you meant by saying "they are the same thing" that Windows would use the HOSTS.SAM file... that isn't correct, at least not on Windows 98SE and Windows 2000 Professional.

    I've been doing this a long time, too (over 20 years now and counting), not that that makes me infallible. I don't automatically take anyone's word simply on the basis of their experience, preferring to ascertain the correctness of any information given for myself, and I expect that others would do the same for any advice that I offer.


    Regards,

    dj
     
    Last edited: Nov 4, 2003
  14. djlowe

    djlowe Private First Class

    Re: BUT WHAT ABOUT ...

    Hi,

    You can rename it to HOSTS, as Kodo stated. Or, you can copy HOSTS.SAM to HOSTS, whichever you prefer.

    Not having a HOSTS file isn't a big deal, really.


    Regards,

    dj
     
    Last edited: Nov 4, 2003
  15. Sai

    Sai Private E-2

    Sup guys

    Umm im new here and need help
    i have tha same problem as tha guy who started this thread
    but i dont know what a dns entry is and i need to know what he did to the host file
    ..yes i have found tha host file but i dont know what to do with it

    ..also i cant access angelfire (Page Cannot Be Displayed error)
    and im wondering if it is related... plz any help will be apreciated

    o and i dont know which one to edit http://el.obel.tv/images/ect.bmp(its a bmp 56kers beware)
     
  16. djlowe

    djlowe Private First Class

    Re: Sup guys

    Hi,

    One option is just to rename it to something else if you think that a bad entry in the hosts file is causing problems. I usually just tack an extension onto a file that I want to temporarily "move" out the sight of a program or the OS. I use my initials, because they're easy for me to remember :).

    To do this: In Explorer, open up the subdirectory where the hosts file resides. This will be C:\Windows for Windows 9x PCs, and will be C:\WINNT\system32\drivers\etc for Windows NT/2K/XP. Scroll down the file listing until you see the hosts file, it is called simply HOSTS. Right click, select rename.

    (Trick: Windows tries to be helpful by automatically highlighting the file name. The first non-navigation key you press will erase the original name. So, I got into the habit of always tapping the Home key to move the cursor to the beginning of the name, which also removes the highlight, then pressing the End key to move the cursor back to the end of the name.)

    Add something to the end of the filename; your initials will suffice, and it isn't likely that a file with the name "HOSTS<your initials>" will exist in the directory. Press Enter once done and close Explorer. Restart the computer and see if you can duplicate the problem.

    If that resolves the problem, and you don't have any other side-effects from renaming it, you can just leave it the way that it is if you wish.

    If this corrects your problems, but you do need the hosts file for some reason, then you'll need to edit it and remove any suspicious entries from it... and what constitutes a suspicious entry is the subject for another lengthy post :). Try renaming the hosts file first, testing that and post the results.

    Regards,

    dj
     
    Last edited: Nov 4, 2003
  17. Sai

    Sai Private E-2

    thanks but im sorry to say this did not fix my problems...
    but heres my comp specs incase you guys need more info

    Computer:
    Operating System Microsoft Windows XP Professional
    OS Service Pack Service Pack 1
    Internet Explorer 6.0.2800.1106 (IE 6.0 SP1)
    Computer Name SAI
    User Name Sai
    Logon Domain SAI

    Motherboard:
    CPU Type AMD Duron XP, 1300 MHz (6.5 x 200)
    Motherboard Name Chaintech 7NIL1 (3 PCI, 1 AGP, 3 DIMM, Audio, LAN)
    Motherboard Chipset nVIDIA nForce2 SPP
    System Memory 512 MB (PC2100 DDR SDRAM)
    BIOS Type Award (03/24/03)
    Communication Port Communications Port (COM1)
    Communication Port Communications Port (COM2)
    Communication Port Printer Port (LPT1)

    Display:
    Video Adapter NVIDIA GeForce4 Ti 4200 with AGP8X (64 MB)
    3D Accelerator nVIDIA GeForce4 Ti 4200 with AGP8X
    Monitor Mitsubishi Diamond Scan 15VX (SD58xx) (714703015190)

    Multimedia:
    Audio Adapter nVIDIA MCP2 - Audio Codec Interface

    Storage:
    Floppy Drive Floppy disk drive
    Disk Drive ST330621A (30 GB, 5400 RPM, Ultra-ATA/100)
    Optical Drive HP CD-Writer+ 8100 (4x/2x/24x CD-RW)

    Partitions:
    C: (NTFS) 28615 MB (3542 MB free)

    Input:
    Keyboard HID Keyboard Device
    Mouse Microsoft USB Wheel Mouse Optical
     
  18. djlowe

    djlowe Private First Class

    Hi,

    OK, what are the site names that you are trying to access, please, and the errors that you are getting?

    Regards,

    dj
     
  19. PJ1966

    PJ1966 Private E-2

    Re: Sup guys

    Ok, this is what i did to fix the problem i had with the search engines.

    Virus scanned to make sure i didnt have Qhosts, then did this to the hosts file (which had been altered so i most of had Qhosts at 1 point, but didnt have it when i scanned).

    i got this from the link given about the Qhosts file, and did it and it fixed the problem:

    Windows XP
    Click Start, and then click Search.
    Click All files and folders.
    In the "All or part of the file name" box, type:

    hosts


    Verify that "Look in" is set to "Local Hard Drives" or to (C:).
    Click "More advanced options."
    Check "Search system folders."
    Check "Search subfolders."
    Click Search.
    Click Find Now or Search Now.
    For each one that you find, right-click it, and then click "Open With."
    Deselect the "Always use this program to open this program" check box.
    Scroll through the list of programs and double-click Notepad.
    Look for the following lines and delete them, if found:

    <IP address(es) specified in the batch file> elite
    <IP address(es) specified in the batch file> www.google.akadns.net
    <IP address(es) specified in the batch file> www.google.com
    <IP address(es) specified in the batch file> google.com
    <IP address(es) specified in the batch file> www.altavista.com
    <IP address(es) specified in the batch file> altavista.com
    <IP address(es) specified in the batch file> search.yahoo.com
    <IP address(es) specified in the batch file> uk.search.yahoo.com
    <IP address(es) specified in the batch file> ca.search.yahoo.com
    <IP address(es) specified in the batch file> jp.search.yahoo.com
    <IP address(es) specified in the batch file> au.search.yahoo.com
    <IP address(es) specified in the batch file> de.search.yahoo.com
    <IP address(es) specified in the batch file> search.yahoo.co.jp
    <IP address(es) specified in the batch file> www.lycos.de
    <IP address(es) specified in the batch file> www.lycos.ca
    <IP address(es) specified in the batch file> www.lycos.jp
    <IP address(es) specified in the batch file> www.lycos.co.jp
    <IP address(es) specified in the batch file> alltheweb.com
    <IP address(es) specified in the batch file> web.ask.com
    <IP address(es) specified in the batch file> ask.com
    <IP address(es) specified in the batch file> www.ask.com
    <IP address(es) specified in the batch file> www.teoma.com
    <IP address(es) specified in the batch file> search.aol.com
    <IP address(es) specified in the batch file> www.looksmart.com
    <IP address(es) specified in the batch file> auto.search.msn.com
    <IP address(es) specified in the batch file> search.msn.com
    <IP address(es) specified in the batch file> ca.search.msn.com
    <IP address(es) specified in the batch file> fr.ca.search.msn.com
    <IP address(es) specified in the batch file> search.fr.msn.be
    <IP address(es) specified in the batch file> search.fr.msn.ch


    Close Notepad and save your changes when prompted.


    Hope this helps
     
  20. Sai

    Sai Private E-2

    thanks alot that fixed my searching problems...
    but i have one more problem
    i still cant access angelfire (cannot find server - The page cannot be displayed)
    problem is anyone else having problems accessing angelfire?
     
  21. Vlad902

    Vlad902 Guest

    Re: Re: Sup guys



    Yeah I've seen alot of people get it, hope it helped.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds