File: host.lst1

package info (click to toggle)
bind 1%3A8.4.7-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 20,188 kB
  • ctags: 22,422
  • sloc: ansic: 156,772; sh: 20,008; perl: 14,224; makefile: 5,660; yacc: 2,475; cpp: 2,154; csh: 848; awk: 753; tcl: 674; lex: 423; fortran: 240
file content (174 lines) | stat: -rw-r--r-- 9,589 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
HOST(1)                 FreeBSD General Commands Manual                HOST(1)

NNAAMMEE
     hhoosstt -- look up host names using domain server

SSYYNNOOPPSSIISS
     hhoosstt [--ll] [--vv] [--ww] [--rr] [--dd] [--tt _q_u_e_r_y_t_y_p_e] [--aa] _h_o_s_t [_s_e_r_v_e_r]

DDEESSCCRRIIPPTTIIOONN
     HHoosstt looks for information about Internet hosts.  It gets this informa-
     tion from a set of interconnected servers that are spread across the
     world.  By default, it simply converts between host names and Internet
     addresses.  However, with the ``--tt'' or ``--aa'' options, it can be used to
     find all of the information about this host that is maintained by the
     domain server.

     The arguments can be either host names or host numbers.  The program
     first attempts to interpret them as host numbers.  If this fails, it will
     treat them as host names.  A host number consists of IPv4 dotted decimal
     quad (127.0.0.1) or IPv6 raw address (::1).  A host name consists of
     names separated by dots, e.g. topaz.rutgers.edu.  Unless the name ends in
     a dot, the local domain is automatically tacked on the end.  Thus, a Rut-
     gers user can say

           hhoosstt ttooppaazz

     and it will actually look up "topaz.rutgers.edu".  If this fails, the
     name is tried unchanged (in this case, "topaz").  This same convention is
     used for mail and other network utilities.  The actual suffix to tack on
     the end is obtained by looking at the results of a hostname(1) call, and
     using everything starting at the first dot.  (See below for a description
     of _C_U_S_T_O_M_I_Z_I_N_G _H_O_S_T _N_A_M_E _L_O_O_K_U_P.)

     The first argument is the host name you want to look up.  If this is a
     number, an ``inverse query'' is done, i.e. the domain system looks in a
     separate set of databases used to convert numbers to names.

     The second argument is optional.  It allows you to specify a particular
     server to query.  If you don't specify this argument, the default server
     (normally the local machine) is used.

     If a name is specified, you may see output of three different kinds.
     Here is an example that shows all of them:

           %% hhoosstt ssuunn44
           sun4.rutgers.edu is a nickname for ATHOS.RUTGERS.EDU
           ATHOS.RUTGERS.EDU has address 128.6.5.46
           ATHOS.RUTGERS.EDU has address 128.6.4.4
           ATHOS.RUTGERS.EDU mail is handled by ARAMIS.RUTGERS.EDU

     The user has typed the command ``hhoosstt ssuunn44''.  The first line indicates
     that the name ``sun4.rutgers.edu'' is actually a nickname.  The official
     host name is ``ATHOS.RUTGERS.EDU''.  The next two lines show the address.
     If a system has more than one network interface, there will be a separate
     address for each.  The last line indicates that ATHOS.RUTGERS.EDU does
     not receive its own mail.  Mail for it is taken by ARAMIS.RUTGERS.EDU.
     There may be more than one such line, since some systems have more than
     one other system that will handle mail for them.  Technically, every sys-
     tem that can receive mail is supposed to have an entry of this kind.  If
     the system receives its own mail, there should be an entry the mentions
     the system itself; for example,

           XXX mail is handled by XXX

     However, many systems that receive their own mail do not bother to men-
     tion that fact.  If a system has a ``mail is handled by'' entry, but no
     address, this indicates that it is not really part of the Internet, but a
     system that is on the network will forward mail to it.  Systems on
     Usenet, Bitnet, and a number of other networks have entries of this kind.

