Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 489
  • Last Modified:

DNS timeout slows down system when Internet Connection is not available.


Hi,

Every day after work hours, we turn off our ADSL modem.  When this happens, our normally okay Linux servers will respond slowly when we ssh or telnet to them.  Likewise, some daemons, such as ntpd, will not able to sync time even with our internal servers.  It seems to me this problem is caused by Linux still try to query external DNS servers although we are already using internal IP addresses.  

When I remove all DNS settings inside resolve.conf, this problem goes away.  However, we do need working resolve.conf.

What should I do?  Thanks.
0
anonp
Asked:
anonp
  • 2
  • 2
  • 2
  • +3
1 Solution
 
grbladesCommented:
Hi anonp,
You could create a couple of CRON entries to replace the resolv.conf when the ADSL line is switched off and on.
0
 
pablouruguayCommented:
i found a solution for this problem. dyndns client :)
0
 
bobgunzelCommented:
Make sure the clients have a /etc/hosts file and that the /etc/nsswitch.conf file has a "hosts: files dns" entry.
The hosts file should contain all local IP's & names. The "hosts: files dns" entry makes sure that the hosts file is queried first.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
chris_calabreseCommented:
/etc/hosts is a reasonable idea, but requires keeping all the hosts in sync.

Alternately, you can setup your own DNS server on the internal network and have all the systems resolve through it rather than going out to the Internet.
0
 
Gabriel OrozcoSolution ArchitectCommented:
configure your DSL client (tipically Roaring Penguin) to not modify your /etc/resolv.conf and setup a DNS caché with bind (It comes already configured as dns cache on most distros this days)
0
 
anonpAuthor Commented:

Thank you for your answers.

Is there a simpler solution?  I really don't want to setup up bind just to get around this.

In regard to using cron to modify the resolve.conf, I don't want to set that up in every computer.  Same problem applies to chaning the host files.

Other ideas?  Thanks.
0
 
bobgunzelCommented:
You can try to use the "search" directive in resolv.conf. Set it to the local domain.
0
 
Gabriel OrozcoSolution ArchitectCommented:
to have bind doing dns cache is generally only matter of do a "service named start" or "chkconfig 345 named on" (I don't remember the exact order)

but no more than that... why be afraid of bind? it's more or less simple to use.
0
 
chris_calabreseCommented:
A simpler solution is not to disconnect your Internet connection.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now