Unable to connect to dns server

  trendytot 09:49 25 Mar 2009

Hi, ethernet cable to comp from bt home hub works fine from start up and internet works great.But when i put the comp to sleep and say start it up the next day the internet connection is not connected, network diagnostics says cannot comunicate with dns server try reseting the adaptor to resolve this. You then click repair and it repairs itself and normal service is resumed.Just would like to know if any fix is required to stop this.Thanks.

  mgmcc 12:21 25 Mar 2009

You could try using fixed IP addressing, as the PC is obviously losing its addresses while in sleep mode.

Open a Command Prompt window ("Start > Run", type CMD and click OK) and, at the prompt, type...

ipconfig /all

...and press Enter. This will display details of all network adapters in the PC. For the relevant adapter ("Local Area Connection" or "Wireless Network Connection") make a note of the...

- IP address
- Subnet Mask
- Default Gateway
- DNS Servers (two addresses)

Close the Command Prompt window. Now go into the Network Connections folder ("Start > Run", type NCPA.CPL and click OK), right click the relevant adapter ("Local Area Connection" or "Wireless Network Connection") and select Properties.

In the Properties sheet that opens, select
- [for XP] "Internet Protocol (TCP/IP)" or
- [for Vista] "Internet Protocol Version 4 (TCP/IPv4)"
and click the Properties button.

In the TCP/IP Properties, click "Use the following IP address" and enter the settings that you noted earlier.

[Note: To revert to automatic addressing, set *BOTH* the IP and DNS sections back to obtaining their addresses automatically.]

  trendytot 13:36 25 Mar 2009

Thanks done what you said but still have the same problem. Just to clarify it only happens when in sleep mode not if you shut down and start up.Thanks again.

  Tech Guy 18:02 25 Mar 2009

Why don't you just turn computer off on a night and restart the next day.

Just take a little longer to start and save electric too. ;)

  trendytot 09:09 26 Mar 2009

Yes i agree just had this problem and wanted to fix it cheers to all.

  Jollyjohn 12:48 26 Mar 2009

You only lease an ip address from the server and each time you connect you will be assigned a new ip address. When youre pc is asleep it gives up the ip address and therefore needs a new one, hence the reset.
A fixed ip address will only work if you have a static ip address. ( not available on residential BT Broadband - £5/month BT business bband)

  mgmcc 13:13 26 Mar 2009

>>> A fixed ip address will only work if you have
>>> a static ip address. ( not available on
>>> residential BT Broadband - £5/month BT
>>> business bband)

It is the LAN IP address allocated by the Router which is being lost when the PC is put into "sleep" mode, not the Public WAN IP address allocated by the ISP to the Router. There is no reason why fixed IP addressing cannot be used within the LAN, irrespective of whether the broadband service has a static or dynamic IP address.

  Tech Guy 21:01 26 Mar 2009


You are absolutely right


Have you tried using static DNS servers ??
e.g. & (openDNS)

  trendytot 14:49 27 Mar 2009

THANKS to all on advice i think i'll stick to powering down with no probs but if any advice on this comes up all would be welcome.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Xiaomi Mi Mix 2 review

Halloween Photoshop & Illustrator tutorials: 20 step-by-step guides to creating spook-tacular…

iPhone X news: Release date, price, new features & specs

Comment créer, modifier et réinitialiser un compte Apple ?