OOPPTTIIOONNSS
     There are a number of options that can be used before the host name.
     Most of these options are meaningful only to the staff who have to main-
     tain the domain database.

     --ww          This causes hhoosstt to wait forever for a response.  Normally it
                 will time out after approximate one minute.

     --vv          Use "verbose" format for printout.  This is the official
                 domain master file format, which is documented in the man
                 page for named(8).  Without this option, output still follows
                 this format in general terms, but some attempt is made to
                 make it more intelligible to normal users.  Without ``--vv'',
                 any "a", "mx", and "cname" records are written out as "has
                 address", "mail is handled by", and "is a nickname for"
                 (respectively), and TTL and class fields are not shown.

     --rr          Turn off recursion in the request.  This means that the name
                 server will return only data it has in its own database.  It
                 will not ask other servers for more information.

     --dd          Turn on debugging.  Network transactions are shown in detail.

     --ss          Chase signatures back to parent key (DNSSEC).

     --tt _q_u_e_r_y_t_y_p_e
                 Allows you to specify a particular _q_u_e_r_y_t_y_p_e of information
                 to be looked up.  The arguments are defined in the man page
                 for named(8).  Currently-supported types include: ``aa'',
                 ``aaaaaaaa'', ``nnss'', ``mmdd'', ``mmff'', ``ccnnaammee'', ``ssooaa'', ``mmbb'',
                 ``mmgg'', ``mmrr'', ``nnuullll'', ``wwkkss'', ``ppttrr'', ``hhiinnffoo'',
                 ``mmiinnffoo'', ``mmxx'', ``uuiinnffoo'', ``uuiidd'', ``ggiidd'', ``uunnssppeecc''.
                 Additionally, the wildcard, which may be written as either
                 ``aannyy'' or ``**'', can be used to specify any (all) of the
                 above types.  Types must be given in lower case.  Note that
                 the default is to look first for ``aa'', and then ``mmxx'',
                 except that if the verbose option is turned on, the default
                 is only ``aa''.  The ``--tt'' option is particularly useful for
                 filtering information returned by hhoosstt; see the explanation
                 of the ``--ll'' option, below, for more information.

     --aa          ``all''; this is equivalent to ``--vv --tt aannyy''.

     --ll          List a complete domain; e.g.:

                       hhoosstt --ll rruuttggeerrss..eedduu

                 will give a listing of all hosts in the rutgers.edu domain.
                 The ``--tt'' option is used to filter what information is pre-
                 sented, as you would expect.  The default is address informa-
                 tion, which also include PTR and NS records.  The command

                       hhoosstt --ll --vv --tt aannyy rruuttggeerrss..eedduu

                 will give a complete download of the zone data for rut-
                 gers.edu, in the official master file format.  (However the
                 SOA record is listed twice, for arcane reasons.)

                 NNOOTTEE: ``--ll'' is implemented by doing a complete zone transfer
                 and then filtering out the information the you have asked
                 for.  This command should be used only if it is absolutely
                 necessary.

CCUUSSTTOOMMIIZZIINNGG HHOOSSTT NNAAMMEE LLOOOOKKUUPP
     In general, if the name supplied by the user does not have any dots in
     it, a default domain is appended to the end.  This domain can be defined
     in _/_e_t_c_/_r_e_s_o_l_v_._c_o_n_f, but is normally derived by taking the local hostname
     after its first dot.  The user can override this, and specify a different
     default domain, using the environment variable LOCALDOMAIN.  In addition,
     the user can supply his own abbreviations for host names.  They should be
     in a file consisting of one line per abbreviation.  Each line contains an
     abbreviation, a space, and then the full host name.  The name file must
     be contained in the HOSTALIASES environment variable.

EENNVVIIRROONNMMEENNTT
     HOSTALIASES         Name of file containing (_h_o_s_t _a_l_i_a_s, _f_u_l_l _h_o_s_t_n_a_m_e)
                         pairs.

FFIILLEESS
     /etc/resolv.conf    See resolver(5).

SSEEEE AALLSSOO
     named(8), resolver(5).

BBUUGGSS
     Unexpected effects can happen when you type a name that is not part of
     the local domain.  Please always keep in mind the fact that the local
     domain name is tacked onto the end of every name, unless it ends in a
     dot.  Only if this fails is the name used unchanged.

     The ``--ll'' option only tries the first name server listed for the domain
     that you have requested.  If this server is dead, you may need to specify
     a server manually. E.g., to get a listing of foo.edu, you could try

           hhoosstt --tt nnss ffoooo..eedduu

     to get a list of all the name servers for foo.edu, and then try

           hhoosstt --ll ffoooo..eedduu xxxxxx

     for all ``xxxxxx'' on the list of name servers, until you find one that
     works.

4th Berkeley Distribution      December 15, 1994     4th Berkeley Distribution