CN105141712B - A kind of offline domain name analytic method and device - Google Patents
A kind of offline domain name analytic method and device Download PDFInfo
- Publication number
- CN105141712B CN105141712B CN201510524705.8A CN201510524705A CN105141712B CN 105141712 B CN105141712 B CN 105141712B CN 201510524705 A CN201510524705 A CN 201510524705A CN 105141712 B CN105141712 B CN 105141712B
- Authority
- CN
- China
- Prior art keywords
- network
- domain name
- module
- abnormal
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of offline domain name analytic method and devices.Wherein method includes the following steps: A, judges current network state and detects to dns server, then sent when finding Network Abnormal DNS analyze the instruction again and/or IP redirect instruction;B, the domain name of Network Abnormal partial association is parsed again;C, the redirection of IP access is carried out to the Network Abnormal output of Network Abnormal module;D, network access information prompt is provided, provides network service based on local.Wherein device includes network judgment module, DNS weight parsing module, IP redirection module and local area network module.The present invention can also provide reliable optimal domain name mapping result and network for the terminal of networking in the case where Network Abnormal under various Network status, especially and jump as a result, promoting the experience of user network access.
Description
Technical field
The present invention relates to a kind of offline domain name analytic method and devices, for evading online experience caused by network failure not
It is good, belong to network communication field.
Background technique
Currently with mobile Internet explosive growth, increasingly frequent, user's online experience of terminal device network insertion
It is more sensitive, and network environment is intricate, the network request of terminal is greatly tested.Pass through under user's moving condition
3G/4G mobile network switchs to especially test the stability of network connection under the application environment of WiFi networking.
Influence the influence that the domain name mapping in the basic link of online experience is often limited by bandwidth.It is easy in mobile network
The unstable factors such as signal weaker, the interference of appearance affect bandwidth, further result in network terminal appearance when requesting domain name
It is abnormal, hence it is evident that reduce network speed and the page reaction of intelligent terminal, and then influence the mood of user.In addition, though well known
Domain name is a kind of user-friendly and generates network address alias, but may can not be normal because of user's erroneous input domain name
Domain name is parsed, online experience is caused to be deteriorated.On the one hand, the application scenarios for WIFI being provided under moving condition still belong to the starting stage, separately
On the one hand, the hot spot of mobile operator deployment has similar denounce.Such as: 1. net drops or wireless network vacation link cause
Network communication interrupt after domain name can not normally parse, eventually lead to user's intelligent terminal connection online after access outer net can go out
Existing page white screen;2. eventually leading to the connection of user's intelligent terminal because the reasons such as erroneous input network address cause domain name not parse normally
Access outer net will appear page white screen after online;3. domain name is caused to can parse the effect but reality is surfed the Internet when network delay is big
It is very poor, it eventually leads to access outer net after the connection online of user's intelligent terminal and will appear the page and load or load always and unsuccessfully show
Webpage can not be opened by showing;4. network is not unobstructed enough, browser carries out domain name by accelerating engine and automatically parses and jump
It is automatically performed, access outer net will appear page white screen or show and can not beat after eventually leading to the connection online of user's intelligent terminal
Open webpage.
Summary of the invention
For disadvantages mentioned above and technical problem, the present invention provides a kind of offline domain name analytic method and device, can evade
Online experience caused by network failure is bad, and especially improvement mobile network turns user's online experience in the application scenarios of WiFi.
One aspect of the present invention provides a kind of offline domain name analytic method, includes the following steps: A, judges currently network-like
State simultaneously detects dns server, then sent when finding Network Abnormal DNS analyze the instruction again and/or IP redirect instruction;
B, analyzed the instruction again according to DNS come with the domain name detection data that obtains in advance, weight is carried out to the domain name of Network Abnormal partial association
Parsing, by the domain name mapping that cannot originally parse to locally;C, the domain name for redirecting instruction according to IP and obtaining in advance detects number
According to the redirection of the Network Abnormal output progress IP access of Network Abnormal module, so that associated IP access is redirected to this
Ground;D, network access information prompt is provided, network service is provided based on local, is reset to correspond to IP when Network Abnormal
To address provide network service access.
Further, the step A includes: whether detection locally has default route;If having default route, to pre-
The outer net detection IP of setting carries out the test of PING packet;The detection of PING packet is carried out to preset dns server, network is additionally provided and loses
Wrap serious assessment.
Preferably, the step A further include: detection dns server address list detects the accessibility of address, so one by one
Afterwards according to the accessibility and connectivity of corresponding address, to obtain the IP address of domain name or enter IP address pond management process.
Further, the step C includes: and then redirects all outer net data packets in local network when Network Abnormal
Module;When network is normal, then external network data packet is let pass.
Further, the step D includes: that prompt the user be network access interrupt caused by which kind of reason;There is provided from
Line WEB station services, to provide network service by local resource in the case where Network Abnormal.
Another aspect of the present invention provides a kind of offline domain name mapping device, comprising: network judgment module, it is current for judging
Network state and dns server is detected, then sent when finding Network Abnormal DNS analyze the instruction again and/or IP weight
Directional instructions;DNS weight parsing module, for analyzed the instruction again according to DNS come with the domain name detection data that obtains in advance, to network
The associated domain name in unusual part is parsed again, by the domain name mapping that cannot originally parse to locally;IP redirection module, is used for
The domain name detection data for redirecting instruction according to IP and obtaining in advance carries out IP visit to the Network Abnormal output of Network Abnormal module
The redirection asked, so that associated IP access is redirected to local;Local area network module is mentioned for providing network access information
Show, provides network service based on local, connect so that the address for corresponding to IP redirection when Network Abnormal provides network service
Enter.
As a further improvement, the network judgment module includes: route exploration submodule, for whether detecting local
Has default route;Outer net detection of connectivity submodule, for being detected when having default route to presetting outer net
IP carries out the test of PING packet;Dns server detects submodule, for carrying out the detection of PING packet to preset dns server, additionally
The serious assessment of Network Packet Loss is provided.
Preferably, the dns server detection submodule is also configured to detection dns server address list, examines one by one
The accessibility of geodetic location, then according to the accessibility and connectivity of corresponding address, to obtain the IP address of domain name or enter IP
Address pool management process.
As a further improvement, the IP redirection module includes: data packet management submodule, for working as Network Abnormal
When all outer net data packets are redirected in local area network module, and when network is normal, then external network data packet is put
Row.
As a further improvement, the local area network module includes: Network Abnormal prompting submodule, for mentioning for user
Show it is network access interrupt caused by which kind of reason;WEB service submodule, for providing offline WEB station services, thus
Network service is provided by local resource in the case where Network Abnormal.
The invention has the benefit that also can be especially connection in the case where Network Abnormal under various Network status
The terminal of net provides reliable optimal domain name mapping result and network and jumps as a result, promoting the experience of user network access;?
In the case where Network Abnormal, moreover it is possible to provide the prompt of network state situation for user, access local network services.
Detailed description of the invention
Fig. 1 show preferred application scenarios according to an embodiment of the present invention;
Fig. 2 show flow chart according to the method for the embodiment of the present invention;
Fig. 3 show the module frame chart of device according to an embodiment of the present invention;
Fig. 4 show the schematic diagram of the network judgment module in the apparatus according to the invention;
Fig. 5 show domain name mapping flow diagram according to the present invention;
Fig. 6 show IP address pond according to the present invention management function and illustrates schematic diagram;
Fig. 7 show the schematic diagram of IP policy feedback according to the present invention.
Specific embodiment
Offline domain name analytic method and device according to the present invention, can with combining wireless network bandwidth technology, NAT technology,
DNS technology is bad to improve network hotspot caused online experience in Network Abnormal.Preferably, the method and device can be with
Application scenarios applied to network shown in FIG. 1 composition, wherein intelligent terminal passes through WIFI connection network hotspot equipment (3G/4G
Turn WIFI equipment), and network hotspot equipment is dialled up on the telephone by mobile network, so that the intelligent terminal can pass through WIFI
Access internet.
Fig. 2 show process according to the method for the embodiment of the present invention, wherein offline domain name analytic method includes following step
It is rapid: A, to judge current network state and dns server is detected, then send DNS when finding Network Abnormal and parse again
Instruction or IP redirect instruction;B, analyzed the instruction again according to DNS come with the domain name detection data that obtains in advance, to Network Abnormal portion
Associated domain name is divided to be parsed again, by the domain name mapping that cannot originally parse to locally;C, according to the instruction of IP redirection and in advance
The domain name detection data first obtained carries out the redirection of IP access to the Network Abnormal output of Network Abnormal module, so that association
IP access be redirected to local;D, network access information prompt is provided, network service is provided based on local, thus different in network
The address that IP redirection is corresponded to when often provides network service access.
Fig. 3 show apparatus module block diagram according to an embodiment of the present invention.Wherein, offline domain name mapping device includes network
Judgment module, DNS weight parsing module, IP redirection module and local area network module.These modules are described in detail below.
Network judgment module is used to judge network state, for example finds that online experience is poor (for example, opening webpage white screen, nothing
Method opens that webpage, outer net webpage loading velocity is very slow for access, vacation page access etc. caused by browser accelerating engine) then send out
Parsing acts again by IP redirection and/or DNS out.Therefore, under any Network Abnormal so that user can be accessed it is addressable
Network site.Network judgment module can judge information with output network state.Network judgment module can continue work on backstage
Make, reliable network environment foundation in real time is provided, provides reference frame for subsequent module.For example, as shown in figure 4, network module
It is configured as executing following steps: route exploration step, whether detection is local has default route, which is that the network equipment is
It is no being capable of primary condition outside connection;Outer net detection of connectivity step is on the basis of having default route, to presetting
Outer net detection IP carry out PING packet test;Dns server detection steps carry out the detection of PING packet to preset dns server,
The process has specific specific aim compared with previous step, which can be additionally provided Network Packet Loss and seriously assess, if network energy
It reaches connection but packet loss is extremely serious, then can provide relevant network parameter for subsequent module.
DNS weight parsing module: in conjunction with the perception to Network Abnormal part of output and own module of network judgment module
Integrated network judgement is carried out, associated domain name is parsed again, by the domain name mapping that cannot originally parse to locally.
IP redirection module: when user is without domain name mapping, and in Network Abnormal, Network Abnormal mould is received
The Network Abnormal output of block carries out the redirection of IP access, so that associated IP access is redirected to local.IP redirection module
After the result for receiving network judgment module, according to the content of parameter that network judgment module provides, corresponding iptables is added
Rule.All outer net data packets are redirected in local area network module if Network Abnormal, if network normally if to outer net
Data packet is let pass.The strategy has associated dns name IP for client-cache, and the case where being accessed with the IP have it is obvious
Optimization function.
Local area network module: providing localized network service, prompts user is caused by which kind of reason in network access
It is disconnected, and network service is locally being provided, so that parsed again when Network Abnormal by DNS when being redirected to local with IP,
Offline WEB service is provided, network state is prompted and provides local network services (for example, music, film, news, APP are downloaded
Deng).
According to one embodiment of present invention, domain name mapping process can schematically as shown in Figure 5.Entire parsing is blocked
The process of cutting realization preferably in the Router (routing), concrete function and steps are as follows.
1.DNS protocol blocking mainly passes through NAT data forwarding and realizes, i.e. all dns resolutions of slave computer are all forced by this
Router is realized.
2.DNS server detecting function is that one is done to the dns server detecting function in network judgment module in detail herein
Thin supplement.Dns server address list is detected, detects the accessibility of address one by one, is attempted and the address under conditions of reachable
Carry out standard DMS protocol communication, if it is reachable and communication effectively, can from corresponding end obtain domain name IP address, this process with
Existing general dns resolution process is no different;If address is unreachable, or the multiple detection addresses attempted are all unreachable, then immediately
Into IP address pond management process;If address is all up but can not establish normal dns resolution or parsing failure, enter
IP address pond management process;If zero-address queue, it is transferred to IP address pond management process immediately;If address it is several it is forthright can
It reaches, is then transferred to IP address pond management process;If domain name to be detected is invalid, it is transferred to IP address pond management process immediately.In addition
Domain name can be forced to feed back during this, obtain practical IP without detecting outer net dns server in this mode, it can be direct
Preset strategy IP address is fed back, the parsing time is shortened.
3.IP address pool management function is then that the process of IP is returned according to certain strategy, and the process is customizable.IP address pond
Management function explanation is as shown in Figure 6.
A preferred embodiment in the present embodiment is as follows: Router itself is there are WEB server and can provide http clothes
Business then can provide the offline WEB service in local in the IP address write-in stored reservoir of the Router.The applied field of the example
Scape is very extensive, for example local media service can be provided in public transport bus.So, can provide for user has in time
The feedback of effect, such as detailed declaration of exception is provided, various offline WEB website clothes can also be provided under Network Abnormal situation
Business.
Fig. 7 show the schematic diagram of IP policy feedback according to the present invention.In a specific embodiment according to the present invention
In, policy feedback IP can implement as follows according to specific application environment: 1. networks time-out then feeds back local IP, and is oriented to this
Ground http-server reports domain name access supermarket, improves network friendliness prompt;2. specifying specific outer net IP, outside is provided
Information popularization;3. intercepting certain domain name, intercepted as domain name blacklist;4. forcing local http-server, provide based on equipment
Offline http service, terminal disposition easy to remove experience.
The above, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as
It reaches technical effect of the invention with identical means, all should belong to protection scope of the present invention.In protection model of the invention
Its technical solution and/or embodiment can have a variety of different modifications and variations in enclosing.
Claims (8)
1. a kind of offline domain name analytic method, includes the following steps:
A, judge current network state and dns server is detected, then send DNS when finding Network Abnormal and parse again
Instruction and/or IP redirect instruction, detect dns server address list, the accessibility of address are detected one by one, then according to correspondence
The accessibility and connectivity of address and carry out pressure domain to obtain the IP address of domain name or enter IP address pond management process
Name feedback;
B, analyzed the instruction again according to DNS come with the domain name detection data that obtains in advance, to the domain name of Network Abnormal partial association into
Row parses again, by the domain name mapping that cannot originally parse to locally;
C, instruction and in advance the domain name detection data that obtains are redirected according to IP, to the Network Abnormal of Network Abnormal module export into
The redirection of row IP access, so that associated IP access is redirected to local;
D, network access information prompt is provided, provides network service based on local, to correspond to IP weight when Network Abnormal
The address of orientation provides network service access.
2. offline domain name analytic method according to claim 1, wherein the step A includes:
Whether detection is local has default route;
If having default route, the test of PING packet is carried out to presetting outer net detection IP;
The detection of PING packet is carried out to preset dns server, is additionally provided the serious assessment of Network Packet Loss.
3. offline domain name analytic method according to claim 1, wherein the step C includes:
When Network Abnormal, then all outer net data packets are redirected in local area network module;
When network is normal, then external network data packet is let pass.
4. offline domain name analytic method according to claim 1, wherein the step D includes:
Prompting the user with is network access interrupt caused by which kind of reason;
Offline WEB station services are provided, to provide network service by local resource in the case where Network Abnormal.
5. a kind of offline domain name mapping device, which is characterized in that described device includes:
Network judgment module, for judging current network state and being detected to dns server, when finding Network Abnormal
Then send DNS analyze the instruction again and/or IP redirect instruction, detect dns server address list, one by one detect address it is reachable
Property, then according to the accessibility and connectivity of corresponding address, to obtain the IP address of domain name or be managed into IP address pond
Journey, and carry out forcing domain name feedback;
DNS weight parsing module, for analyzed the instruction again according to DNS come with the domain name detection data that obtains in advance, to Network Abnormal
The domain name of partial association is parsed again, by the domain name mapping that cannot originally parse to locally;
IP redirection module, the domain name detection data for redirecting instruction according to IP and obtaining in advance, to Network Abnormal module
Network Abnormal output carry out IP access redirection so that associated IP access be redirected to local;
Local area network module provides network service based on local, thus in Network Abnormal for providing network access information prompt
When correspond to IP redirection address provide network service access.
6. offline domain name mapping device according to claim 5, which is characterized in that the network judgment module includes:
Whether route exploration submodule locally has default route for detecting;
Outer net detection of connectivity submodule, for carrying out PING to presetting outer net detection IP when having default route
Packet test;
Dns server detects submodule, for carrying out the detection of PING packet to preset dns server, is additionally provided Network Packet Loss
Serious assessment.
7. offline domain name mapping device according to claim 6, which is characterized in that the IP redirection module includes:
Data packet manages submodule, for all outer net data packets to be redirected in local area network module when Network Abnormal, and
And when network is normal, then external network data packet is let pass.
8. offline domain name mapping device according to claim 6, which is characterized in that the local area network module includes:
Network Abnormal prompting submodule, for being network access interrupt caused by which kind of reason for user's prompt;
WEB service submodule, for providing offline WEB station services, to pass through local resource in the case where Network Abnormal
Network service is provided.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510524705.8A CN105141712B (en) | 2015-08-24 | 2015-08-24 | A kind of offline domain name analytic method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510524705.8A CN105141712B (en) | 2015-08-24 | 2015-08-24 | A kind of offline domain name analytic method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105141712A CN105141712A (en) | 2015-12-09 |
CN105141712B true CN105141712B (en) | 2019-01-18 |
Family
ID=54726914
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510524705.8A Active CN105141712B (en) | 2015-08-24 | 2015-08-24 | A kind of offline domain name analytic method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105141712B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106534127A (en) * | 2016-11-18 | 2017-03-22 | 上海佰贝科技发展有限公司 | Login authentication control system and method |
CN106899711A (en) * | 2017-05-09 | 2017-06-27 | 南京赢纳信息科技有限公司 | A kind of dynamic territory analyzing module and its black and white lists implementation method based on Linux |
CN109510778A (en) * | 2019-01-03 | 2019-03-22 | Oppo广东移动通信有限公司 | Method, apparatus, system, equipment and the storage medium of flow scheduling |
CN110830606A (en) * | 2019-10-31 | 2020-02-21 | 瑞斯康达科技发展股份有限公司 | Method and device for solving abnormal DNS cache and computer readable storage medium |
CN110995542B (en) * | 2019-12-16 | 2022-04-22 | 金蝶智慧科技(深圳)有限公司 | Network state detection method, system and related equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1901485A (en) * | 2005-07-22 | 2007-01-24 | 阿尔卡特公司 | Dns based enforcement for confinement and detection of network malicious activities |
CN102123180A (en) * | 2010-01-08 | 2011-07-13 | 北京中企开源信息技术有限公司 | DNS (Domain Name Server) network structure and domain name resolution method |
CN103546590A (en) * | 2013-10-18 | 2014-01-29 | 北京奇虎科技有限公司 | Method and device for choosing DNS (domain name server) |
US20140105000A1 (en) * | 2012-10-15 | 2014-04-17 | Ikanos Communications, Inc. | Method and apparatus to detect and communicate information regarding state of communication link |
CN103929507A (en) * | 2014-04-28 | 2014-07-16 | 广东睿江科技有限公司 | Method and device capable of achieving off-line DNS services |
CN104639366A (en) * | 2014-12-31 | 2015-05-20 | 北京奇虎科技有限公司 | DNS (domain name server) disaster tolerance system islanding response automatic switching method and device |
-
2015
- 2015-08-24 CN CN201510524705.8A patent/CN105141712B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1901485A (en) * | 2005-07-22 | 2007-01-24 | 阿尔卡特公司 | Dns based enforcement for confinement and detection of network malicious activities |
CN102123180A (en) * | 2010-01-08 | 2011-07-13 | 北京中企开源信息技术有限公司 | DNS (Domain Name Server) network structure and domain name resolution method |
US20140105000A1 (en) * | 2012-10-15 | 2014-04-17 | Ikanos Communications, Inc. | Method and apparatus to detect and communicate information regarding state of communication link |
CN103546590A (en) * | 2013-10-18 | 2014-01-29 | 北京奇虎科技有限公司 | Method and device for choosing DNS (domain name server) |
CN103929507A (en) * | 2014-04-28 | 2014-07-16 | 广东睿江科技有限公司 | Method and device capable of achieving off-line DNS services |
CN104639366A (en) * | 2014-12-31 | 2015-05-20 | 北京奇虎科技有限公司 | DNS (domain name server) disaster tolerance system islanding response automatic switching method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105141712A (en) | 2015-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105141712B (en) | A kind of offline domain name analytic method and device | |
CN103220372B (en) | Data service access method and system | |
US10212621B2 (en) | Apparatus and method for configuring DNS of mobile device, and storage medium | |
KR100954765B1 (en) | System and method for accessing a web server on a device with a dynamic IP address residing behind a firewall | |
CN105375970B (en) | A kind of method and apparatus that mobile device is relayed | |
CN105611534B (en) | Method and device for wireless terminal to identify pseudo-WiFi network | |
US9674142B2 (en) | Monitoring network traffic | |
CN105375969B (en) | A kind of method and apparatus that mobile device is relayed | |
JP2012147478A (en) | Access through non-3gpp access network | |
CN103166960A (en) | Access control method and access control device | |
CN104202307A (en) | Data forwarding method and device | |
CN108696546A (en) | A kind of method and device of the user terminal access public network of Enterprise Mobile private network | |
EP3007389A1 (en) | Gre tunnel implementation method, access point and gateway | |
US20240089178A1 (en) | Network service processing method, system, and gateway device | |
CN110149677A (en) | A kind of method and mobile terminal of terminal selection access VoWiFi network | |
EP3059907B1 (en) | Network packet forwarding method and device | |
CN101662357A (en) | Method for accessing secure gateway client | |
CN108566446A (en) | LAN domain name analytic method, device and system | |
CN101465858B (en) | Method for implementing private network penetration of monitoring business, network appliance and server | |
CN105850091B (en) | For providing method, border networks device and the IP server of the connection between communication service providers and the IP server for providing service | |
CN114268578A (en) | Data transmission method, device and equipment for switching line and storage medium | |
Cisco | Bisync-to-IP Conversion for Automated Teller Machines | |
CN110266715A (en) | Strange land accesses method, apparatus, equipment and computer readable storage medium | |
WO2011026355A1 (en) | Method for a node accessing a home agent, home agent cluster system and service router | |
CN106454817A (en) | WLAN authentication method, WLAN authentication system and AP equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |