Visit Counter

Friday, July 21, 2017

RW-00048: Error: Verify that the format of the file /etc/hosts is of the form "IPAddress hostname.domainname hostname""


Problem:   host/Domain



"Host/Domain
command: /bin/ping -c 1 localhost 
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms

--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.049/0.049/0.049/0.000 ms

host ping has succeeded
command: /bin/ping -c 1 localhost.david 
ping: unknown host localhost.david

RW-50011: Error: - host.domain ping has returned an error: 2 System variable PATH set to:
/usr/bin:/media/disk/Temp/u01/StageR12/startCD/Disk1/rapidwiz/unzip/Linux:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/ local/bin:/usr/local/sbin


RW-00048: Error: Verify that the format of the file /etc/hosts is of the form "IPAddress hostname.domainname hostname""




# cat /etc/hosts


127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
: : 1         localhost localhost.localdomain localhost6 localhost6.localdomain6


192.0.0.10 localhost.apps





Solution:


# vi /etc/hosts


192.0.0.10 localhost.apps localhost