This method can obtain the Domain Name of the remote host or the local name. The getHostName method is defined as follows:
Public String getHostName ()The following are three ways to create an InetAddress object. In these three ways, the values
This method can get the domain name of the remote host, and can also get the native name . The GetHostName method is defined as follows:Public String gethostname ()Here are three ways to create a InetAddress object, and in these three ways, the
1. gethostname ()
The gethostname () method can obtain the Domain Name of the remote host or the local name. The gethostname method is defined as follows:
public String getHostName()
The following are three ways to create an inetaddress object. In
In the process of finding a domain name through DNS, it is possible to go through multiple intermediate DNS servers to find the specified domain name, so finding the domain name on the DNS server is a very expensive operation. In Java, the DNS cache
0x00 Traditional SSRF filter
The traditional way of ssrf filters is roughly the following steps:
(1) Gets the URL of the input, extracting the host from the URL
(2) DNS resolution of the host to obtain the resolved IP
(3) Check whether the IP is
Obtain IP and MAC addresses using DNS and WMI specifications
In C # programming, it is easy to obtain the Host Name and Host IP address. It provides a DNS class that allows you to easily obtain the Host Name and IP address.Example:String
IP is a common application of the Internet, allowing different hosts to find each other's addressing protocol. The IP address consists of a number of 4 decimal digits, the value of each number is between 0~255, although it solves the problem of
1. gethostname () method
Definition: Public String gethostname ()
Gethostname returns different values based on the method used to create an inetaddress object.
1. UseGetlocalhost ()Inetaddress object created by the method
GethostnameThe local
The getCanonicalHostName method is the same as the getHostName method to obtain the Domain Name of the remote host. But they have a difference. The host name obtained by getCanonicalHostName is the host alias obtained by getHostName.
C # CIDR Block Scanning
Summary
I think everyone is very familiar with the scanners such as Xiaorong time. Do you have the impulse to write your own articles. Recently, Microsoft has implemented the push. net strategic solution. C # is the
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.