forsyth20121205-174063a80cc13 years agoHistory
156 lines · 2.6 KB · Text
RawDownload
.TH DNS 8.SH NAMEdns, dnsquery \- domain name service.SH SYNOPSIS.B ndb/dns[.BI -f " dnsfile"] [.B -h] [.B -r] [.BI -x " net"].PP.B ndb/dnsquery[.BI -x " net"] [.I "address ..."].SH DESCRIPTION.I Dnsis an Internet Domain Name Service (DNS) resolver.By default it serves a file.BR /net/dns ,that clients such as.IR cs (8)write and read to retrieve network data associated with domain names and Internet addresses.The.B -foption specifies the network database that contains the local DNS data (default:.BR /lib/ndb/local ).The.B -xoption specifies an alternative mount point for the network (default:.BR /net ).When Inferno is running hosted,.I dnsnormally uses the host's own DNS resolver first (via.IR srv (2)),before searching the DNS itself; that way domain names can beused in Inferno with minimal configuration.The.B -hoption stops.I dnsfrom using the host data.In the absence of local data, by default.I dnsconsults the external DNS directly using some bootstrap data, but if.B -ris specified and local resolvers are given in the configuration file,.IR dns (6),.I dnswill query them first for all addresses, before resorting to external DNS servers..PP.I Dnsqueryqueries the given.I server(default:.BR /net/cs )for a translation of each.I addressand prints the results, one per line.If no.I addressis given,.I dnsqueryprompts for something to find in the DNS, one per line on the standard input,of the form:.IP.EX.IR "name" " [" attribute "]".EE.PPwhere.I nameis the label of something in the DNS, and.I attributeis one of its attributes from the list below:.TF hinfox.TP.B allall data currently known locally for.I name.TPcnamename for which.I nameis an alias.TPhinfohost and operating system type.TP.B ipfor an IP address when.I nameis a domain name.TP.B mxmail exchanger.TP.B nsfor a list of name servers.TP.B ptrfor the domain name when.I nameis an Internet address.TP.B soastatement-of-authority.PD.PP.I Dnsqueryqueries the.I serverfor that name/attribute combination and prints the results, one per line.If an.I attributeis not given,.I dnsqueryuses.B ipif.I namelooks like a domain name,and.B ptrif it looks like an Internet address..SH FILES.TF /lib/ndb/local.TP.B #sdns*service directory.TP.B /net/dnsdomain name service.TP.B /lib/ndb/localnetwork database.TP.B /lib/ndb/dnsDNS bootstrap data.SH SOURCE.B /appl/cmd/ndb/dns.b.br.B /appl/cmd/ndb/dnsquery.b.SH "SEE ALSO".IR dns (6),.IR cs (8).SH BUGS.I Dnsdoes not yet offer an external DNS server, mainlyfor lack of a suitable database for local zone data.