LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-28-2010, 05:50 PM   #1
Joushu
LQ Newbie
 
Registered: Oct 2010
Location: Seattle
Posts: 7

Rep: Reputation: 0
DNS Cache


How would I instruct my Linux system to use the local network's DNS cache, located at lets say 192.168.1.254, or the ISP's DNS cache, located on 1.2.3.4, if the LAN nameserver is unavailable?
 
Old 10-28-2010, 05:59 PM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Tree files to check on.

/etc/host.conf
man host.conf will tell you about the order option

/etc/hosts
Is for static dns resolve

/etc/resolv.conf
the file for all your dns needs
 
Old 10-29-2010, 04:04 PM   #3
f14f21_2
LQ Newbie
 
Registered: Oct 2010
Posts: 19

Rep: Reputation: 1
Quote:
Originally Posted by Joushu View Post
How would I instruct my Linux system to use the local network's DNS cache, located at lets say 192.168.1.254, or the ISP's DNS cache, located on 1.2.3.4, if the LAN nameserver is unavailable?
open /etc/resolv.conf
add:
Code:
nameserver 192.168.1.254
nameserver 1.2.3.4
 
Old 10-29-2010, 04:04 PM   #4
f14f21_2
LQ Newbie
 
Registered: Oct 2010
Posts: 19

Rep: Reputation: 1
open /etc/resolv.conf
add:
Code:
nameserver 192.168.1.254
nameserver 1.2.3.4
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Managed DNS server lists and dnsmasq DNS cache nitrousoxide82 Linux - Networking 1 02-21-2014 10:34 PM
DNS Cache felix001 Solaris / OpenSolaris 7 08-09-2010 06:11 AM
regarding dns cache gimmereeson Linux - Server 4 01-22-2007 07:41 PM
dns cache moob8 Slackware 4 10-15-2006 10:18 PM
DNS Cache Architect Linux - Networking 2 10-25-2002 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration