Moxa V2416-W7E [29/88] 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 moxa etc

Moxa V2416-XPE [29/88] 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 moxa etc
V2416 Linux User's Manual Managing Communications
3-5
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 V2416-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.
MOXA:~# mount -o remount,rw /dev/hda1 /
2. Edit /etc/hostname:
MOXA:~# vi /etc/hostname
MOXA
3. After you finish writing or modifying the code, remember to execute umount /to change the root
directory back to Read-only mode.
MOXA:~# umount /
4. Re-configure the hostname.
MOXA:~# /etc/init.d/hostname.sh start
5. Check the new hostname.
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#

Содержание

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

Скачать