Few websites do not open even with fast internet speed

Ok. I switched off my system and router. Then turned on both.
Please find attached hosts file - Before and After Reboot.
Hope this helps.
BOTH ARE INVALID !!

Host MUST have at least one line
# localhost name resolution
127.0.0.1 localhost

The 127.0.0.1 must start in Column 1 and have a TAB or SPACE between it and localhost
 
BOTH ARE INVALID !!

Host MUST have at least one line
# localhost name resolution
127.0.0.1 localhost

The 127.0.0.1 must start in Column 1 and have a TAB or SPACE between it and localhost
Sorry... did not understand? Did I do something wrong? Should I do it again?
Switch off both system and router >> Turn them on again >> Then open the host file?
 
@jobeard Yup, I think I get that. What I was trying was to get the IP address (either by ping which uses DNS) or a DNS lookup which produces the IP address.

My expectation was that I could then put the IP address into the browser andd access the website. So in #24 above, I checked linkedin, found the IP address, then tried to reach it through the browser using the IP address. While Linkedin worked in ping, I get the error listed above when I use the IP address in the browser.
 
Switch off both system and router >> Turn them on again
Switch off system, router AND modem. Let them rest a bit. Then start modem & wait for green. Then start router - let it go green. All green - turn on system. This kind of cycling can give a reset if needed.

Host file was to learn if something nasty was doing bad things. It is fine.
 
I dont have a seperate modem. I think it is in-built in my PC.

So I will turn on the router- let it go green and then turn on the system.
Hope this is ok
 
Switch off both system and router >> Turn them on again >> Then open the host file?
Power off BOTH.
Edit the c:\windows\system32\drivers\etc\hosts file​
(it should be R/O and that needs to be R/W for edit to work. Notice, hosts has no file extension, just a naked file name).​
make one line begin 127.0.0.1 localhost and save.​

Now restart the Modem+Router and let it stabilize.
Then boot the system, get a command prompt and ping 8.8.8.8
 
I have a wire which comes into my house for internet. This internet wire goes into the router D-Link.
So, I restarted both my laptop and D-Link device >> Took screenshot of hosts file>> Connected with Wifi internet >> Took screenshot of hosts file >> Opened google chrome>> Opened random website >> Then at cmd ping 8.8.8.8. Screenshot attached.

Sorry, I did not understand the process of adding of 127.0.0.1 line.
Can you please tell, where exactly to add as per the notepad file attached.
 

Attachments

  • 3.JPG
    3.JPG
    39.9 KB · Views: 2
  • hostsAfterConnectingToInternet.txt
    824 bytes · Views: 1
  • hostsBeforeConnectingToInternet.txt
    824 bytes · Views: 0
Hii... I got my internet service reset from my ISP.
Attaching the hosts file. I captured the file after the reset. Router restarted. System restarted.

