Moxa V2401-CE [34/108] Etc nsswitch conf

Moxa V2401-CE [34/108] Etc nsswitch conf
V2401/2402 Series Linux User’s Manual Managing Communications
3-7
/etc/resolv.conf
This is the most important file that you need to edit when using DNS. For example, before you
using # ntpdate time.stdtime.gov.tw to update the system time, you will need to add the DNS
server address to the file. Ask your network administrator which DNS server address you should
use. The DNS server’s IP address is specified with the nameserver command. For example, add
the following line to /etc/resolv.conf (assuming the DNS server’s IP address is 168.95.1.1):
nameserver 168.95.1.1
/etc/nsswitch.conf
This file defines the sequence of files, /etc/hosts or /etc/resolv.conf, to be read to resolve the IP
address.
The hosts line in /etc/nsswitch.conf means use /etc/host first and DNS service to resolve the
address.
MOXA:/etc# cat resolv.conf
#
# resolv.conf This file is the resolver configuration file
# See resolver(5).
#
#nameserver 192.168.1.16
nameserver 168.95.1.1
nameserver 140.115.1.31
nameserver 140.115.236.10
MOXA:/etc#
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch
functionality.
# If you have the `glibc-doc-reference' and `info' packages
installed, try:
# `info libc "Name Service Switch"' for information about this
file.
passwd: compat
group: compat
shadow: compat
hosts: files dns
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 18:00 ? 00:00:02 Init [2]
root 2 0 0 18:00 ? 00:00:00 [kthreadd]
root 3 2 0 18:00 ? 00:00:00 [migration/0]
root 4 2 0 18:00 ? 00:00:00 [ksoftirqd/0]
root 5 2 0 18:00 ? 00:00:00 [watchdog/0]
root 6 2 0 18:00 ? 00:00:00 [migration/1]
root 7 2 0 18:00 ? 00:00:00 [ksoftirqd/1]

Содержание

Похожие устройства

Скачать