CN109462667A - Domain name list obtaining method and relevant apparatus - Google Patents

Domain name list obtaining method and relevant apparatus Download PDF

Info

Publication number
CN109462667A
CN109462667A CN201811237871.XA CN201811237871A CN109462667A CN 109462667 A CN109462667 A CN 109462667A CN 201811237871 A CN201811237871 A CN 201811237871A CN 109462667 A CN109462667 A CN 109462667A
Authority
CN
China
Prior art keywords
domain name
list
name list
name server
gateway
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.)
Granted
Application number
CN201811237871.XA
Other languages
Chinese (zh)
Other versions
CN109462667B (en
Inventor
罗琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd Hefei Branch
Original Assignee
New H3C Technologies Co Ltd Hefei Branch
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd Hefei Branch filed Critical New H3C Technologies Co Ltd Hefei Branch
Priority to CN201811237871.XA priority Critical patent/CN109462667B/en
Publication of CN109462667A publication Critical patent/CN109462667A/en
Application granted granted Critical
Publication of CN109462667B publication Critical patent/CN109462667B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure proposes a kind of domain name list obtaining method and relevant apparatus, is related to network communication technology field.Gateway is when there is no caching domain name list, the first singlecast router notification packet is sent to the corresponding name server of domain name server address, the first via of name server transmission is received by request message, wherein, name server sends the first via by request message when not carrying caching domain name list in the first singlecast router notification packet, the first via is by carrying the domain name list in name server in request message, domain name list in caching nameserver and using the domain name list in name server as caching domain name list.The gateway by with name server interaction can the domain name list in dynamic acquisition and caching nameserver improve the allocative efficiency of domain name list to reduce the manual configuration of domains list of file names.

Description

Domain name list obtaining method and relevant apparatus
Technical field
This disclosure relates to network communication technology field, in particular to a kind of domain name list obtaining method and related dress It sets.
Background technique
In IPv6 (Internet Protocol Version 6, Internet protocol sixth version) networking, host can lead to RA (Router Advertisement, advertising of route) the Receive message address prefix and default gateway of gateway transmission are crossed, Other configurations such as DNS (Domain Name System, domain name system) information etc. is needed through DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) etc. modes obtain, it is multiple which increases the configuration in networking Miscellaneous degree.The domain name issued by RA message is needed to arrange currently, configuring in gateway generally by the mode of static configuration Table, but the mode of manual configuration domain name list is comparatively laborious, especially when the domain name list variation on dns server, it is also necessary to The domain name list configured in Manual synchronization modification gateway.
Summary of the invention
The disclosure is designed to provide a kind of domain name list obtaining method and relevant apparatus, gateway by with domain name Server interaction can domain name list in dynamic acquisition and caching nameserver, so that the craft for reducing domains list of file names is matched It sets, promotes domain name list configuration efficiency.
To achieve the goals above, the disclosure the technical solution adopted is as follows:
In a first aspect, the disclosure proposes a kind of domain name list obtaining method, it is applied to gateway, in the gateway Be provided with domain name server address in advance, which comprises when in the gateway there is no domain name list is cached, to The corresponding name server of domain name server address sends the first singlecast router notification packet;Receive domain name server The first via of transmission is by request message, wherein domain name server does not carry in the first singlecast router notification packet The first via is sent when the caching domain name list by request message, the first via is by carrying domain name in request message Domain name list in server;It caches the domain name list in domain name server and arranges the domain name in domain name server Table is as the caching domain name list.
Second aspect, the disclosure propose a kind of domain name list obtaining method, are applied to name server, the method packet It includes: receiving the first singlecast router notification packet that gateway is sent according to preconfigured domain name server address, wherein institute It is corresponding with domain name server to state domain name server address;Caching domain is not carried in the first singlecast router notification packet When list of file names, Xiang Suoshu gateway sends the first via by request message, wherein the first via is by carrying institute in request message The domain name list in name server is stated, so as to the domain name list in gateway caching domain name server and by institute The domain name list in name server is stated as the caching domain name list.
The third aspect, the disclosure also propose a kind of domain name list acquisition device, are applied to gateway, the gateway On be provided with domain name server address in advance, described device includes: advertising of route message sending module, for setting in the gateway There is no when caching domain name list in standby, the first singlecast router is sent to the corresponding name server of domain name server address Notification packet;Route requests message receiving module, for receiving the first via of domain name server transmission by request message, In, when domain name server does not carry the caching domain name list in the first singlecast router notification packet described in transmission The first via is by request message, and the first via is by carrying the domain name list in domain name server in request message;Domain name column Table cache module, for caching the domain name list in domain name server and making the domain name list in domain name server For the caching domain name list.
Fourth aspect, the disclosure also propose a kind of domain name list acquisition device, are applied to name server, described device packet It includes: advertising of route message receiving module, sent for receiving gateway according to preconfigured domain name server address One singlecast router notification packet, wherein domain name server address is corresponding with domain name server;Route requests message hair Module is sent, when for not carrying caching domain name list in the first singlecast router notification packet, Xiang Suoshu gateway hair Send the first via by request message, wherein the first via by request message carry domain name server in domain name list, So as to the domain name list in gateway caching domain name server and by the domain name list in domain name server As the caching domain name list.
5th aspect, the disclosure also proposes a kind of computer readable storage medium, is stored thereon with computer program, described Computer program realizes method described in above-mentioned first aspect when being read and run by first processor.
6th aspect, the disclosure also proposes a kind of computer readable storage medium, is stored thereon with computer program, described Computer program realizes method described in above-mentioned second aspect when being read and run by second processor.
7th aspect, the disclosure also propose a kind of gateway, deposit including being stored with the computer-readable of computer program Storage media and first processor when the computer program is read and run by the first processor, realize above-mentioned first party Method described in face.
Eighth aspect, the disclosure also propose a kind of name server, including being stored with the computer-readable of computer program Storage medium and second processor when the computer program is read and run by the second processor, realize above-mentioned second Method described in aspect.
Domain name list obtaining method and relevant apparatus provided by the disclosure are provided with domain name service in advance in gateway Device address takes there is no when caching domain name list in the gateway to the corresponding domain name of domain name server address Business device sends the first singlecast router notification packet, receives the first via of domain name server transmission by request message, wherein institute It states when name server does not carry caching domain name list in the first singlecast router notification packet and sends the first route requests report Text, the first via are cached in domain name server by carrying the domain name list in domain name server in request message Domain name list and using the domain name list in domain name server as the caching domain name list.In this application, the net Close equipment by with name server interaction can domain name list in dynamic acquisition and caching nameserver, to reduce big The manual configuration for measuring domain name list, improves the allocative efficiency of domain name list.
Other feature and advantage of the disclosure will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing disclosure understanding.The purpose of the disclosure and other advantages can be by written specifications, power Specifically noted structure is achieved and obtained in sharp claim and attached drawing.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the disclosure, letter will be made to attached drawing needed in the embodiment below It singly introduces, it should be understood that the following drawings illustrates only some embodiments of the disclosure, therefore is not construed as to range It limits, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other relevant attached drawings.
Fig. 1 shows the application environment schematic diagram of domain name list obtaining method and device provided by the disclosure.
Fig. 2 shows the structural block diagrams of gateway provided by the disclosure.
Fig. 3 shows the structural block diagram of name server provided by the disclosure.
Fig. 4 shows a kind of process signal provided by the disclosure applied to the domain name list obtaining method of gateway Figure.
Another process that Fig. 5 shows the domain name list obtaining method provided by the disclosure applied to gateway is shown It is intended to.
A kind of process that Fig. 6 shows the domain name list obtaining method provided by the disclosure applied to name server is shown It is intended to.
Fig. 7 shows another process provided by the disclosure applied to the domain name list obtaining method of name server Schematic diagram.
Fig. 8 shows the functional block diagram of the first domain name list acquisition device provided by the disclosure.
Fig. 9 shows the functional block diagram of the second domain name list acquisition device provided by the disclosure.
Icon: 100- gateway;200- name server;300- terminal device;400- the first domain name list obtains dress It sets;500- the second domain name list acquisition device;110- first memory;120- first processor;The first communication interface of 130-; 210- second memory;220- second processor;The second communication interface of 230-;410- advertising of route message sending module;420- Route requests message receiving module;430- domain name list cache module;440- judgment module;510- advertising of route message receives mould Block;520- route requests message sending module.
Specific embodiment
Below in conjunction with attached drawing in the disclosure, the technical solution in the disclosure is clearly and completely described, it is clear that Described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Usually retouched in attached drawing here The component for the disclosure stated and shown can be arranged and be designed with a variety of different configurations.Therefore, below to mentioning in the accompanying drawings The detailed description of the embodiment of the disclosure of confession is not intended to limit claimed the scope of the present disclosure, but is merely representative of this Disclosed selected embodiment.Based on embodiment of the disclosure, those skilled in the art are in the premise for not making creative work Under every other embodiment obtained, belong to the disclosure protection range.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Fig. 1 is please referred to, is the application environment schematic diagram of domain name list obtaining method provided by the disclosure and device.Gateway Equipment 100 and name server 200 and multiple terminal devices 300 communicate to connect, wherein gateway 100 and multiple terminals Equipment 300 is located in local area network, and name server 200 and gateway 100 can be in the same local area networks, can also be with net Equipment 100 is closed in different local area networks.In the present embodiment, gateway 100, can by interacting with name server 200 The domain name list configured in dynamic acquisition name server 200, and the domain name list that will acquire periodically multicasts to multiple terminals and sets Standby 300 use for multiple terminal devices 300.
In the present embodiment, which can be the equipment such as interchanger, router, which can be with It is smart phone, tablet computer, PC (personal computer, PC), mobile internet surfing equipment (mobile Internet device, MID), personal digital assistant (personal digital assistant, PDA) etc., domain name clothes Business device 200 is used to provide domain name mapping function for terminal device 300.
As shown in Fig. 2, for the structural block diagram of gateway 100 provided by the disclosure.Gateway 100 may include One memory 110, first processor 120 and the first communication interface 130, the first memory 110, first processor 120 and One communication interface 130, each element are directly or indirectly electrically connected between each other, to realize the transmission or interaction of data.For example, These elements can be realized by one or more communication bus or signal wire be electrically connected between each other.First memory 110 can For storing software program and module, as provided by the disclosure applied to gateway 100 domain name list obtaining method and Corresponding program instruction/the module of device, first processor 120 is by executing the software program being stored in first memory 110 And module, thereby executing various function application and data processing.First communication interface 130 can be used for and other node devices Carry out the communication of signaling or data.
Wherein, first memory 110 can be but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
First processor 120 may be a kind of IC chip, have signal handling capacity.The first processor 120 It can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;Can also be digital signal processor (DSP)), it is specific integrated circuit (ASIC), ready-made Programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware group Part.
It is appreciated that structure shown in Fig. 2 is only to illustrate, gateway 100 may also include it is more than shown in Fig. 2 or Less component, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can using hardware, software or its Combination is realized.
The disclosure additionally provides a kind of computer readable storage medium, is stored thereon with computer program, the computer journey The domain name list obtaining method applied to gateway 100 that the disclosure discloses is realized when sequence is executed by first processor 120.
As shown in figure 3, for the structural block diagram of name server 200 provided by the disclosure.Name server 200 can wrap Include second memory 210, second processor 220 and the second communication interface 230, the second memory 210, second processor 220 With the second communication interface 230, each element is directly or indirectly electrically connected between each other, to realize the transmission or interaction of data. It is electrically connected for example, these elements can be realized between each other by one or more communication bus or signal wire.Second memory 210 can be used for storing software program and module, obtain as provided by the disclosure applied to the domain name list of name server 200 Corresponding program instruction/the module of method and device, second processor 220 are stored in soft in second memory 210 by execution Part program and module, thereby executing various function application and data processing.Second communication interface 230 can be used for saving with other Point device carries out the communication of signaling or data.
Wherein, second memory 210 can be but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory,
ROM), programmable read only memory (Programmable Read-Only Memory, PROM), it is erasable read-only Memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Second processor 220 may be a kind of IC chip, have signal handling capacity.The second processor 220 It can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;Can also be digital signal processor (DSP)), it is specific integrated circuit (ASIC), ready-made Programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware group Part.
It is appreciated that structure shown in Fig. 3 is only to illustrate, name server 200 may also include it is more than shown in Fig. 3 or The less component of person, or with the configuration different from shown in Fig. 3.Each component shown in Fig. 3 can using hardware, software or A combination thereof is realized.
The disclosure additionally provides a kind of computer readable storage medium, is stored thereon with computer program, the computer journey The domain name list obtaining method applied to name server 200 that the disclosure discloses is realized when sequence is executed by second processor 220.
It referring to figure 4., is the flow diagram of domain name list obtaining method provided by the disclosure.It should be noted that Domain name list obtaining method described in the disclosure is not limitation with Fig. 4 and specific order as described below, it should be understood that In other embodiments, the sequence of domain name list obtaining method part step described in the disclosure can phase according to actual needs Part steps interchangeable or therein also can be omitted or delete.The domain name list obtaining method can be applied to above-mentioned net Equipment 100 is closed, detailed process shown in Fig. 4 will be described in detail below.
Step S101, when in the gateway 100 there is no domain name list is cached, to domain name server address Corresponding name server 200 sends the first singlecast router notification packet.
In the present embodiment, the domain name server address of name server 200 is provided in the gateway 100 in advance, When in gateway 100 also it is uncached have caching domain name list when, gateway 100 send destination address be the name server First singlecast router notification packet of address is to name server 200.Wherein, it is carried in the first singlecast router notification packet RDNSS (Recursive DNS Server, recurrence dns server) option and do not carry DNSSL (DNS Search List, DNS searches list) option, for the RDNSS option for recording domain name server address, which is used for record buffer memory domain List of file names.
In the present embodiment, which can be link-local address, be also possible to global unicast address. When the domain name server address configured in gateway 100 is link-local address, the first singlecast router notification packet Source address uses the link-local address of gateway 100, when the domain name server address configured in gateway 100 is the whole world When unicast address, the source address of the first singlecast router notification packet uses the corresponding global unicast of 100 outgoing interface of gateway Address.
Step S102 receives the first via of the transmission of domain name server 200 by request message, wherein domain name clothes Business device 200 sends the first via by asking when not carrying the caching domain name list in the first singlecast router notification packet Message is sought, the first via is by carrying the domain name list in domain name server 200 in request message.
In the present embodiment, domain name list is provided in name server 200 in advance, name server 200 is receiving When the first singlecast router notification packet, specified according to the domain name server address discovery gateway 100 in RDNSS option Dns server is oneself, and does not carry DNSSL option in the first singlecast router notification packet, is net by construction destination address The first via for closing equipment 100 is sent to gateway and is set by request message and in the first via by carrying DNSSL option in request message Standby 100, record has the domain name list in name server 200 in the DNSSL option.
Step S103 caches the domain name list in domain name server 200 and by the domain in domain name server 200 List of file names is as the caching domain name list.
In the present embodiment, gateway 100 is receiving the first via of the transmission of name server 200 by request message When, DNSSL option is cached, and using the domain name list in the name server 200 recorded in DNSSL option as gateway Caching domain name list in 100.
In the present embodiment, gateway 100, can be from domain name service by carrying out message interaction with name server 200 200 dynamic acquisition domain name list of device simultaneously caches, so as to avoid the trouble of the manual configuration domain name list in gateway 100, Domain name list configuration efficiency is improved, human cost is reduced.When the domain name list on name server 200 changes, Gateway 100 can carry out dynamic update to caching domain name list, as shown in figure 5, the domain name list obtaining method further include:
Step S104 sends Multicast Routing notification packet every the first preset time, wherein the Multicast Routing notice report Domain name server address and the caching domain name list are carried in text.
In the present embodiment, when there is caching domain name list in gateway 100, gateway 100 is pre- every first If the Multicast Routing notification packet that the time sends can be received by all terminal devices 300 in local area network.Wherein, the Multicast Routing Notification packet carries RDNSS option and DNSSL option, domain name server address are recorded in RDNSS option, caches domain name list It is recorded in DNSSL option, terminal device 300 can be obtained and using name server by RDNSS option and DNSSL option Location and caching domain name list.
Step S105 judges domain name server address for link-local address or global unicast address.
In the present embodiment, it when the domain name server address configured in gateway 100 is link-local address, executes Step S106 executes step S108 when the domain name server address configured in gateway 100 is global unicast address.
Step S106 receives the secondary route request message that domain name server 200 is sent, wherein domain name clothes Business device 200 is opposite for the domain name list in link-local address and domain name server 200 in domain name server address The caching domain name list sends the secondary route request message when changing, carry in the secondary route request message The first neofield list of file names in domain name server 200.
In the present embodiment, when domain name server address is link-local address, show name server 200 and gateway Equipment 100 and multiple terminal devices 300 are in the same local area network, name server 200 and multiple terminal devices 300 To receive the Multicast Routing notification packet of the transmission of gateway 100.Name server 200 is receiving Multicast Routing notice After message, judge the caching domain name list that records in DNSSL option that Multicast Routing notification packet carries whether the machine it is consistent, If inconsistent, show that the domain name list in name server 200 is changed, then constructing destination address is gateway 100 secondary route request message is sent to gateway 100, and DNSSL option is carried in the secondary route request message, should Record has the domain name list (i.e. the first neofield list of file names) after changing in name server 200 in DNSSL option.
The caching domain name list update is the first neofield list of file names by step S107.
In the present embodiment, gateway 100 is in the secondary route request message for receiving the transmission of name server 200 When, will the caching domain name list update originally cached be secondary route request message carry DNSSL option in record first Neofield list of file names.
Step S108, when domain name server address is global unicast address, every the second preset time to described Name server 200 sends the second singlecast router notification packet, wherein described in carrying in the second singlecast router notification packet Cache domain name list.
In the present embodiment, when domain name server address is global unicast address, show name server 200 and gateway Equipment 100 is not in the same local area network, therefore name server 200 cannot receive the Multicast Routing of the transmission of gateway 100 Notification packet.For the ease of name server 200 in the list of caching domain name and name server 200 in gateway 100 Domain name list be compared, gateway 100 need every the second preset time to name server 200 send the second unicast Advertising of route message carries RDNSS option and DNSSL option, domain name server address record in the secondary route notification packet In RDNSS option, the caching domain name list records in gateway 100 are in DNSSL option.
Step S109 receives the third route requests message that domain name server 200 is sent, wherein domain name clothes Described in business device 200 is sent when the relatively described caching domain name list of the domain name list in domain name server 200 changes Third route requests message, the second neofield carried in the third route requests message in domain name server 200 rank Table.
In the present embodiment, name server 200 judges that second is single after receiving the second singlecast router notification packet Broadcast the caching domain name list that records in the DNSSL option of advertising of route message carrying whether the machine it is consistent, if inconsistent, table Domain name list in bright name server 200 is changed, then constructs the third routing that destination address is gateway 100 and ask It asks message to be sent to gateway 100, DNSSL option is carried in the third route requests message, recording in the DNSSL option has Domain name list (i.e. the second neofield list of file names) after changing in name server 200.
The caching domain name list update is the second neofield list of file names by step S110.
In the present embodiment, gateway 100 is in the third route requests message for receiving the transmission of name server 200 When, will the caching domain name list update originally cached be third route requests message carry DNSSL option in record second Neofield list of file names.
As it can be seen that gateway 100 by with name server 200 carry out message interaction, not only can be with dynamic acquisition domain name List, and when the domain name list in name server 200 changes, moreover it is possible to it is automatically domain by caching domain name list update Neofield list of file names in name server 200 reduces domain name list variation bring manual configuration compared with prior art.
Fig. 6 is please referred to, is the flow diagram of domain name list obtaining method provided by the disclosure.It should be noted that Domain name list obtaining method described in the disclosure is not limitation with Fig. 6 and specific order as described below, it should be understood that In other embodiments, the sequence of domain name list obtaining method part step described in the disclosure can phase according to actual needs Part steps interchangeable or therein also can be omitted or delete.The domain name list obtaining method can be applied to above-mentioned domain Name server 200, below will be described in detail detailed process shown in fig. 6.
Step S201 receives the first unicast road that gateway 100 is sent according to preconfigured domain name server address By notification packet, wherein domain name server address is corresponding with domain name server 200.
In the present embodiment, when, there is no when caching domain name list, gateway 100 will be to the domain in gateway 100 Name server 200 sends the first singlecast router notification packet.
Step S202, when not carrying caching domain name list in the first singlecast router notification packet, Xiang Suoshu gateway Equipment 100 sends the first via by request message, wherein the first via is by carrying domain name server 200 in request message In domain name list, so as to the domain name list in the gateway 100 caching domain name server 200 and by domain name Domain name list in server 200 is as the caching domain name list.
In the present embodiment, when receiving the first singlecast router notification packet, discovery gateway is set name server 200 Standby 100 specified dns server is oneself, and does not carry DNSSL option in the first singlecast router notification packet, then will construction Destination address is that the first via of gateway 100 is sent out by request message and in the first via by carrying DNSSL option in request message Gateway 100 is given, record has the domain name list in name server 200 in the DNSSL option, and gateway 100 is connecing When receiving the first via by request message, DNSSL option is cached, and will be in the name server 200 that recorded in DNSSL option Domain name list as the caching domain name list in gateway 100.
Further, as shown in fig. 7, the domain name list obtaining method further include:
Step S203, when domain name server address be link-local address when, receive the gateway 100 every The Multicast Routing notification packet that first preset time is sent, wherein domain name clothes are carried in the Multicast Routing notification packet Business device address and the caching domain name list.
In the present embodiment, when there is caching domain name list in gateway 100, Multicast Routing notice will periodically be sent Message, the Multicast Routing notification packet carry RDNSS option and DNSSL option, the name server recorded in RDNSS option The caching domain name list recorded in location and DNSSL option uses for the terminal device 300 in local area network.When gateway 100 When the domain name server address of middle configuration is link-local address, name server 200 can receive Multicast Routing notice report Text, and judge whether the caching domain name list recorded in DNSSL option and the domain name list in the machine are consistent.
Step S204, when the relatively described caching domain name list of the domain name list in domain name server 200 changes When, Xiang Suoshu gateway 100 sends secondary route request message, wherein described in carrying in the secondary route request message The first neofield list of file names in name server 200, so that the caching domain name list update is institute by the gateway 100 State the first neofield list of file names.
In the present embodiment, when the domain name list relative cache domain name list in name server 200 changes, domain Name server 200 is sent to gateway 100 for the secondary route request message that destination address is gateway 100 is constructed, should DNSSL option is carried in secondary route request message, (i.e. first is new for the domain name list after record changes in the DNSSL option Domain name list), gateway 100 will be cached originally when receiving the secondary route request message of the transmission of name server 200 Caching domain name list update be the first neofield list of file names for recording in DNSSL option that secondary route request message carries.
Step S205, when domain name server address be global unicast address when, receive the gateway 100 every The second singlecast router notification packet that second preset time is sent, wherein carry institute in the second singlecast router notification packet State caching domain name list.
In the present embodiment, when the domain name server address configured in gateway 100 is global unicast address, the domain Name server 200 cannot receive the Multicast Routing notification packet of the transmission of gateway 100, and gateway 100 needs periodically to send out Send the second singlecast router notification packet to name server 200, so that name server 200 is to the caching in gateway 100 Domain name list in domain name list and name server 200 is compared.
Step S206, when the relatively described caching domain name list of the domain name list in domain name server 200 changes When, Xiang Suoshu gateway 100 sends third route requests message, wherein described in carrying in the third route requests message The second neofield list of file names in name server 200, so that the caching domain name list update is institute by the gateway 100 State the second neofield list of file names.
In the present embodiment, when the domain name list relative cache domain name list in name server 200 changes, domain Name server 200 is sent to gateway 100 for the third route requests message that destination address is gateway 100 is constructed, should DNSSL option is carried in third route requests message, (i.e. second is new for the domain name list after record changes in the DNSSL option Domain name list), gateway 100 will be cached originally when receiving the third route requests message of the transmission of name server 200 Caching domain name list update be the second neofield list of file names for recording in DNSSL option that third route requests message carries.
It should be noted that in the present embodiment, when the domain name list in name server 200 changes, domain name Server 200 actively can also send route requests message to gateway 100, and by the domain name list records after variation on road By in the DNSSL option of request message.
Fig. 8 is please referred to, is the functional block diagram of the first domain name list acquisition device 400 provided by the disclosure.It needs It is noted that the technical effect of the first domain name list acquisition device 400 provided by the present embodiment, basic principle and generation It is identical as preceding method embodiment, to briefly describe, part is not referred in the present embodiment, can refer to aforementioned applications in gateway Corresponding contents in 100 domain name list obtaining method embodiment.The first domain name list acquisition device 400 is applied to upper State the domain name list acquisition device of gateway 100 comprising at least one can be in the form of software or firmware (firmware) The software for being stored in first memory 110 or being solidificated in the operating system (operating system, OS) of gateway 100 Functional module.The first domain name list acquisition device 400 connects including advertising of route message sending module 410, route requests message Receive module 420, domain name list cache module 430, judgment module 440.
When the advertising of route message sending module 410 is used in the gateway 100 there is no domain name list is cached, The first singlecast router notification packet is sent to the corresponding name server 200 of domain name server address.
It is appreciated that the advertising of route message sending module 410 can execute above-mentioned steps S101.
The route requests message receiving module 420 is used to receive the first route requests of the transmission of domain name server 200 Message, wherein domain name server 200 does not carry the caching domain name list in the first singlecast router notification packet When send the first via by request message, the first via is by carrying the domain in domain name server 200 in request message List of file names.
It is appreciated that the route requests message receiving module 420 can execute above-mentioned steps S102.
The domain name list cache module 430 is used to cache domain name list in domain name server 200 and by the domain Domain name list in name server 200 is as the caching domain name list.
It is appreciated that the domain name list cache module 430 can execute above-mentioned steps S103.
Further, in the present embodiment, which is also used to every the first preset time Send Multicast Routing notification packet, wherein domain name server address and described is carried in the Multicast Routing notification packet Cache domain name list.
It is appreciated that above-mentioned steps S104 can also be performed in the advertising of route message sending module 410.
The judgment module 440 is for judging domain name server address for link-local address or global unicast Location.
It is appreciated that the judgment module 440 can execute above-mentioned steps S105.
The secondary route that the route requests message receiving module 420 is also used to receive the transmission of domain name server 200 is asked Seek message, wherein domain name server 200 is link-local address and domain name service in domain name server address The domain name list relatively described caching domain name list in device 200 sends the secondary route request message when changing, described The first neofield list of file names in domain name server 200 is carried in secondary route request message.
It is appreciated that above-mentioned steps S106 can also be performed in the route requests message receiving module 420.
The domain name list cache module 430 is also used to be that first neofield is ranked by the caching domain name list update Table.
It is appreciated that above-mentioned steps S107 can also be performed in the domain name list cache module 430.
The advertising of route message sending module 410 is also used to when domain name server address is global unicast address, The second singlecast router notification packet is sent to domain name server 200 every the second preset time, wherein second unicast The caching domain name list is carried in advertising of route message.
It is appreciated that above-mentioned steps S108 can also be performed in the advertising of route message sending module 410.
The third routing that the route requests message receiving module 420 is also used to receive the transmission of domain name server 200 is asked Seek message, wherein the relatively described caching domain name of domain name list of the domain name server 200 in domain name server 200 The third route requests message is sent when list changes, and carries domain name service in the third route requests message The second neofield list of file names in device 200.
It is appreciated that above-mentioned steps S109 can also be performed in the route requests message receiving module 420.
The domain name list cache module 430 is also used to be that second neofield is ranked by the caching domain name list update Table.
It is appreciated that above-mentioned steps S110 can also be performed in the domain name list cache module 430.
Fig. 9 is please referred to, is the functional block diagram of the second domain name list acquisition device 500 provided by the disclosure.It needs It is noted that the technical effect of the second domain name list acquisition device 500 provided by the present embodiment, basic principle and generation It is identical as preceding method embodiment, to briefly describe, part is not referred in the present embodiment, can refer to aforementioned applications in domain name service Corresponding contents in the domain name list obtaining method embodiment of device 200.The second domain name list acquisition device 500 be applied to The domain name list acquisition device of above-mentioned name server 200 comprising at least one can be with software or firmware (firmware) Form is stored in second memory 210 or is solidificated in the operating system of name server 200 (operating system, OS) Software function module.The second domain name list acquisition device 500 includes advertising of route message receiving module 510, route requests Message sending module 520.
The advertising of route message receiving module 510 is for receiving gateway 100 according to preconfigured name server The first singlecast router notification packet that address is sent, wherein domain name server address and domain name server 200 are right It answers.
It is appreciated that the advertising of route message receiving module 510 can execute above-mentioned steps S201.
The route requests message sending module 520 in the first singlecast router notification packet for not carrying caching domain When list of file names, Xiang Suoshu gateway 100 sends the first via by request message, wherein the first via in request message by taking With the domain name list in domain name server 200, so as in the gateway 100 caching domain name server 200 Domain name list and using the domain name list in domain name server 200 as the caching domain name list.
It is appreciated that the route requests message sending module 520 can execute above-mentioned steps S202.
Further, in the present embodiment, which is also used to when domain name server When address is link-local address, the Multicast Routing notice report that the gateway 100 is sent every the first preset time is received Text, wherein domain name server address and the caching domain name list are carried in the Multicast Routing notification packet.
It is appreciated that above-mentioned steps S203 can also be performed in the advertising of route message receiving module 510.
The route requests message sending module 520 is also used to when the domain name list in domain name server 200 is with respect to institute Caching domain name list is stated when changing, Xiang Suoshu gateway 100 sends secondary route request message, wherein described second The first neofield list of file names in domain name server 200 is carried in route requests message, so that the gateway 100 is by institute Stating caching domain name list update is the first neofield list of file names.
It is appreciated that above-mentioned steps S204 can also be performed in the route requests message sending module 520.
In the present embodiment, which is also used to when domain name server address be complete When ball unicast address, the second singlecast router notification packet that the gateway 100 is sent every the second preset time is received, In, the caching domain name list is carried in the second singlecast router notification packet.
It is appreciated that above-mentioned steps S205 can also be performed in the advertising of route message receiving module 510.
The route requests message sending module 520 is also used to when the domain name list in domain name server 200 is with respect to institute Caching domain name list is stated when changing, Xiang Suoshu gateway 100 sends third route requests message, wherein the third The second neofield list of file names in domain name server 200 is carried in route requests message, so that the gateway 100 is by institute Stating caching domain name list update is the second neofield list of file names.
It is appreciated that above-mentioned steps S206 can also be performed in the route requests message sending module 520.
In conclusion domain name list obtaining method and relevant apparatus provided by the disclosure, it is pre-configured in gateway There is domain name server address, when in the gateway there is no domain name list is cached, to domain name server address pair The name server answered sends the first singlecast router notification packet, receives the first route requests report that domain name server is sent Text, wherein domain name server do not carried in the first singlecast router notification packet caching domain name list when send this first Route requests message, the first via cache the domain by carrying the domain name list in domain name server in request message Name server in domain name list and using the domain name list in domain name server as the caching domain name list.In this Shen Please in, the gateway by with name server interaction can domain name list in dynamic acquisition and caching nameserver, from And reduce the manual configuration of domains list of file names, improve the allocative efficiency of domain name list.In addition, gateway passes through periodically It sends Multicast Routing notification packet or periodically sends the second singlecast router notification packet to name server, name server passes through Judge whether the domain name list in name server carries with respect to Multicast Routing notification packet or the second singlecast router notification packet Caching domain name list change, when changing, new domain name list is carried in route requests message and is sent to Gateway realizes the dynamic of caching domain name list more when changing so as to domain name list of the gateway in name server Newly, compared with prior art, reduce domain name variation bring manual configuration.
It should be understood by those skilled in the art that, the disclosure can provide as the production of method, apparatus, equipment or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the disclosure Form.It can be used moreover, the disclosure can be used in the computer that one or more wherein includes computer usable program code The computer program product implemented on storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Form.
The disclosure is flow chart and/or side of the reference according to disclosed method, device, equipment and computer program product Block diagram describes.It should be understood that each process and/or the side in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in frame and flowchart and/or the block diagram.These computer program instructions be can provide to logical With the processor of computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate a machine Device, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for realizing in process The device for the function of being specified in figure one process or multiple processes and/or block diagrams one box or multiple boxes.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In several embodiments provided by the disclosure, it should be understood that disclosed device and method can also pass through Other modes are realized.Device and method embodiment described above is only schematical, for example, the flow chart in attached drawing The device of multiple embodiments according to the disclosure, the system in the cards of method and computer program product are shown with block diagram Framework, function and operation.In this regard, each box in flowchart or block diagram can represent a module, program segment or generation A part of code, a part of the module, section or code include one or more for realizing defined logic function Executable instruction.It should also be noted that function marked in the box can also be in some implementations as replacement Occur different from the sequence marked in attached drawing.For example, two continuous boxes can actually be basically executed in parallel, they Sometimes it can also execute in the opposite order, this depends on the function involved.It is also noted that block diagram and or flow chart In each box and the box in block diagram and or flow chart combination, can function or movement as defined in executing it is special Hardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the disclosure can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the disclosure is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the disclosure all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs Illustrate, herein, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, So that the process, method, article or equipment for including a series of elements not only includes those elements, but also including not having The other element being expressly recited, or further include for elements inherent to such a process, method, article, or device.Do not having There is the element limited in the case where more limiting by sentence "including a ...", it is not excluded that in the mistake including the element There is also other identical elements in journey, method, article or equipment.
The foregoing is merely the alternative embodiments of the disclosure, are not limited to the disclosure, for the skill of this field For art personnel, the disclosure can have various modifications and variations.It is all within the spirit and principle of the disclosure, it is made any to repair Change, equivalent replacement, improvement etc., should be included within the protection scope of the disclosure.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.

