3 .\" @(#) Id: nslint.8,v 1.1 2001/12/21 04:12:03 marka Exp (LBL)
5 .\" Copyright (c) 1994, 1996, 1997, 1999, 2001
6 .\" The Regents of the University of California. All rights reserved.
7 .\" All rights reserved.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that: (1) source code distributions
11 .\" retain the above copyright notice and this paragraph in its entirety, (2)
12 .\" distributions including binary code include the above copyright notice and
13 .\" this paragraph in its entirety in the documentation or other materials
14 .\" provided with the distribution, and (3) all advertising materials mentioning
15 .\" features or use of this software display the following acknowledgement:
16 .\" ``This product includes software developed by the University of California,
17 .\" Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
18 .\" the University nor the names of its contributors may be used to endorse
19 .\" or promote products derived from this software without specific prior
20 .\" written permission.
21 .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
22 .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
23 .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
25 .TH nslint 8 "20 March 2001"
28 nslint - perform consistency checks on dns files
53 reads the nameserver configuration files and performs a number of
54 consistency checks on the dns records. If any problems are discovered,
55 error messages are displayed on
59 exits with a non-zero status.
61 Here is a short list of errors
65 Records that are malformed.
67 Names that contain dots but are missing a trailing dot.
70 records with names that are missing a trailing dot.
72 Names that contain illegal characters (rfc1034).
86 Names with more than one address on the same subnet.
88 Addresses in use by more than one name.
92 and other records (rfc1033).
94 Unknown service and/or protocol keywords in
106 .IR /etc/named.boot .
113 .IR /etc/named.conf .
124 (or the current working directory).
125 This file is processed like a second
127 The most common use is to tell
133 records that point outside the domains listed in
145 (or the current working directory).
146 This file is processed like a second
150 Raise the debugging level. Debugging information is
155 knows how to read old style
159 files. If both files exist,
163 (on the theory that you forgot to delete
165 when you upgraded to BIND 8).
167 .SH "ADVANCED CONFIGURATION"
168 There are some cases where it is necessary to use the
169 advanced configuration features of
171 Advanced configuration is done with the
175 The most common is when a site has a demilitarized zone (DMZ).
176 The problem here is that the DMZ network will have
178 records for hosts outside its domain. For example lets say
186 1.1 604800 in ptr gateway.lbl.gov.
187 2.1 604800 in ptr gateway.es.net.
192 Obviously we will define an
198 but we will get errors because there is no
202 The solution is to create a
204 file (in the same directory as the other dns files)
210 primary es.net nslint.es.net
215 And then create the file
222 gateway 1 in a 128.0.1.2
227 Another problem occurs when there is a
229 that points to a host outside the local domains. Let's say we have
237 info 604800 in cname larry.es.net.
242 In this case we would need:
247 primary es.net nslint.es.net
259 larry 1 in txt "place holder"
267 when a pseudo host is setup to allow two more
268 more actual hosts provide a service. For, let's say that
275 server 604800 in a 128.0.6.6
276 server 604800 in a 128.0.6.94
278 tom 604800 in a 128.0.6.6
279 tom 604800 in mx 0 lbl.gov.
281 jerry 604800 in a 128.0.6.94
282 jerry 604800 in mx 0 lbl.gov.
289 would complain about missing
291 records and ip addresses in use by more than one host.
292 To suppress these warnings, add you would the lines:
297 primary lbl.gov nslint.lbl.gov
298 primary 0.128.in-addr.arpa nslint.128.0.rev
312 server 1 in allowdupa 128.0.6.6
313 server 1 in allowdupa 128.0.6.94
325 6.6 604800 in ptr server.lbl.gov.
326 94.6 604800 in ptr server.lbl.gov.
347 feature helps detect hosts that have mistakenly had two ip addresses
348 assigned on the same subnet. This can happen when two different
349 people request an ip address for the same hostname or when someone
350 forgets an address has been assigned and requests a new number.
358 containing something similar to:
365 network "128.0.6/22";
366 network "128.0.6 255.255.252.0";
373 The two network lines in this example are equivalent ways of saying the same
376 has a 22 bit wide subnet mask.
386 network 128.0.6 255.255.252.0
391 Again this shows two ways of saying the same thing.
393 Using information from the above
397 would would flag the following
399 records as being in error:
404 server 1 in a 128.0.6.48
405 server 1 in a 128.0.7.16
410 Note that if you specify any
418 requires you to include lines for all networks;
419 otherwise you might forget to add
421 lines for new networks.
427 /etc/named.boot - default named configuration file
428 nslint.boot - default nslint configuration file
443 Lawrence Berkeley National Laboratory, University of California, Berkeley, CA.
445 The current version is available via anonymous ftp:
448 .I ftp://ftp.ee.lbl.gov/nslint.tar.gz
451 Please send bug reports to nslint@ee.lbl.gov.
453 Not everyone is guaranteed to agree with all the checks done.