summaryrefslogtreecommitdiff
path: root/static/unix-v10/man8/ns.8
blob: 620e80e3b929c80da07ab1f3af7a591a8f0f8de1 (plain)
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
.TH NS 8
.CT 1 sa_auto
.SH NAME
ns \- name server database
.SH SYNOPSIS
.B /usr/ipc/mgrs/ns
[
.B -m
.I server
] [
.B -d
]
.SH DESCRIPTION
.I Ns
maintains a database
of naming information,
accessed by
.IR qns (7)
and other programs.
It should be run once from
.IR rc (8).
.PP
The database is accessed
through local service
.BR ns ,
or service
.I server
if option
.B -m
was specified.
.PP
The file
.F /usr/ipc/lib/ns.db
contains instructions for building the database.
These instructions are lines 
of one of the following forms:
.TP \w'#include\0file\0\0\0\0'u		\" wrong fonts; near enough?
.BI #uusys " file"
Read the named
.I uucp
.B Systems
.IR file .
For entries using caller
.LR ACU ,
add a database entry containing
.RS
.IP
.I system\0
.IB telephone-number ,tel\0
.B uucp,svc
.PP
For entries using caller
.LR DK
or
.LR DKH ,
add an entry containing
.IP
.I system\0
.IB datakit-address ,dk\0
.B uucp,svc
.PP
For any other entry,
add
.IP
.I system\0
.B uucp,svc
.RE
.TP
.BI #inhost " file"
For each line in the named
4BSD-style internet hosts
.IR file ,
add a database entry of the form
.RS
.IP
.IB ip-address ,in\0
.I hostname\0
.IB host-domain-name ,dom
.RE
.TP
.BI #innet " file"
For each line in the named
4BSD-style internet networks
.IR file ,
add a database entry of the form
.RS
.IP
.IB ip-net-address ,in\0
.I netname
.RE
.TP
.BI #include " file"
Interpret
the contents of
.IR file
in the same format
as
.BR ns.db .
.PP
In all cases,
.I file
may be followed by
a list of
.I value,attribute
pairs to be included with any
database entries caused by that file.
If the filename doesn't begin with
.LR / ,
it is prefixed with
.BR /usr/ipc/lib .
.PP
Blank lines
and
lines beginning with
.L #
followed by a space or tab
are ignored.
.PP
Any other lines are taken as literal database entries:
a collection of
.I value,attribute
pairs separated by spaces.
Each line is a single entry.
.PP
The database is ephemeral;
it is rebuilt whenever
.I ns
starts,
when requested by
.BR "qns reset" ,
or when
.I ns
notices that
.B ns.db
or one of the files named therein
has changed.
Rebuilding can take several minutes,
especially on a busy machine.
During a rebuild,
the server appears active but does not answer requests;
calls will block until the rebuild finishes.
.PP
.I Ns
leaves remarks in file
.FR /usr/ipc/log/ns .
There are more remarks if the
.B -d
option was used.
.SH FILES
.F /usr/ipc/lib/ns.db
.SH SEE ALSO
.IR ipc (3),
.IR qns (7)