/* GetIp. c -- Get Local or remote Ip address by domain name **/# Include # Include # Include # Include # Include # Include # Define h_addr h_addr_list [0]Char *GetIp (char * dn_or_ip){Struct sockaddr_in addr;Struct hostent * host;Struct ifreq req;Int sock;If (dn_or_ip = NULL) return NULL;If (strcmp (dn_or_ip, "localhost") = 0 ){Sock = socket (AF_INET, SOCK_DGRAM, 0 );Strncpy (req. ifr_name, "eth0", IFNAMSI
The company's network is divided into several different network segments, belonging to the subnet 192.168.10. */255.255.255.0 (IP Address/subnet mask) of several Win98 system computers (to renew domain servers) to access the subnet 192.168.5. */255.255.255.0.
If the Win2000 system is a good solution, simply add an IP address belonging to 192.168.5. subnet in the
Explain to relatives and friends what the series is IP, port, and domain name
IP addresses, ports, and domain names are no stranger to professional people, but they may not be familiar to non-professional people. The purpose of this article is:
First, I want to install "brick house" (in fact I don't know much about it
The website cannot be opened through the domain name, but it can be opened through the IP address. it is normal to open other websites! The website cannot be opened through the domain name, but it can be opened through the IP address. it is normal to open other websites! Server win2003 ., Is it a local server or a purc
In linux, you only need to modify the file to resolve the domain name to an IP address, and add the IP address of the domain name server of the ISP (network service provider) in your location to it, if you do not know the IP address of your local
#由于是多 IP listens to the same port so write this
The code is as follows
Copy Code
Listen 80#若是多ip Multi-Port is#Listen 192.170.2.1:80#Listen 192.170.2.5:8000#由于使用多ip Namevirtualhost This settingNamevirtualhost 1.2.3.4:80Namevirtualhost 5.6.7.8:80#第一个ip给域名www. 111cn.netdocumentroot/www/111cn.
No more cost-effective configuration: Hong Kong server Dual core 4G memory Exclusive International bandwidth 5M 399 YuanL5640 12 Core 8G memory Exclusive international bandwidth 5M 899 yuanE5 2670 16 Core 8G Memory Exclusive International bandwidth 5M 1200 yuanqq:2727453595Domain name provider to provide domain name resolution service, you can directly enter the domain name management background, there is a
apache2.2.x+tomcat single IP multiple domain name multi-site Virtual host configuration detailed (Win2003 environment)
A new server was recently purchased, and the apache+tomcat+php Web application environment was successfully consolidated under WINDOWS2003. The next encounter is through the server under the single IP configuration of multiple sites and multiple
In operation and maintenance work, sometimes need to query some domain name registration information (domain name NS, registered users, registered mailbox, etc.), you can use the WHOIS command.The WHOIS command is used to find and display user-related information for a specified account (or domain name), because it is located in the WHOIS database of network solu
Previously, the front-end pages and interfaces were accessed by ip addresses in the server directory. after the front-end pages were accessed by a domain name, there was no need for IP addresses to access the interface, or was there a problem of cross-origin and SESSION loss? How can this problem be solved? The front-end page and interface are in the same directo
Currently, many websites are deployed separately on the front and back ends, which is relatively secure. Even if hackers get the foreground shell, they cannot find the background management address to increase security.
You should know the functions of the hosts file. When you access a website, you need to resolve the domain name to an IP address to connect and obtain the content, when resolving a
-vhosts.confConfiguring the Extra/httpd-vhosts.conf FileConfiguration example, how many subwebs there are, configure several ServerAdmin [emailprotected] DocumentRoot "/A" ServerName www.a.com #ServerAlias www.dummy-host.example.com errorlog "Logs/a-error.log" customlog "logs /a-access.log "Common Options Indexes followsymlinks allowoverride None Order Allow,deny allow from all ServerAdmin [email protected]DocumentRoot "/b"ServerName www.b.com#ServerAlias www.dummy-host
Local is PHP's integrated environment Phpstudy, built a site:
Figure A
System files are written like this:
# 102.54.94.97 rhino.acme.com # source Server
# 38.25.63.10 x.acme.com # x client Host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
192.168.1.222:3034 www.yyg.cn
/////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
Scenario: The day before the virtual machine in the configuration of the centos6.3, you can normally surf the internet, and the FTP server to build up, today a boot this goods unexpectedly can not surf the internet, depressed ....
Problem:
The following figure:
Can ping the IP address, but the domain name Ping pass ...
Resolution process: STEP1) A preliminary assessment of DNS problems
Step2) Googlin
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.