Moxa W321-LX [41/80] 3 00 putty root moxa etc cat resolv conf resolv conf this file is the resolver configuration file see resolver 5 nameserver 192 68 6 nameserver 168 5 nameserver 140 15 1 nameserve...

Moxa W321-LX [41/80] 3 00 putty root moxa etc cat resolv conf resolv conf this file is the resolver configuration file see resolver 5 nameserver 192 68 6 nameserver 168 5 nameserver 140 15 1 nameserver 140 15 36 0
W321/341 Linux
-2
FTP
In addition to supporting Telnet client/server and FTP client/server, the W321/341 also support SSH and sftp
client/server. To enable or disable the Telnet/ftp server, you first need to edit the file /etc/inetd.conf.
Enabling the ftp server
The following example shows the default content of the file /etc/inetd.conf. The default is to enable the
Telnet/ftp server:
discard dgram udp wait root /bin/discard
discard stream tcp nowait root /bin/discard
#telnet stream tcp nowait root /bin/telnetd
ftp stream tcp nowait root /bin/ftpd -l
Disabling the Telnet/ftp server
Disable the daemon by typing ‘#’ in front of the first character of the row to comment out the line.
SFTP
File Transfer Protocol (FTP) was once the most widely used protocol for transferring files between computers.
However, because FTP sends authentication information and file contents over the wire unencrypted, it's not a
secure way to communicate. SSH File Transfer Protocol (SFTP) addresses this security concern by providing
data transfer over a fully encrypted channel. You can use these alternatives for transferring files securely over
the Internet or any other untrusted network.
DNS
The W321/341 support DNS client (but not DNS server). To set up DNS client, you need to edit three
configuration files: /etc/hosts, /etc/resolv.conf, and /etc/nsswitch.conf.
/etc/hosts
This is the first file that the Linux system reads to resolve the host name and IP address.
/etc/resolv.conf
This is the most important file that you need to edit when using DNS for the other programs. For example,
before you use #ntpdate time.nist.goc 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 if
the DNS server’s IP address is 168.95.1.1:
nameserver 168.95.1.1
10.120.53.100 - PuTTY
root@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

Содержание

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

Скачать
Случайные обсуждения