1services(4) File Formats services(4)
2
3
4
6 services - Internet services and aliases
7
9 /etc/inet/services
10
11
12 /etc/services
13
14
16 The services file is a local source of information regarding each ser‐
17 vice available through the Internet. The services file can be used in
18 conjunction with or instead of other services sources, including the
19 NIS maps "services.byname" and the NIS+ table "services." Programs use
20 the getservbyname(3SOCKET) routines to access this information.
21
22
23 The services file contains an entry for each service. Each entry has
24 the form:
25
26 service-name port/protocol aliases
27
28
29 service-name This is the official Internet service name.
30
31
32 port/protocol This field is composed of the port number and protocol
33 through which the service is provided, for instance,
34 512/tcp.
35
36
37 aliases This is a list of alternate names by which the service
38 might be requested.
39
40
41
42 Fields can be separated by any number of SPACE and/or TAB characters. A
43 number sign (#) indicates the beginning of a comment; any characters
44 that follow the comment character up to the end of the line are not
45 interpreted by routines which search the file.
46
47
48 Service names may contain any printable character other than a field
49 delimiter, a NEWLINE, or a comment character.
50
51
52 Any changes to a port assignment do not affect the actual port regis‐
53 tration of the service.
54
56 /etc/nsswitch.conf configuration file for name-service switch
57
58
60 getservbyname(3SOCKET), inetd.conf(4), nsswitch.conf(4)
61
63 /etc/inet/services is the official SVR4 name of the services file. The
64 symbolic link /etc/services exists for BSD compatibility.
65
66
67
68SunOS 5.11 12 Oct 2000 services(4)