Moxa V2616A-C8-CT-W7E [26/111] Etc hostname

Moxa V2616A-C7-T-LX [26/111] Etc hostname
V2616A Linux Managing Communications
3-4
/srv/tftp
Disabling the Telnet/TFTP Server
Disable the daemon by typing #in front of the first character of the row to comment out the line. For example,
to disable the TFTP server, use the following commands:
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd
/srv/tftp
After you finish writing or modifying the code, remember to execute umount /to change the root directory
back to Read-only mode.
MOXA:~# umount /
DNS Client
The V2616A-LX supports DNS client (but not DNS server). To set up DNS client, you need to edit three
configuration files: /etc/hostname, /etc/resolv.conf, and /etc/nsswitch.conf.
/etc/hostname
1. Edit /etc/hostname:
moxa@MOXA:~# sudo vi /etc/hostname
MOXA
2. Re-configure the hostname.
moxa@MOXA:~# sudo /etc/init.d/hostname.sh start
3. Check the new hostname.
moxa@MOXA:~# hostname
/etc/resolv.conf
This is the most important file that you need to edit when using DNS. For example, before 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 servers IP address is specified
with the nameserver command. For example, add the following line to /etc/resolv.conf (assuming the DNS
servers IP address is 168.95.1.1): nameserver 168.95.1.1
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#

Содержание

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

Скачать