Moxa V2401-CE [33/108] Etc hostname

Moxa V2401-CE [33/108] Etc hostname
V2401/2402 Series Linux User’s Manual Managing Communications
3-6
After you finish writing or modifying the code, remember to execute “umount /” to change the
root directory back to Read-only mode.
DNS Client
The V2401/2402-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. Mount the root file system with write permission.
2. Edit /etc/hostname:
3. After you finish writing or modifying the code, remember to execute “umount /” to change the
root directory back to Read-only mode.
4. Re-configure the hostname.
5. Check the new hostname.
MOXA:~#
u
mount /
MOXA:~# mount -o remount,rw /dev/
s
d
a
1
/
MOXA:~# vi /etc/hostname
MOXA
MOXA:~#
u
mount /
MOXA:~#
/
etc/init.d/hostname.sh start
MOXA:~#
h
ostname
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

Содержание

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

Скачать