Hello,
I am installing redhat linux 6.2 on an intel based system. Whether i want to know any naming conventions should i follow.
ie Any convention to follow to name a linux machine(To give hostname). Simillarly for domain name also. Please suggest in this regard (1 Reply)
Using Solaris 8 (or WINXP).
I am trying to look up a specific DNS hostname, but I don't know which DNS server houses that entry. How can I find the hostname?
nslookup gives me the following:
C:\>nslookup hostname
Server: dnsserver
Address: x.x.x.x
*** dnsserver can't find hostname:... (2 Replies)
Dear All.
I will like to know beside the following command
"hostname hostname"
what other command that can change the hostname of the Unix.
Thanks. (4 Replies)
Hello,
I am new to Solaris.
I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
I was trying to execute the following command
ifConfig -a
and after a while my hostname changed to -a
I checked /etc/hosts and /etc/nodename all seems to be correct.
1. How my hostname changed to -a ? (What i could have done wrong)
2. if you type hostname where does solaris read... (1 Reply)
Hi All,
So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says:
It should say:
What gives? And how do... (4 Replies)
Hi,
I am unable to get $HOSTNAME value in a remote script when executed through SSH. Also the scripts hangs and doesnt return to the calling environment.
For instance
command -
ssh user1@box2 "cd /var/home/bin ; ./generateScript.sh"
Can any one plese throw light on the issue and... (5 Replies)
Hello i'm trying to get the ip of a telnet session.
With who -u I get the hostname of the user connecting to my server, because it checks the reverse DNS. But I only want the ip.
Versions: HP-UX HP Release B.11.31
Who command: Hewlett-Packard Company - 4 - HP-UX 11i Version... (2 Replies)
Discussion started by: boltpower
2 Replies
LEARN ABOUT PHP
geoip_continent_code_by_name
GEOIP_CONTINENT_CODE_BY_NAME(3) 1 GEOIP_CONTINENT_CODE_BY_NAME(3)geoip_continent_code_by_name - Get the two letter continent codeSYNOPSIS
string geoip_continent_code_by_name (string $hostname)
DESCRIPTION
The geoip_continent_code_by_name(3) function will return the two letter continent code corresponding to a hostname or an IP address.
PARAMETERS
o $hostname
- The hostname or IP address whose location is to be looked-up.
RETURN VALUES
Returns the two letter continent code on success, or FALSE if the address cannot be found in the database.
Continent codes
+-----+----------------+
|Code | |
| | |
| | Continent name |
| | |
+-----+----------------+
| | |
| AF | |
| | |
| | Africa |
| | |
| | |
| AN | |
| | |
| | Antarctica |
| | |
| | |
| AS | |
| | |
| | Asia |
| | |
| | |
| EU | |
| | |
| | Europe |
| | |
| | |
| NA | |
| | |
| | North america |
| | |
| | |
| OC | |
| | |
| | Oceania |
| | |
| | |
| SA | |
| | |
| | South america |
| | |
+-----+----------------+
EXAMPLES
Example #1
A geoip_continent_code_by_name(3) example
This will print where the host example.com is located.
<?php
$continent = geoip_continent_code_by_name('www.example.com');
if ($continent) {
echo 'This host is located in: ' . $continent;
}
?>
The above example will output:
This host is located in: NA
SEE ALSO geoip_country_code_by_name(3).
PHP Documentation Group GEOIP_CONTINENT_CODE_BY_NAME(3)