Hear how the changing needs of massive scale-out computing is driving a transfomation in technology and learn how HP is supporting this new evolution of the web.
More... (1 Reply)
What are the server requirements, Software requirements, Network requirements etc,
Please help me.. as 'm new 'm unable to get things done @ my end alone.
Please refrain from typing subjects completely in upper case letters to get more attention, ty. (5 Replies)
Hi,
We are having many RedHat linux Server with Cluster facility for availability of service like HTTPD / MySQL.
We face some issue while some issue related to power disturbance / fluctuation or Network failure. There is two Cluster Node configured in... (0 Replies)
Three days ago we received an expected notice from our long time data center that they were going dark on Sept 12th.
About one and a half hours ago, after three days of marathon work, I just cut over the unix.com to a new data center with a completely new OS and Ubuntu distribution. (22 Replies)
Dear All,
There was a problem in the data center data, which caused the server to be unreachable for about an hour.
Server logs show the server did not crash or go down.
Hence, I assume there was a networking issue at the data center.
Still waiting for final word on what happened.
... (4 Replies)
There was a problem with our data center today, creating a site outage (server unreachable).
That problem has been resolved.
Basically, it seems to have been a socially engineered denial-of-service attack against UNIX.com; which I stopped as soon as I found out what the problem was.
Total... (2 Replies)
Discussion started by: Neo
2 Replies
LEARN ABOUT FREEBSD
realhostname
REALHOSTNAME(3) BSD Library Functions Manual REALHOSTNAME(3)NAME
realhostname -- convert an IP number to the real host name
LIBRARY
System Utilities Library (libutil, -lutil)
SYNOPSIS
#include <libutil.h>
int
realhostname(char *host, size_t hsize, const struct in_addr *ip);
DESCRIPTION
The function realhostname() converts ip to the corresponding host name. This is done by resolving ip to a host name and then ensuring that
the host name resolves back to ip.
host must point to a buffer of at least hsize bytes, and will always be written to by this function.
If the name resolution does not work both ways or if the host name is longer than hsize bytes, inet_ntoa(3) is used to convert ip to an ASCII
form.
If the string written to host is hsize bytes long, host will not be NUL terminated.
RETURN VALUES
The realhostname() function will return one of the following constants which are defined in <libutil.h>:
HOSTNAME_FOUND
A valid host name was found.
HOSTNAME_INCORRECTNAME
A host name was found, but it did not resolve back to the passed ip. host now contains the numeric value of ip.
HOSTNAME_INVALIDADDR
ip could not be resolved. host now contains the numeric value of ip.
HOSTNAME_INVALIDNAME
A host name was found, but it could not be resolved back to any ip number. host now contains the numeric value of ip.
SEE ALSO gethostbyaddr(3), gethostbyname(3), inet_ntoa(3), realhostname_sa(3)BSD April 6, 1999 BSD