Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
No Starch Press

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 81 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here






       The  resolver  is  a set of routines in the C library that
       provide access to the Internet Domain  Name  System.   The
       resolver  configuration  file contains information that is
       read by the resolver routines  the  first  time  they  are
       invoked  by  a  process.  The file is designed to be human
       readable and contains a list of keywords with values  that
       provide various types of resolver information.

       On  a  normally  configured system this file should not be
       necessary.  The only name server to be queried will be  on
       the  local machine; the domain name is determined from the
       host name and the domain search path is  constructed  from
       the domain name.

       The different configuration options are:

              Internet address (in dot notation) of a name server
              that the resolver should query.  Up to MAXNS  (cur­
              rently  3) name servers may be listed, one per key­
              word.  If there are multiple servers, the  resolver
              library  queries  them  in the order listed.  If no
              nameserver entries are present, the default  is  to
              use  the  name  server  on the local machine.  (The
              algorithm used is to try a name server, and if  the
              query  times  out,  try the next, until out of name
              servers, then repeat trying all  the  name  servers
              until a maximum number of retries are made.)

       domain Local  domain  name.  Most queries for names within
              this domain can use short  names  relative  to  the
              local  domain.   If no domain entry is present, the
              domain is  determined  from  the  local  host  name
              returned by gethostname(); the domain part is taken
              to be everything after the first `.'.  Finally,  if
              the  host  name does not contain a domain part, the
              root domain is assumed.

       search Search list for host-name lookup.  The search  list
              is  normally determined from the local domain name;
              by default, it contains only the local domain name.
              This  may  be changed by listing the desired domain
              search  path  following  the  search  keyword  with
              spaces or tabs separating the names.  Most resolver
              queries will be attempted using each  component  of
              the  search  path  in  turn until a match is found.
              Note that this process may be slow and will  gener­
              ate a lot of network traffic if the servers for the

              e.g.      sortlist

              Options  allows certain internal resolver variables
              to be modified.  The syntax is

              options option ...

              where option is one of the following:

              debug -- sets RES_DEBUG in _res.options.

              ndots:n -- sets a threshold for the number of  dots
              which must appear in a name given to res_query (see
              resolver(3)) before an initial absolute query  will
              be  made.  The default for n is ``1'', meaning that
              if there are any dots in a name, the name  will  be
              tried  first  as an absolute name before any search
              list elements are appended to it.

       The domain and search keywords are mutually exclusive.  If
       more  than  one instance of these keywords is present, the
       last instance wins.

       The search keyword of a system's resolv.conf file  can  be
       overridden  on a per-process basis by setting the environ­
       ment variable ``LOCALDOMAIN'' to a space-separated list of
       search domains.

       The  options keyword of a system's resolv.conf file can be
       amended on a per-process basis by setting the  environment
       variable  ``RES_OPTIONS''  to  a  space-separated  list of
       resolver options as explained above under options.

       The keyword and value must appear on a  single  line,  and
       the  keyword  (e.g.  nameserver) must start the line.  The
       value follows the keyword, separated by white space.




       gethostbyname(3), hostname(7), named(8),
       Name Server Operations Guide for BIND

                            1993-11-11                RESOLVER(5)

The Linux Tutorial is always looking for new contributors.



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
The Linux Tutorial can use your help.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.08 Seconds