08-18-2015
Unfortunately, 0.0.0.0 has different meanings depending on where it's used. The formal definition is given in RFC1122 Section 3.1.2.3, i.e this host on this network. Specifically, all available IP addresses on this host.
Assuming you are talking about a UNIX-like OS and not Microsoft Window, I have never seen 0.0.0.0 defined in /etc/hosts but have nearly always seen 127.0.0.1 defined. There simply is no reason to put 0.0.0.0 in /etc/hosts.
These 2 Users Gave Thanks to fpmurphy For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have created a shell script that spawns multiple background processes (spawns sqlplus application). I use an array to capture the process id of those background processes. I then loop through the array and issue a 'wait' command to wait on the process id that was captured in the array. I am... (2 Replies)
Discussion started by: max_largo
2 Replies
2. UNIX for Advanced & Expert Users
my apache 2.0 is up and running but after trying to reconfigure it for specifics I ended up with a permanent eror message that I can't seem to get rid of .. when I run the server ( just / */apachect1 start )
the message reads "cannot locate name localhost for server 127.0.0"
so far I have tried... (2 Replies)
Discussion started by: moxxx68
2 Replies
3. Shell Programming and Scripting
I have a script to download a file using wget.
It works if I execute it from the command line.
But, if I run it in cron, it doesnt work and I am getting the following in the cron log:
> CMD: /export/home/username/test
> username 23159 c Tue Aug 1 14:40:00 2006
< username 23159 c Tue Aug ... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
4. Solaris
I have just installed Solaris 10 X86 today, but I can't use internet at all on it.
When I was installing it, it only asked me to create a hostname, without even asking me this computer is "networked" or "non-networked".
After I finished installation, I use "netstat -rn" command, and only see... (3 Replies)
Discussion started by: Diamondust
3 Replies
5. HP-UX
HP-UX B.11.23 U 9000/800 636114222 unlimited-user license
I see this error in my logs sometimes and have very little info on it...
I have searched online for some documentation and haven't been able to find much on this issue.
The only thing I found on one site is that if my /tmp folder... (4 Replies)
Discussion started by: zixzix01
4 Replies
6. Shell Programming and Scripting
Hi All,
While running shell script i got following output.
interpreter "usr/bin/ksh" not found
sh: step1.sh: not found.
ldnhpux | oracle >echo $?
127
- Running command "which ksh" retruns "usr/bin/ksh".
- I found some information on web stating to remove extra carriage return chars,... (8 Replies)
Discussion started by: RuchirP
8 Replies
7. Solaris
one of our sparc servers is having this problem:
Jun 27 13:05:00 sparki sendmail: p5: from=root, size=309, class=0, nrcpts=1, msgid=<201106271305.p5@sparki>, relay=root@localhost
Jun 27 13:05:00 sparki sendmail: p5: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,... (3 Replies)
Discussion started by: orange47
3 Replies
8. Solaris
I was checking routing table, and noticed that our server has a lot packets from localhost:
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
..
127.0.0.1 127.0.0.1 ... (1 Reply)
Discussion started by: orange47
1 Replies
9. UNIX for Advanced & Expert Users
Hi All,
I am trying to create background processes and then check their status later. But I am getting return codes as 0,127 randomly
On checking the return codes for wait, I found the below. Do I need to treat return code of 127 as successful as well?? as we know the process id passed is... (7 Replies)
Discussion started by: tostay2003
7 Replies
HOSTS(5) BSD File Formats Manual HOSTS(5)
NAME
hosts -- host name data base
DESCRIPTION
The hosts file contains information regarding the known hosts on the network. For each host a single line should be present with the follow-
ing information:
Internet address
Official host name
Aliases
Items are separated by any number of blanks and/or tab characters. A ``#'' indicates the beginning of a comment; characters up to the end of
the line are not interpreted by routines which search the file.
Network addresses may either be specified for IP version 4 or version 6. IP version 4 addresses are specified in the conventional dotted
address notation. IP version 6 addresses are specified using the colon-separated notation described in RFC1924.
Host names may contain any printable character other than a field delimiter, newline, or comment character.
The hosts file is read by mDNSResponder(8) and used to supply results for calls to getaddrinfo(3), getnameinfo(3), etc. in addition to
results obtained from multicast and unicast DNS.
FILES
/etc/hosts
SEE ALSO
gethostent(3), getipnodebyname(3), getaddrinfo(3), getnameinfo(3)
RFC1924: A Compact Representation of IPv6 Addresses.
HISTORY
The hosts file format appeared in 4.2BSD.
4.2 Berkeley Distribution December 11, 1993 4.2 Berkeley Distribution