Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and system for obtaining an IP address

An IP address and application system technology, applied in the field of communication, can solve the problems of DNS pollution, applications cannot access the server normally, DNS server parsing abnormality, etc.

Active Publication Date: 2021-01-01
北京瑞泰鸿信科技股份有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the problems existing in the prior art, the embodiment of the present invention provides a method and system for obtaining an IP address, which is used to solve the problem that in the prior art, in the process of software development, the application cannot be normal due to DNS pollution or abnormal resolution of the DNS server. Technical issues accessing the server

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and system for obtaining an IP address
  • A method and system for obtaining an IP address

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] This embodiment provides a method for obtaining an IP address, such as figure 2 As shown, the method includes:

[0054] S101. The domain name system server receives a DNS access request sent by a client through a preset port.

[0055] In this step, when the client needs further access to obtain data, it needs to obtain an IP address from the DNS server to achieve, then the client needs to send a DNS access request to the DNS server, and the DNS server receives the DNS access request through the port, so that the client Can access the IP address and port of the server itself. Wherein, the DNS access request includes: the domain name to be requested, the first verification time and the data length. Here, because the network transmission will consume time when sending the DNS request, the first verification time is the current time in milliseconds calculated by the DNS server.

[0056]The DNS server receives the DNS access request sent by the client through a preset po...

Embodiment 2

[0069] Corresponding to Embodiment 1, this embodiment also provides a system for obtaining an IP address, such as figure 2 As shown, the system includes: DNS server 21, client 22 and DNS interface 23; wherein,

[0070] The DNS server 21 is used to receive the DNS access request sent by the client 22 through a preset port; specifically, when the client 22 needs further access to obtain data, it needs to obtain an IP address from the DNS server 21 to implement, then the client 22, it is necessary to send a DNS access request to the DNS server 21, and the DNS server 21 receives the DNS access request through a port, so that the client 22 can access the IP address and port of the DNS server 21 itself. Wherein, the DNS access request includes: the domain name to be requested, the first verification time and the data length. Here, since the network transmission will consume time when sending the DNS request, the first verification time is the current time in milliseconds calculate...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a method and system for obtaining an IP address. The method includes: a domain name system server receives a DNS access request sent by a client through a preset port; and returns an IP address in a predetermined format to a DNS interface according to the DNS access request. data packet; use the DNS interface to parse the IP data packet to obtain the IP address to be requested; send the IP address to the client; wherein, the DNS server is pre-established and provided independently of the application system The DNS server; the resolution protocol used by the DNS interface is independent of the resolution protocol provided by the application system; like this, by establishing the DNS server and the DNS interface, because the DNS interface has a pre-established DNS protocol, and the pre-established DNS protocol and system protocol Therefore, when using the custom DNS protocol to resolve the domain name, the DNS can be prevented from being polluted, so that the IP address to be accessed can be obtained normally, and the data can be accessed normally.

Description

technical field [0001] The invention belongs to the technical field of communication, and in particular relates to a method and system for acquiring an IP address. Background technique [0002] In the process of software development or general data request process, it is often encountered that Domain Name System (DNS, DomainName System) pollution leads to abnormal resolution of DNS server, which leads to the failure of the application to access the server normally and obtain the corresponding Internet protocol ( IP, Internet Protocol) address, which will cause the application to fail to work normally. [0003] Based on this, the present invention provides a method and system for obtaining an IP address, so as to avoid DNS pollution or abnormal DNS server resolution, so that the IP address can be obtained normally and the server can be accessed. Contents of the invention [0004] Aiming at the problems existing in the prior art, the embodiment of the present invention prov...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06H04L29/12
CPCH04L63/0236H04L69/22H04L61/4511
Inventor 刘一琛陈少杰张文明
Owner 北京瑞泰鸿信科技股份有限公司