Claims (12)

1. a kind of domain name list obtaining method is applied to gateway, is provided with name server in advance in the gateway Address, which is characterized in that the described method includes:
When in the gateway there is no domain name list is cached, to the corresponding name server of domain name server address Send the first singlecast router notification packet;
The first via of domain name server transmission is received by request message, wherein domain name server is single described first Broadcast and send the first via when not carrying the caching domain name list in advertising of route message by request message, the first via by The domain name list in domain name server is carried in request message;
Cache the domain name list in domain name server and using the domain name list in domain name server as the caching Domain name list.
2. domain name list obtaining method as described in claim 1, which is characterized in that in the caching domain name server Domain name list and using the domain name list in domain name server as after the step of the caching domain name list, the method Further include:
Multicast Routing notification packet is sent every the first preset time, wherein described in carrying in the Multicast Routing notification packet Domain name server address and the caching domain name list;
Receive the secondary route request message that domain name server is sent, wherein domain name server takes in domain name Business device address is that the relatively described caching domain name list of domain name list in link-local address and domain name server becomes The secondary route request message is sent when change, and first in domain name server is carried in the secondary route request message Neofield list of file names;
It is the first neofield list of file names by the caching domain name list update.
3. domain name list obtaining method as described in claim 1, which is characterized in that in the caching domain name server Domain name list and using the domain name list in domain name server as after the step of the caching domain name list, the method Further include:
When domain name server address is global unicast address, sent every the second preset time to domain name server Second singlecast router notification packet, wherein the caching domain name list is carried in the second singlecast router notification packet;
Receive the third route requests message that domain name server is sent, wherein domain name server takes in domain name The domain name list relatively described caching domain name list in business device sends the third route requests message when changing, and described the The second neofield list of file names in domain name server is carried in three route requests messages;
It is the second neofield list of file names by the caching domain name list update.
4. a kind of domain name list obtaining method is applied to name server, which is characterized in that the described method includes:
Receive the first singlecast router notification packet that gateway is sent according to preconfigured domain name server address, wherein Domain name server address is corresponding with domain name server;
When not carrying caching domain name list in the first singlecast router notification packet, Xiang Suoshu gateway sends the first via By request message, wherein the first via is by carrying the domain name list in domain name server in request message, so as to described Gateway caches the domain name list in domain name server and using the domain name list in domain name server as described in Cache domain name list.
5. domain name list obtaining method as claimed in claim 4, which is characterized in that the method also includes:
When domain name server address is link-local address, receives the gateway and sent every the first preset time Multicast Routing notification packet, wherein domain name server address and described slow is carried in the Multicast Routing notification packet Deposit domain name list;
When the relatively described caching domain name list of the domain name list in domain name server changes, Xiang Suoshu gateway Send secondary route request message, wherein carry in the secondary route request message first new in domain name server Domain name list, so that the caching domain name list update is the first neofield list of file names by the gateway.
6. domain name list obtaining method as claimed in claim 4, which is characterized in that the method also includes:
When domain name server address is global unicast address, receives the gateway and sent every the second preset time The second singlecast router notification packet, wherein the caching domain name list is carried in the second singlecast router notification packet;
When the relatively described caching domain name list of the domain name list in domain name server changes, Xiang Suoshu gateway Send third route requests message, wherein carry in the third route requests message second new in domain name server Domain name list, so that the caching domain name list update is the second neofield list of file names by the gateway.
7. a kind of domain name list acquisition device is applied to gateway, is provided with name server in advance in the gateway Address, which is characterized in that described device includes:
Advertising of route message sending module, when in the gateway there is no domain name list is cached, to domain name The corresponding name server of server address sends the first singlecast router notification packet;
Route requests message receiving module, for receiving the first via of domain name server transmission by request message, wherein institute It states when name server does not carry the caching domain name list in the first singlecast router notification packet and sends described first Route requests message, the first via is by carrying the domain name list in domain name server in request message;
Domain name list cache module, for caching the domain name list in domain name server and will be in domain name server Domain name list is as the caching domain name list.
8. a kind of domain name list acquisition device, it is applied to name server, which is characterized in that described device includes:
Advertising of route message receiving module, sent for receiving gateway according to preconfigured domain name server address One singlecast router notification packet, wherein domain name server address is corresponding with domain name server;
Route requests message sending module, for not carrying caching domain name list in the first singlecast router notification packet When, Xiang Suoshu gateway sends the first via by request message, wherein the first via is by carrying domain name in request message Domain name list in server, so as to the domain name list in gateway caching domain name server and by domain name Domain name list in server is as the caching domain name list.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt When first processor reads and runs, the method according to claim 1 is realized.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program When being read and run by second processor, such as the described in any item methods of claim 4-6 are realized.
11. a kind of gateway, which is characterized in that the computer readable storage medium and first including being stored with computer program Processor when the computer program is read and run by the first processor, is realized as described in claim any one of 1-3 Method.
12. a kind of name server, which is characterized in that the computer readable storage medium and including being stored with computer program Two processors when the computer program is read and run by the second processor, are realized such as any one of claim 4-6 institute The method stated.
CN201811237871.XA 2018-10-23 2018-10-23 Domain name list acquisition method and related device Active CN109462667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811237871.XA CN109462667B (en) 2018-10-23 2018-10-23 Domain name list acquisition method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811237871.XA CN109462667B (en) 2018-10-23 2018-10-23 Domain name list acquisition method and related device

Publications (2)

Publication Number Publication Date
CN109462667A true CN109462667A (en) 2019-03-12
CN109462667B CN109462667B (en) 2021-07-06

Family

ID=65608245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811237871.XA Active CN109462667B (en) 2018-10-23 2018-10-23 Domain name list acquisition method and related device

Country Status (1)

Country Link
CN (1) CN109462667B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
CN102333131A (en) * 2010-07-13 2012-01-25 中国电信股份有限公司 Method for providing domain name service, system and agent DNS
US8280946B1 (en) * 2003-09-10 2012-10-02 Google Inc. Reduction of perceived DNS lookup latency
CN103166937A (en) * 2011-12-16 2013-06-19 中国移动通信集团公司 Device visiting method and home gateway device inside home network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8280946B1 (en) * 2003-09-10 2012-10-02 Google Inc. Reduction of perceived DNS lookup latency
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
CN102333131A (en) * 2010-07-13 2012-01-25 中国电信股份有限公司 Method for providing domain name service, system and agent DNS
CN103166937A (en) * 2011-12-16 2013-06-19 中国移动通信集团公司 Device visiting method and home gateway device inside home network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
J. JEONG等: "《IETF RFC 8106》", 31 March 2017 *

Also Published As

Publication number Publication date
CN109462667B (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN101656765B (en) Address mapping system and data transmission method of identifier/locator separation network
CN104718733B (en) The method and system of packet-based identifier finger URL procotol (ILNP) load balance and Route Selection
CN101753460B (en) Method and device for processing internet protocol version 6(IPV6) routing prefix
CN109428749A (en) Network management and relevant device
JP2012524499A (en) A mobile terminal capable of providing data tethering services while maintaining a series of mobile service functions
CN108401037A (en) User terminal and the binding method of equipment, device and system
CN106982163B (en) Method and gateway for acquiring route on demand
CN109076082A (en) Anonymous Identity in network and agreement towards identity
CN101800760A (en) Realization method and system for accessing data service
CN105591907B (en) A kind of route obtaining method and device
US20170118581A1 (en) Switching to advertising locator after connection establishment
CN104954431A (en) Network selection method, device and system
CN114143257A (en) Method for generating table entry, method, device and system for sending message
CN108924052A (en) Message forwarding method, aggregation gateway, access gateway and system
CN110392123A (en) The methods, devices and systems of detection outlet IP address
CN106878973A (en) A kind of network identity mapping method and device
CN104969521A (en) Data sending and processing method and router
CN114422218A (en) Tenant isolation method, device and storage medium
CN102137172A (en) Access method and access device for DNS (Domain Name Server)
CN108429822A (en) Communication system, IPv6 address distribution methods, device and distributed network gate
CN109462667A (en) Domain name list obtaining method and relevant apparatus
CN109495598A (en) Domain name system parameter selection method and relevant apparatus
US9749201B2 (en) Method and system for monitoring locator/identifier separation network
CN107547684A (en) A kind of IPv6 address distribution methods and device
CN108259340A (en) A kind of topology information transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant