Preface: First to Microsoft's https://www.iis.net/downloads/microsoft/url-rewrite download URL rewriteGoal: Enter IP to jump to the website where the domain name residesLike 58 of 115.159.231.173 Jump to Https://passport.58.com/loginLet's look at the 58 example.After we enter IP in the address barWhere the arrows point is the jump.We've seen the 58 jump, so our A
DNS is a domain name resolution system, it can convert IP to domain names, but also to convert domain names to IP
1. Install DNS Service
Start-〉 Settings-〉 Control Panel-〉 Add/Remove Programs-〉 Add/Remove Windows Components-〉 "network Services"-〉 select "
IP Reverse Lookup domain name, now used is generally Bing's an IP query function, that is ip:222.222.222.222
The PHP code becomes
Calling methods
$result =getresult ("124.205.228.114");
Print_r ($result);
function GetContent ($url) {
$content =file_get_contents ($url);
return $content;
}
function GetResult (
In daily life, people often know the host domain name without knowing the host IP address, and the socket API is based on IP address, so need to use DNS domain name resolution server to parse.So the first simple introduction of the principle of DNS, DNS server system is tree-based structure, the top-level
Ask for help, server IP by others domain name resolution how to block?
Now encountered a problem to ask everyone to help, recently my website IP was another domain name resolution and can access, how can we stop other domain name resolution I stand
Today, when learning PHP, there is a requirement: an IP (such as: 127.0.0.1) and multiple domain names (virtual host) binding, the following is my solution:Solution One: differentiate different virtual hosts by port① follow the method of binding a site to prepare1. First Develop your own website (d:/myblog (stored in the MyBlog directory of D-disk))2. Configure the httpd.conf file (stored in the Conf folder
As mentioned above, accessing a machine depends on the IP address and MAC address. The MAC address can be obtained through the ARP Protocol. Therefore, this is transparent to users, but the IP address cannot be used, in any case, users need to use a specified IP address to access a computer, and the IP address is not e
In order to avoid other people to the non-filing of the domain name resolution to their server IP and the server is broken network, you need to set the Nginx on the IP access to the server, only through the domain name access. The most critical point is to add this line to the server's settings: Listen default, which m
PHP gets a lot of remote host file content methods, such as: File_get_contents,fopen and so on.
But if the same domain name corresponds to a different IP, for example demo.fdipzone.com corresponds to 3 IP192.168.100.101, 192.168.100.102, 192.168.100.103.
You cannot use file_get_contents to get the content of 192.168.100.101 because it is assigned to different hosts based on the load balancing principle
Domain Name Lookup by IP address, which is usually an IP address query function of bing, that is, IP Address: 222.222.222.222Writing php code becomes// Call Method$ Result = getResult ("124.205.228.114 ");Print_r ($ result );Function getContent ($ url ){$ Content = file_get_contents ($ url );Return $ content;}Function
()Returns a string of host addresses associated with the InetAddress object.String GetHostName ()Returns a string of host names associated with the InetAddress object.int Hashcode ()Returns the hash code of the calling object.Boolean ismulticastaddress ()Returns true if the Internet address is a multicast address, otherwise it returns false.String toString ()Returns the host name string and IP address.
Below we write a program to resolve the
Modifying a DNS domain name forwarder to resolve an IP address resolution error caused by a website that cannot be accessedFirst of all, thank colleagues off guidance, to solve the problem smoothlyOpen a Web site, access a domain name, DNS resolves to the wrong IP address, then the site will not be properly accessed1,
MasterProgramCode:
// Obtain the IP address of the host domain nameProtected void btnshowlocal_click (Object sender, eventargs E){Txtashowanswer. value = "";String strshowany = string. empty;
String strhostname = DNS. gethostname (); // obtain the local host nameStrshowanwser = "the local host's name is:" + strhostname + "/N ";Iphostentry iphost = DNS. gethostentry (strhostname); // resolve the host n
I am using a sniffer tool called Dnsquerysniffer, which can display real-time DNS query records for local computers, and for each DNS resolution query, display the following information: Host name, port number, query ID, request type, request response time, response code, etc. and returns the contents of the DNS record. Domain name added to the Hosts file, Dnsquerysniffer will no longer detect the domain na
Why the domain name has been resolved a few days, ping My Computer or the original IP?
My domain name is bound 192.168.1.3 in the local debugging, and later bound to 222.186.50.211 this IP address, after the effective all other computers are already pointing to this IP addre
Solution One: Differentiate different virtual hosts by port
① follow the method of binding a site to prepare
1. First Develop your own website (d:/myblog (stored in the MyBlog directory of D-disk))
2. Configure the httpd.conf file (stored in the Conf folder of the Apache installation directory) and enable httpd-vhosts.conf (remove the # number in front of the second line).
3. Configure the httpd-vhosts.conf file (stored in the extra folder of the Apache installation directory)
4. Add
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.