Although no change in the behavior of the websites. :(
 

Attachments

  • hostsAfterReset.txt
    824 bytes · Views: 1
In post #7 above, you said your router was a D-link DIR 605L. Here is the datasheet: http://www.dlinkworks.com/datasheets/Wireless-N/DIR-605L_ds.pdf

When reading it, please note that it requires a wired connection through the WAN (yellow) RJ-45 port at the back of the router. Please confirm this is your device and that it is connected to the internet via the WAN (Wide Area Network).

Please note that this wired connection using the WAN port and being connected to the internet through a wired connection requires a modem which is necessary to give you a well secured installation - giving you NAT protection (https://www.webopedia.com/TERM/N/NAT.html).

The D-link DIR 605L dates back to 2012 and is no longer supported by D-link, but is reasonably well secured for WiFi if you have implemented WPA2 (https://www.webopedia.com/TERM/W/WPA2.html) and have this Local Network protected behind the NAT firewall.
 
@Cycloid Torus .
I have the same arrangement as per your post and links sent earlier.
We have a wired connection, that can be used to run internet on a PC / Laptop.
We use the router to enable WiFi at Home. The wire goes into the router. WiFi is created. Then we can run the internet on any device (PC/Laptop/Mobile/tablet etc). To connect to the WiFi, there is a username and password required. Thus making it secure and not to be used by public

Please let me know, if I need to change anything in the above
 
Btw: the hosts file is INPUT to the DNS CLIENT and being r/o, should not be modified during a session.

Power off the router (which kills the WiFi)

edit the by attrib -r hosts and notepad hosts, save as hosts ( not hosts.txt ) which should replace the prior version, set R/O via attrib +r hosts

copy these two lines as is and paste into the
command window (be sure to runas /user:administrator cmd )
  1. ipconfig /flushdns
  2. net stop "dns client"

now restart the router
 
@jobeard ... sorry but can you tell in more detail?

R/o - stands for Rule Out --- Hope I am correct??
As per my understanding, the below steps should be carried out
Step0: Turn off the router
Step1 : Open the hosts file in notepad format
Step2 : Where to write attrib -r hosts ? attrib +r hosts??
Step3 : Save the file as hosts (not hosts.txt ) which should replace the prior version
Step4 : Right-click on cmd and select run as administrator
Step5 : Now, when cmd opens it is in directory >> " C:\Users\Maddy>".
Do I paste these 2 lines here "ipconfig /flushdns" ;"net stop "dns client"" at this command prompt??
I understand, these commands should be executed 1 by 1.
E.g. C:\Users\Maddy>ipconfig /flushdns >> Press Enter
C:\Users\Maddy>net stop "dns client" >> Press Enter

Step6 : Restart the router.

Can you please clear the above queries.
Thanks
 
I'll try, jobeard can correct.

r/o - means "read only" - the attribute for this file is set to prevent changing it - in order to adjust the files named 'hosts', you need to set the attribute to allow other actions ( I.e., 'not read only')

'Step 1 Open the hosts file in notepad format ' - actually, you have to open the command prompt ('cmd' in search box) and using 'run as administrator', first you have to go to the folder where 'hosts' is located with the command 'cd c:/windows/system32/drivers/etc' ...then you set the file attribute to 'not read only' by typing in the command 'attrib -r hosts' ...then you start a program called 'notepad' and open the file called 'hosts'... then you add the last line '127.0.0.1 localhost'.... then you save the file in c:/windows/system32/drivers/etc with the name of 'hosts' without any extension (I.e., 'hosts' not 'hosts.txt') and close notepad program... then you change the attribute of 'hosts' back to read only ('attrib +r hosts')

You are now at step 4, at the command prompt 'c:/windows/system32/drivers/etc>' and you can now issue some commands... first, "ipconfig /flushdns" (hit Enter to run this).....
then, "net stop "dns client" " (hit Enter to run this).....

You can then leave the command prompt by typing 'exit' (hit Enter to run this).....

Turn off system.
Restart router.
Restart system.

It seemed so much easier back in PC DOS 1.1....

By the way, who is your ISP? Do you have cable or DSL?
 
Issues TBD:

  1. verify firmware is the latest version
  2. set new admin pwd
  3. configure WiFi
  4. set new WiFi pwd
  5. determine WHO owns the modem that provides the ISP connection
  6. AND what make + model is it
 
Step1 - Open cmd as admin ---- Done
Step2 - At c:/windows/system32/drivers/etc ; type 'attrib -r hosts' -- Done. Screenshot attached. No confirmation message is shown on cmd. Hope this is ok

Step3 : Open Notepad -- How to open notepad.
Option1 - type notepad at cmd prompt. Then open the hosts file
Option2 - Open c drive. Browse to hosts file. rt click and open with notepad
(Both options are ok to follow??)

Step4 : add the last line '127.0.0.1 localhost' --- Do I add a # before writing this line? Please refer screenshot. Hope this is ok?

Step5 : Save the hosts file without .txt --- I am not able to do this
- When I save the notepad file, it shows file type as ".txt". I change the file type to "All files". Then I click save. -- I get an error. Please refer screenshot

Also, wanted to check, currently my router has below settings
Primary DNS : 1.1.1.1
Secondary DNS: 1.0.0.1
Hope this is ok.
 

Attachments

  • 1.JPG
    1.JPG
    15 KB · Views: 1
  • 2.txt
    847 bytes · Views: 1
  • 3.JPG
    3.JPG
    62.1 KB · Views: 1
@jobeard

  1. verify firmware is the latest version - Verified
  2. set new admin pwd -- To be done after changing hosts file. Hope ok
  3. configure WiFi -- To be done after changing hosts file. Hope ok
  4. set new WiFi pwd -- To be done after changing hosts file. Hope ok
  5. determine WHO owns the modem that provides the ISP connection ---- Please refer the network setup I have as screenshot. My guess is, the ISP would be bringing internet through wire to modem, which is centrally located somewhere in the building. From the modem they lay wires to each individual apartments. From the internet wire in my apartment, I connect to router and then setup WiFi. --- I will confirm this tomorrow from my ISP
  6. AND what make + model is it - Will try to find from my ISP
 

Attachments

  • 4.JPG
    4.JPG
    50.8 KB · Views: 3
Back