⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nslint.8

📁 bind-3.2.
💻 8
字号:
.\" @(#) $Id: nslint.8,v 1.1 2001/12/21 04:12:03 marka Exp $ (LBL).\".\" Copyright (c) 1994, 1996, 1997, 1999, 2001.\"	The Regents of the University of California.  All rights reserved..\" All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that: (1) source code distributions.\" retain the above copyright notice and this paragraph in its entirety, (2).\" distributions including binary code include the above copyright notice and.\" this paragraph in its entirety in the documentation or other materials.\" provided with the distribution, and (3) all advertising materials mentioning.\" features or use of this software display the following acknowledgement:.\" ``This product includes software developed by the University of California,.\" Lawrence Berkeley Laboratory and its contributors.'' Neither the name of.\" the University nor the names of its contributors may be used to endorse.\" or promote products derived from this software without specific prior.\" written permission..\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE..\".TH nslint 8 "20 March 2001".UC 4.SH NAMEnslint - perform consistency checks on dns files.SH SYNOPSIS.B nslint[.B -d] [.B -b.I named.boot] [.B -B.I nslint.boot].br.B nslint[.B -d] [.B -c.I named.conf] [.B -C.I nslint.conf].SH DESCRIPTION.B Nslintreads the nameserver configuration files and performs a number ofconsistency checks on the dns records. If any problems are discovered,error messages are displayed on.I stderrand.B nslintexits with a non-zero status..LPHere is a short list of errors.B nslintdetects:.IPRecords that are malformed..IPNames that contain dots but are missing a trailing dot..IP.B PTRrecords with names that are missing a trailing dot..IPNames that contain illegal characters (rfc1034)..IP.B Arecordswithout matching.B PTRrecords.IP.B PTRrecordswithout matching.B Arecords.IPNames with more than one address on the same subnet..IPAddresses in use by more than one name..IPNames with.B CNAMEand other records (rfc1033)..IPUnknown service and/or protocol keywords in.B WKSrecords..IPMissing quotes..LP.SH OPTIONS.TP.B -bSpecify an alternate.I named.bootfile. The default is.IR /etc/named.boot ..TP.TP.B -cSpecify an alternate.I named.conffile. The default is.IR /etc/named.conf ..TP.B -BSpecify an alternate.I nslint.bootfile. The default is.I nslint.bootin the last.B directoryline processed in.I named.boot(or the current working directory).This file is processed like a second.IR named.boot .The most common use is to tell.B nslintabout.B Arecords that match.B PTRrecords that point outside the domains listed in.IR named.boot ..TP.B -CSpecify an alternate.I nslint.conffile. The default is.I nslint.confin the last.B directoryline processed in.I named.conf(or the current working directory).This file is processed like a second.IR named.conf ..TP.B -dRaise the debugging level. Debugging information isdisplayed on.IR stdout ..LP.B Nslintknows how to read old style.I named.bootand BIND 8's new.I named.conffiles. If both files exist,.B nslintwill prefer.I named.conf(on the theory that you forgot to delete.I named.bootwhen you upgraded to BIND 8)..LP.SH "ADVANCED CONFIGURATION"There are some cases where it is necessary to use theadvanced configuration features of.BR nslint .Advanced configuration is done with the.I nslint.bootfile..LPThe most common is when a site has a demilitarized zone (DMZ).The problem here is that the DMZ network will have.B PTRrecords for hosts outside its domain. For example lets saywe have.I 128.0.revwith:.LP.RS.nf.sp .51.1     604800  in      ptr     gateway.lbl.gov.2.1     604800  in      ptr     gateway.es.net..sp .5.fi.RE.LPObviously we will define an.B Arecord for.I gateway.lbl.govpointing to.I 128.0.1.1but we will get errors because there is no.B Arecord defined for.IR gateway.es.net .The solution is to create a.I nslint.bootfile (in the same directory as the other dns files)with:.LP.RS.nf.sp .5primary es.net                  nslint.es.net.sp .5.fi.RE.LPAnd then create the file.I nslint.es.netwith:.LP.RS.nf.sp .5gateway 1       in      a       128.0.1.2.sp .5.fi.RE.LPAnother problem occurs when there is a.B CNAMEthat points to a host outside the local domains. Let's say we have.I info.lbl.govpointing to.IR larry.es.net :.LP.RS.nf.sp .5info    604800  in      cname   larry.es.net..sp .5.fi.RE.LPIn this case we would need:.LP.RS.nf.sp .5primary es.net                  nslint.es.net.sp .5.fi.RE.LPin.I nslint.bootand:.LP.RS.nf.sp .5larry   1       in      txt     "place holder".sp .5.fi.RE.LP.IR nslint.es.net ..LPOne last problemwhen a pseudo host is setup to allow two moremore actual hosts provide a service. For, let's say that.I lbl.govcontains:.LP.RS.nf.sp .5server  604800  in      a       128.0.6.6server  604800  in      a       128.0.6.94;tom     604800  in      a       128.0.6.6tom     604800  in      mx 0    lbl.gov.;jerry   604800  in      a       128.0.6.94jerry   604800  in      mx 0    lbl.gov..sp .5.fi.RE.LPIn this case.B nslintwould complain about missing.B PTRrecords and ip addresses in use by more than one host.To suppress these warnings, add you would the lines:.LP.RS.nf.sp .5primary lbl.gov                 nslint.lbl.govprimary 0.128.in-addr.arpa      nslint.128.0.rev.sp .5.fi.RE.LPto.I nslint.bootand create.I nslint.lbl.govwith:.LP.RS.nf.sp .5server  1       in      allowdupa       128.0.6.6server  1       in      allowdupa       128.0.6.94.sp .5.fi.RE.LPand create.I nslint.128.0.revwith:.LP.RS.nf.sp .56.6     604800  in      ptr     server.lbl.gov.94.6    604800  in      ptr     server.lbl.gov..sp .5.fi.RE.LPIn this example, the.B allowdupakeyword tells.B nslintthat it's ok for.I 128.0.6.6and.I 128.0.6.94to be shared by.IR server.lbl.gov ,.IR tom.lbl.gov ,and.IR jerry.lbl.gov ..LPOne last.B nslintfeature helps detect hosts that have mistakenly had two ip addressesassigned on the same subnet. This can happen when two differentpeople request an ip address for the same hostname or when someoneforgets an address has been assigned and requests a new number..LPTo detect such.B Arecords, add a.B nslintsection to your.I nslint.confcontaining something similar to:.LP.RS.nf.sp .5nslint {.RSnetwork "128.0.6/22";network "128.0.6 255.255.252.0";.RE};.sp .5.fi.RE.LPThe two network lines in this example are equivalent ways of saying the samething; that subnet.I 128.0.6has a 22 bit wide subnet mask..LPIf you are using.IR nslint.boot ,the syntax would be:.LP.RS.nf.sp .5network 128.0.6/22network 128.0.6 255.255.252.0.sp .5.fi.RE.LPAgain this shows two ways of saying the same thing..LPUsing information from the above.B networkstatement,.B nslintwould would flag the following.B Arecords as being in error:.LP.RS.nf.sp .5server  1       in      a       128.0.6.48server  1       in      a       128.0.7.16.sp .5.fi.RE.LPNote that if you specify any.B networklines in your.I nslint.confor.I nslint.bootfiles,.B nslintrequires you to include lines for all networks;otherwise you might forget to add.B networklines for new networks..LP.SH FILES.na.nh.nf/etc/named.boot - default named configuration filenslint.boot - default nslint configuration file.ad.hy.fi.LP.SH "SEE ALSO".na.nh.IR named (8),rfc1033,rfc1034.ad.hy.SH AUTHORCraig Leres of theLawrence Berkeley National Laboratory, University of California, Berkeley, CA..LPThe current version is available via anonymous ftp:.LP.RS.I ftp://ftp.ee.lbl.gov/nslint.tar.gz.RE.SH BUGSPlease send bug reports to nslint@ee.lbl.gov..LPNot everyone is guaranteed to agree with all the checks done.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -