Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: DNS issue with my computer

31 May 2013   #1
Computern33b

64 bit Home Premium
 
 
DNS issue with my computer

Awhile back I was having trouble connecting to my database and one of my coworkers told me to flush my DNS. Now, I had already knew how to do this but never done it.

I did the following:
  • Opened Run
  • Type: Ipconfig / Flushdns

It worked, however, ever since then I now have DNS issues usually on boot up. When I would open my browser to google or any other site it displays a DNS error. I have to wait 2 minutes, refresh and then I'm able to surf the internet. The same applies for my skype. I'm unable to call, however, I can still send IMs. This happens every time I start up my PC and occasionally here and there.

This never happened until I flushed my dns. Is there a step I missed? Or is my computer not used to it?


My System SpecsSystem Spec
.
31 May 2013   #2
gregrocker

 

The only steps I've used to flush DNS were provided by our Security MVP Jacee so there's no doubt they are complete and quite a bit more than what you ran:

Copy and paste these lines in Note pad.

@Echo on
pushd\windows\system32\drivers\etc
attrib -h -s -r hosts
echo 127.0.0.1 localhost>HOSTS
attrib +r +h +s hosts
popd
ipconfig /release
ipconfig /renew
ipconfig /flushdns
netsh winsock reset all
netsh int ip reset all
shutdown -r -t 1
del %0


Save as flush.bat to your desktop.
Right click the .bat file and choose to run as Administrator. Your computer will reboot itself.
My System SpecsSystem Spec
01 Jun 2013   #3
coolamitraj

Windows 7 Ultimate x32
 
 

Hi There

I see that you have flush dns.. Who will register it??

Please try ipconfig /registerdns ( make sure use elevated cmd )

Cheers
My System SpecsSystem Spec
.

06 Jun 2013   #4
Computern33b

64 bit Home Premium
 
 

Quote   Quote: Originally Posted by gregrocker View Post
The only steps I've used to flush DNS were provided by our Security MVP Jacee so there's no doubt they are complete and quite a bit more than what you ran:

Copy and paste these lines in Note pad.

@Echo on
pushd\windows\system32\drivers\etc
attrib -h -s -r hosts
echo 127.0.0.1 localhost>HOSTS
attrib +r +h +s hosts
popd
ipconfig /release
ipconfig /renew
ipconfig /flushdns
netsh winsock reset all
netsh int ip reset all
shutdown -r -t 1
del %0


Save as flush.bat to your desktop.
Right click the .bat file and choose to run as Administrator. Your computer will reboot itself.
I've done accordingly, but the issue still remains.

Quote   Quote: Originally Posted by coolamitraj View Post
Hi There

I see that you have flush dns.. Who will register it??

Please try ipconfig /registerdns ( make sure use elevated cmd )

Cheers
I typed this command via Administration CMD and the message regarding the transaction says "May take 15 minutes." I let it set for 3 hours and the same message persists, no cause or effect.


Still not solved!

Quote:
Error 105 (net::ERR_NAME_NOT_RESOLVED): Unable to resolve the server's DNS address.
My System SpecsSystem Spec
06 Jun 2013   #5
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by Computern33b View Post
~~~
This never happened until I flushed my dns. Is there a step I missed? Or is my computer not used to it?
The DNS cache is kept in RAM. It goes away every time you restart the computer. The only reason why you would want to issue the command to flush it via the command prompt is when you don't want to restart your computer. You did no harm in flushing the cache.

This is easy to test:
Surf to several websites
Open a regular command prompt window
Type in ipconfig /displaydns and press enter
That should give you a list of dozens of cached IP addresses.*

Restart the computer and quickly...
Open a regular command prompt window
Type in ipconfig /displaydns and press enter
That should give you a list of very few cached IP addresses.*

*If the service named DNS Client is disabled or not running...
...you should see: Could not display the DNS Resolver Cache.

Your computer can function just fine without the service named DNS Client running. Each request to turn a URL or FQDN into an IP address will just have to go to a DNS server or be resolved some other way (e.g. HOST file).



Quote   Quote: Originally Posted by coolamitraj View Post
Hi There

I see that you have flush dns.. Who will register it??

Please try ipconfig /registerdns ( make sure use elevated cmd )

Cheers
Registering the client happens with each reboot (if the default settings are present for the network adapter in use). This registration helps other computers connect to the OP's computer name or alias. The OP is having trouble in the other direction.



Quote   Quote: Originally Posted by Computern33b View Post
~~~
It worked, however, ever since then I now have DNS issues usually on boot up. When I would open my browser to google or any other site it displays a DNS error. I have to wait 2 minutes, refresh and then I'm able to surf the internet. The same applies for my skype. I'm unable to call, however, I can still send IMs. This happens every time I start up my PC and occasionally here and there.
~~~
I wonder if Skype caches IMs until they can be sent.

The "occasionally here and there" part is interesting. When this happens to you, can coworkers still surf?

DNS problems should not impact traffic that already knows the IP address of the remote computer... so pinging Google by one of its IP addresses should work (if pings are allowed thru the company firewall). See this post. You could leave that ping running and when you have trouble "occasionally here and there", un-minimize that command prompt window and see if the pings are still happening. [If pinging Google is not allowed, then pick an IP address inside the company firewall.]

As far as not being able to browse to Google right after booting the computer:
Open a regular command prompt window
Type in ipconfig and press enter
Take note of the IP address currently assigned to your computer
Ask a coworker to ping that IP address**
(using the "-t" option to keep the pings going until manually stopped)
Turn your computer off
Turn your computer on
(Not just a restart. Cycle the power.)

**this assumes that the two of you are connected to a network that allows for pings and that your computer is setup to respond to them.

The coworker should see the timeouts stop and should start getting good returns long before you can log on to your computer. Of course, this all rests on the hope that your computer will be assigned the same IP address that it had before the power was cycled.

As soon as the computer boots, quickly check the IP address again and quickly start that batch file that pings one of Google's IP addresses. If the computer was assigned a different IP address, then we just wasted some time :-(

If the computer does not have have an IP address assigned yet, then there might be a problem with your DHCP service.

If you are able to ping Google right away, but not browse to Google via a URL, then DNS is indeed the problem. We can chase that problem down once we are sure you are getting an IP within a reasonable time frame after starting the computer.
My System SpecsSystem Spec
Reply

 DNS issue with my computer




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Computer issue day...
today has been a bad day for me and my computer, today I decided to give me computer a good clean, as the processor fan was making annoying sounds... never cleaned this fan out.. and it's few years old.. anyway got fan out.. it's like held in place by clips.. when putting it back in place... clips...
Installation & Setup
Need a fix for my computer issue
I have no idea on how else to explain my issue other than my entire computer will randomly start to lag and my computer makes a sound like this..eeeeeeeeeeeee ackckakck eeeeeeeee. When this happens my computer usage goes down. Please help!
General Discussion
Computer rollback issue
My computer graphics card seams to be rolling back its driver updates automatically. i have a radeon 5770, and the only update tht sticks is 8.851.0.0, the newest update driver for my graphics card is 8.902.0.0, why does it always roll back whn i turn my computer on?
Windows Updates & Activation
New computer, keyboard issue, please help!
My grandmother bought me a brand new Dell XPS 8100 for an early Xmas gift, so I could actually have a 'home office' of my own, in my bedroom. It works good, nice and quiet and speedy. It's running Windows 7 (though I'm not sure how you tell what version?). Now I'm having an issue with the...
Hardware & Devices
computer issue please help
i built my computer myself from hand with eperiance from building computers before and i have this problem with windows 7 i get stuck at the start up logo everytime i shut down and turn the computer back on. The only why i have found to fix this for a little while is to do a system restore in safe...
General Discussion
BSOD?? or Computer issue???
So i bought a new computer like 6 months ago; Operating System: Windows 7 Ultimate 64-bit (6.1, Build 7100) (7100.winmain_win7rc.090421-1700) Language: English (Regional Setting: English) System Manufacturer: Gigabyte Technology Co., Ltd. System Model: EX58-UD5 BIOS: Award Modular BIOS...
BSOD Help and Support


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:54.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App