CN109495598A - Domain name system parameter selection method and relevant apparatus - Google Patents

Domain name system parameter selection method and relevant apparatus Download PDF

Info

Publication number
CN109495598A
CN109495598A CN201811281554.8A CN201811281554A CN109495598A CN 109495598 A CN109495598 A CN 109495598A CN 201811281554 A CN201811281554 A CN 201811281554A CN 109495598 A CN109495598 A CN 109495598A
Authority
CN
China
Prior art keywords
domain name
domain
server address
priority
suffix
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
CN201811281554.8A
Other languages
Chinese (zh)
Other versions
CN109495598B (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 CN201811281554.8A priority Critical patent/CN109495598B/en
Publication of CN109495598A publication Critical patent/CN109495598A/en
Application granted granted Critical
Publication of CN109495598B publication Critical patent/CN109495598B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Abstract

The disclosure proposes a kind of domain name system parameter selection method and relevant apparatus, is related to network communication technology field.Terminal device in IPv6 network receives the domain name system configuration message that at least two external equipments are sent, the domain name system configuration message includes the priority of domain name server address and preconfigured domain name server address or the priority including domain suffix and preconfigured domain suffix, terminal device can determine the selecting sequence of the domain name server address in the domain name system configuration message that at least two external equipment is sent according to the sequence of the priority of at least two domain name server address, it can determine the selecting sequence of the domain suffix in the domain name system configuration message of at least two external equipment transmission according to the sequence of the priority of at least two domain suffix, to select suitable domain name server address or domain suffix.

Description

Domain name system parameter selection method and relevant apparatus
Technical field
This disclosure relates to network communication technology field, in particular to a kind of domain name system parameter selection method and phase Close device.
Background technique
In IPv6 (Internet Protocol Version 6, Internet protocol sixth version) network, host passes through dynamic The DHCP message that state host configuration (Dynamic Host Configuration Protocol, DHCP) server is sent DNS (Domain Name System, the domain name system) information of middle carrying or the RA (Router sent by gateway Advertisement, advertising of route) DNS information that carries in message obtains domain suffix and provides domain name resolution service The address of name server.When there are multiple gateways and multiple Dynamic Host Configuration Protocol server and all being provided to host in IPv6 network When domain name server address and domain suffix, host can not determine multiple domain name server address or multiple domain suffix Selecting sequence.
Summary of the invention
The disclosure is designed to provide a kind of domain name system parameter selection method and relevant apparatus, to solve terminal device When obtaining the domain name server address and domain suffix that multiple external equipments provide, with can not determining multiple name server The problem of selecting sequence of location or multiple domain suffix.
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 system parameter selection method, set applied to the terminal in IPv6 network Standby, the IPv6 network further includes at least two external equipments, which comprises receives at least two external equipments hair The domain name system configuration message sent, domain name system configuration message carry domain name system parameter, domain name system parameter packet Domain name server address is included, domain name system configuration message includes domain name server address option, the choosing of domain name server Item record has the priority of the domain name server address and preconfigured domain name server address;According at least two The sequence of the priority of a domain name server address determines the domain name system that at least two external equipment is sent The selecting sequence of domain name server address in configuration message.
Second aspect, the disclosure also proposes a kind of domain name system parameter selection method, applied to the terminal in IPv6 network Equipment, the IPv6 network further include at least two external equipments, which comprises
The domain name system configuration message that at least two external equipment is sent is received, domain name system configuration message is taken Band domain name system parameter, domain name system parameter includes domain suffix, and domain name system configuration message includes domain name list Option, domain name list option record the priority for having the domain suffix and preconfigured domain name suffix;Root The domain name system that at least two external equipment is sent is determined according to the sequence of the priority of at least two domain name suffix The selecting sequence of domain suffix in system configuration message.
The third aspect, the disclosure also proposes a kind of domain name system parameter selection apparatus, applied to the terminal in IPv6 network Equipment, the IPv6 network further include at least two external equipments, and described device includes: message receiving module, for receiving The domain name system configuration message of at least two external equipments transmission is stated, domain name system configuration message carries domain name system ginseng Number, domain name system parameter includes domain name server address, and domain name system configuration message includes domain name server address Option, domain name server option record with having the domain name server address and preconfigured domain name server The priority of location;Selecting module, the sequence for the priority according at least two domain name server address determine The selecting sequence for the domain name server address in domain name system configuration message that at least two external equipment is sent.
Fourth aspect, the disclosure also proposes a kind of domain name system parameter selection apparatus, applied to the terminal in IPv6 network Equipment, the IPv6 network further include at least two external equipments, and described device includes: message receiving module, for receiving The domain name system configuration message of at least two external equipments transmission is stated, domain name system configuration message carries domain name system ginseng Number, domain name system parameter includes domain suffix, and domain name system configuration message includes domain name list option, domain name List option records the priority for having the domain suffix and preconfigured domain name suffix;Selecting module is used for root The domain name system that at least two external equipment is sent is determined according to the sequence of the priority of at least two domain name suffix The selecting sequence of domain suffix in system configuration message.
5th aspect, the disclosure also proposes a kind of computer readable storage medium, is stored thereon with computer program, described Computer program is read out by the processor and realizes method described in above-mentioned first aspect or second aspect when running.
6th aspect, the disclosure also propose a kind of terminal device, deposit including being stored with the computer-readable of computer program Storage media and processor when the computer program is read and run by the processor, realize above-mentioned first aspect or second Method described in aspect.
Domain name system parameter selection method and relevant apparatus provided by the disclosure, on the one hand, terminal device receives at least The domain name system configuration message that two external equipments are sent, the domain name system configuration message carry domain name system parameter, domain name system Parameter of uniting includes domain name server address, which includes domain name server address option, name server Option records the priority for having domain name server address and preconfigured domain name server address, according at least two domain names The sequence of the priority of server address determines the domain in the domain name system configuration message that at least two external equipments are sent The selecting sequence of name server address;On the other hand, the domain name system that terminal device receives that at least two external equipments are sent is matched Message is set, which carries domain name system parameter, and domain name system parameter includes domain suffix, the domain name system Configuration message includes domain name list option, and record has domain suffix and preconfigured domain suffix in domain name list option Priority determines the domain name system that at least two external equipments are sent according to the sequence of the priority of at least two domain suffix The selecting sequence of domain suffix in system configuration message.In this way, terminal device is in the domain for obtaining the offer of at least two external equipments Name server address and when domain suffix, can be determined according to precedence information at least two domain name server address or this extremely The selecting sequence of few two domain suffix, to select suitable domain name server address or domain suffix.
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 system parameter selection method and device provided by the disclosure.
Fig. 2 shows the schematic diagrames of the format of RDNSS option provided by the disclosure.
Fig. 3 shows the schematic diagram of the format of DNSSL option provided by the disclosure.
Fig. 4 shows the schematic diagram of the format of DNS_SERVERS option provided by the disclosure.
Fig. 5 shows the schematic diagram of the format of DOMAIN_LIST option provided by the disclosure.
Fig. 6 shows a kind of flow diagram of domain name system parameter selection method provided by the disclosure.
Fig. 7 shows the flow diagram of another kind domain name system parameter selection method provided by the disclosure
Fig. 8 shows the structural block diagram of terminal device provided by the disclosure.
Fig. 9 shows the functional block diagram of domain name system parameter selection apparatus provided by the disclosure.
Icon: 100- terminal device;200- gateway;300- Dynamic Host Configuration Protocol server;400- domain name system System parameter selection apparatus;110- memory;120- processor;130- communication interface;410- message receiving module;420- selects mould Block.
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 system parameter selection method provided by the disclosure and device. Terminal device 100, gateway 200 and Dynamic Host Configuration Protocol server 300 are located in IPv6 network, terminal device 100, gateway 200 and Dynamic Host Configuration Protocol server 300 successively communicate to connect.In the present embodiment, the terminal Equipment 100 can be to be multiple, and the gateway 200 communicated to connect with terminal device 100 can be multiple, each gateway 200 communicate to connect with Dynamic Host Configuration Protocol server 300, terminal device 100 by with gateway 200 or Dynamic Host Configuration Protocol server 300 carries out message interaction, can obtain DNS parameter (i.e. domain name system parameter), and then foundation DNS parameter realizes automatically configuring for DNS.
In the present embodiment, which can be the equipment such as interchanger, router, which can be with It is smart phone, tablet computer, the PC (personal computer, PC), mobile internet surfing equipment for supporting IPv6 agreement (mobile Internet device, MID), personal digital assistant (personal digital assistant, PDA) etc. are set It is standby.
The gateway 200 and the Dynamic Host Configuration Protocol server 300 are used to the terminal device 100 Domain name system configuration message is sent, each domain name system configuration message carries domain name system parameter, domain name system parameter Including domain name server address and domain suffix, each domain name system configuration message includes domain name server address option and domain Table options are ranked, domain name server option record has the domain name server address and preconfigured domain name clothes The priority of business device address, domain name list option record have the domain suffix and preconfigured domain name suffix Priority, domain name list option record has the preferential of the domain suffix and preconfigured domain name suffix Grade.
In the present embodiment, domain name system parameter, domain name system parameter packet are provided in the gateway 200 in advance Domain name server address and domain suffix are included, gateway 200 is in the route requests for receiving the transmission of terminal device 100 When (Router Solicitation, RS) message, advertising of route (Router is sent to terminal device 100 Advertisement, RA) message (i.e. above-mentioned domain name system configuration message) and by preconfigured domain name server address and Domain suffix is separately recorded in the RDNSS (Recursive DNS Server, recurrence dns server) of the RA message, and option is (i.e. Above-mentioned domain name server address option) and DNSSL (DNS Search List, DNS search list) option (i.e. above-mentioned domain Rank table options) in.It include option type field in RDNSS option as shown in Fig. 2, being the schematic diagram of the format of RDNSS option When (i.e. Type), option (i.e. Length), precedence field (i.e. Pro), reserved field (i.e. Reserved), existence Between field (i.e. Lifetime) and address field (i.e. Addresses of IPv6Recursive DNS Servers), In, address field is used to be recorded as the domain name server address for the name server that terminal device 100 provides domain name mapping function, TTL field is used to record the life span of domain name server address, and precedence field is for recording domain name server address Priority, numerical value is bigger, and expression priority is higher.As shown in figure 3, the schematic diagram of the format for DNSSL option, DNSSL option In include option type field (i.e. Type), option (i.e. Length), precedence field (i.e. Pro), reserved field (i.e. Reserved), TTL field (i.e. Lifetime) and domain name field (i.e. Domain Names of DNS Search List), wherein domain name field is used for recording the domain suffix used for terminal device 100, TTL field In the life span of record domain suffix, precedence field is used to record the priority of domain suffix, and numerical value is bigger to indicate preferential Grade is higher.
Domain name system parameter, dynamic host configuration protocol are provided in advance in the Dynamic Host Configuration Protocol server 300 When server 300 receives the DHCP request message from terminal device 100 by gateway 200, sent out to terminal device 100 Send DHCP back message (i.e. above-mentioned domain name system configuration message) and will be after preconfigured domain name server address and domain name Sew the DNS_SERVERS option (i.e. above-mentioned domain name server address option) for being separately recorded in DHCP back message and In DOMAIN_LIST option (i.e. above-mentioned domain name list option).As shown in figure 4, being showing for the format of DNS_SERVERS option It is intended to, includes option code field (i.e. option-code), option (i.e. option- in DNS_SERVERS option Len), precedence field (i.e. Pro), reserved field (i.e. Reserve) and address field (i.e. DNS-recursive-name- Server (IPv6address)), wherein address field is used to be recorded as terminal device 100 and provides the domain name of domain name mapping function The domain name server address of server, precedence field are used to record the priority of domain name server address, the bigger expression of numerical value Priority is higher.It include choosing in DOMAIN_LIST option as shown in figure 5, being the schematic diagram of the format of DOMAIN_LIST option Item code field (i.e. option-code), option (i.e. option-len), precedence field (i.e. Pro), reserved word Section (i.e. Reserve) and domain name field (i.e. searchlist), wherein domain name field makes for recording for terminal device 100 Domain suffix, precedence field are used to record the priority of domain suffix, and numerical value is bigger, and expression priority is higher.
The terminal device 100 is receiving gateway 200 and the transmission of Dynamic Host Configuration Protocol server 300 at least When two domain name system configuration messages, it can determine that at least two domain name system configures according to the numerical values recited in precedence field The selecting sequence of domain name server address in message, the numerical value in precedence field is bigger, shows domain name server address Priority is higher, and terminal device 100 will carry out name server according to the sequence of the priority of domain name server address Selection;The domain suffix in at least two domain name systems configuration message is determined according to the numerical values recited in precedence field Selecting sequence, the numerical value in precedence field is bigger, shows that the priority of domain suffix is higher, terminal device 100 will be according to domain The sequence of the priority of name suffix selects domain suffix.In this way, terminal device 100 can be from gateway 200 It is selected at least two domain name server address and at least two domain suffix provided with Dynamic Host Configuration Protocol server 300 Select suitable domain name server address and domain suffix.
Fig. 6 is please referred to, is the flow diagram of domain name system parameter selection method provided by the disclosure.It needs to illustrate It is that domain name system parameter selection method described in the disclosure is not limitation with Fig. 6 and specific order as described below, it should Understand, in other embodiments, the sequence of domain name system parameter selection method part step can root described in the disclosure It is exchanged with each other according to actual needs or part steps therein also can be omitted or delete.The domain name system parameter selection method It can be applied to above-mentioned terminal device 100.Detailed process shown in fig. 6 will be described in detail below.
Step S101 receives the domain name system configuration message that at least two external equipment is sent, domain name system Configuration message carries domain name system parameter, and domain name system parameter includes domain name server address, domain name system configuration Message includes domain name server address option, and domain name server option record has the domain name server address and in advance The priority of the domain name server address of configuration.
In the present embodiment, which may include that above-mentioned gateway 200 and DynamicHost are matched The one of which in protocol server 300 is set, can also simultaneously include gateway 200 and Dynamic Host Configuration Protocol server 300。
Step S102, it is described at least according to the determination of the sequence of the priority of at least two domain name server address The selecting sequence for the domain name server address in domain name system configuration message that two external equipments are sent.
For example, it is assumed that terminal device 100 receives 4 domain name system configuration messages, in 4 domain name system configuration messages The domain name server address of carrying is respectively A1, A2, A3, A4, and the priority of A1 is that the priority of 2, A2 is the priority of 6, A3 Priority for 5, A4 is 4, then the selecting sequence of four domain name server address is A2, A3, A4, A1.
In the present embodiment, step S102 includes: when the priority of at least two domain name server address is identical When, if record has the life span of the domain name server address in domain name server address option, according to priority The identical respective life span of at least two domain names server address determines identical at least two institute of the priority State the selecting sequence of domain name server address;If in domain name server address option with not recorded the name server The life span of location, it is determined that do not record the domain name clothes in the domain name server address option of the life span The highest priority of business device address.
In other words, the domain name server address identical for priority of terminal device 100, can be according to name server The life span of address is selected, by Fig. 2 and Fig. 4 it is found that domain name system configuration message that gateway 200 is sent Record has the life span of domain name server address in RDNSS option, and the domain that Dynamic Host Configuration Protocol server 300 is sent The life span of domain name server address is not recorded in the DNS_SERVERS option of name system configuration message, default should at this time The life span of domain name server address is indefinite duration.For example, it is assumed that the domain name service carried in 4 domain name system configuration messages Device address is respectively A1, A2, A3, A4, and the priority that the priority of A1 is 2, A2 is that the priority of 6, A3 is the priority of 6, A4 It is 4, when A2 and A3 is provided by different gateways 200, then record has A2 in domain name server address option belonging to A2 Life span T1, A3 belonging in domain name server address option record have a life span T2 of A3, if T1 > T2, A2 Priority is higher than A3, and the selecting sequence of four domain name server address is A2, A3, A4, A1 at this time, if T2 > T1, A3's is excellent First grade is higher than A2, and the selecting sequence of four domain name server address is A3, A2, A4, A1 at this time;When A2 is by gateway 200 It provides, when A3 is provided by Dynamic Host Configuration Protocol server 300, then the life span for defaulting A3 is indefinite duration, i.e. A3's is excellent First grade highest in A2, A3, the selecting sequence of four domain name server address is A3, A2, A4, A1 at this time.
Fig. 7 is please referred to, is the flow diagram of another kind domain name system parameter selection method provided by the disclosure.It needs Illustrate, domain name system parameter selection method described in the disclosure is not limited with Fig. 7 and specific order as described below System, it should be understood that in other embodiments, the sequence of domain name system parameter selection method part step described in the disclosure It can be exchanged with each other according to actual needs or part steps therein also can be omitted or delete.Domain name system parameter choosing Selection method can be applied to above-mentioned terminal device 100.Detailed process shown in Fig. 7 will be described in detail below.
Step S201 receives the domain name system configuration message that at least two external equipment is sent, domain name system Configuration message carries domain name system parameter, and domain name system parameter includes domain suffix, domain name system configuration message packet Include domain name list option, domain name list option record has the domain suffix and preconfigured domain name suffix Priority.
In the present embodiment, which may include that above-mentioned gateway 200 and DynamicHost are matched The one of which in protocol server 300 is set, can also simultaneously include gateway 200 and Dynamic Host Configuration Protocol server 300。
Step S202 is determined outside described at least two according to the sequence of the priority of at least two domain name suffix The selecting sequence for the domain suffix in domain name system configuration message that portion's equipment is sent.
For example, it is assumed that terminal device 100 receives 4 domain name system configuration messages, in 4 domain name system configuration messages The domain suffix of carrying is respectively B1, B2, B3, B4, and the priority that the priority that the priority of B1 is 5, B2 is 4, B3 is 7, B4 Priority be 3, then the selecting sequence of four domain suffix be B3, B1, B2, B4.
In the present embodiment, step S202 includes: when the priority of at least two domain name suffix is identical, if institute The life span that record in domain name list option has the domain suffix is stated, then according to identical at least two domain of priority The name respective life span of suffix determines the selecting sequence of the identical at least two domain names suffix of the priority;If described The life span of the domain suffix is not recorded in domain name list option, it is determined that do not record the described of the life span The highest priority of domain name suffix in domain name list option.
In other words, the domain suffix identical for priority of terminal device 100, when can be according to the existence of domain suffix Between selected, by Fig. 3 and Fig. 5 it is found that being recorded in the DNSSL option for the domain name system configuration message that gateway 200 is sent There is a life span of domain suffix, and the domain name system configuration message that Dynamic Host Configuration Protocol server 300 is sent The life span for not recording domain suffix in DOMAIN_LIST option, the life span for defaulting the domain suffix at this time is nothing Time limit.For example, it is assumed that the domain suffix carried in 4 domain name system configuration messages is respectively B1, B2, B3, B4, the priority of B1 The priority that the priority that priority for 5, B2 is 4, B3 is 7, B4 is 4, when B2 and B4 is provided by different gateways 200 When, then recording to have to record in domain name list option belonging to the life span T3, B4 of B2 in domain name list option belonging to B2 has The life span T4 of B4, if the priority of T3 > T4, B2 are higher than B4, the at this time selecting sequence of four domain name server address For B3, B1, B2, B4, if the priority of T4 > T3, B4 are higher than B2, the selecting sequence of four domain name server address is at this time B3,B1,B4,B2;When B2 is provided by gateway 200, and B4 is provided by Dynamic Host Configuration Protocol server 300, then default The life span of B4 is indefinite duration, the i.e. priority of B4 highest in B2, B4, the at this time selection of four domain name server address Sequence is B3, B1, B4, B2.
It should be noted that in practical applications, when to external equipment, (i.e. gateway 200 and dynamic host configuration are assisted Discuss server 300) configuration domain name system parameter when, only one of them in domain name server address and domain suffix can be matched Priority is set, it can also be simultaneously to domain name server address and domain suffix configuration preference level.In this way, terminal device 100 receives Domain name system configuration message include name server option and domain name list option, recorded when in only name server option When the priority of domain name server address, then the terminal device 100 is according to the priority of at least two domain name server address Sequence determine the domain name server address in domain name system configuration message that at least two external equipment is sent Selecting sequence;When the only priority of domain name list option record domain suffix, then terminal device 100 is according at least two domains The sequence of the priority of name suffix determines the domain name in the domain name system configuration message that at least two gateways 200 are sent The selecting sequence of suffix;In the received domain name system configuration message of terminal device 100, domain name server address option record has When priority and domain name the list option record of domain name server address have the priority of domain suffix, terminal device 100 can The domain that at least two external equipment is sent is determined according to the sequence of the priority of at least two domain name server address The selecting sequence of domain name server address in name system configuration message, and can be according to the priority of at least two domain suffix Sequence determines the selecting sequence of the domain suffix in the domain name system configuration message that at least two external equipments are sent.
Fig. 8 is please referred to, is the structural block diagram of terminal device 100 provided by the disclosure.Terminal device 100 may include depositing Reservoir 110, processor 120 and communication interface 130, the memory 110, processor 120 and communication interface 130, each element are mutual Between be directly or indirectly electrically connected, to realize the transmission or interaction of data.For example, these elements can pass through one between each other Item or a plurality of communication bus or signal wire, which are realized, to be electrically connected.Memory 110 can be used for storing software program and module, such as aforementioned Corresponding program instruction/the module of domain name system parameter selection method provided by embodiment of the method, processor 120 are deposited by executing Software program and module in memory 110 are stored up, thereby executing various function application and data processing.The communication interface 130 can be used for carrying out the communication of signaling or data with other node devices.
Wherein, memory 110 can be but not limited to, random access memory 110 (Random Access Memory, RAM), read-only memory 110 (Read Only Memory, ROM), 110 (Programmable of programmable read only memory Read-Only Memory, PROM), (the Erasable Programmable Read-Only of erasable read-only memory 110 Memory, EPROM), (the Electric Erasable Programmable Read-Only of electricallyerasable ROM (EEROM) 110 Memory, EEPROM) etc..
Processor 120 may be a kind of IC chip, have signal handling capacity.The processor 120 can be logical With processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array Arrange (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
It is appreciated that structure shown in Fig. 8 is only to illustrate, terminal device 100 may also include it is more than shown in Fig. 8 or Less component, or with the configuration different from shown in Fig. 8.Each component shown in fig. 8 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 system parameter selection method that the disclosure discloses is realized when sequence is executed by processor 120.
Fig. 9 is please referred to, is the functional block diagram of domain name system parameter selection apparatus 400 provided by the disclosure.It needs It is noted that the technical effect of domain name system parameter selection apparatus 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 in preceding method embodiment Corresponding contents.Domain name system parameter selection device 400 is applied to above-mentioned terminal device 100, including message receiving module 410, selecting module 420.
The message receiving module 410 is used to receive the domain name system configuration message that at least two external equipment is sent, Domain name system configuration message carries domain name system parameter, and domain name system parameter includes domain name server address, described Domain name system configuration message includes domain name server address option, and domain name server option record has the name server The priority of address and preconfigured domain name server address.
The message receiving module 410 is also used to receive the domain name system configuration report that at least two external equipment is sent Text, domain name system configuration message carry domain name system parameter, and domain name system parameter includes domain suffix, domain name System configuration message includes domain name list option, and domain name list option record has the domain suffix and preconfigured The priority of domain name suffix.
It is appreciated that the message receiving module 410 can execute above-mentioned steps S101 and step S201.
The selecting module 420 is used to be determined according to the sequence of the priority of at least two domain name server address The selecting sequence for the domain name server address in domain name system configuration message that at least two external equipment is sent.
In the present embodiment, the selecting module 420 is specifically used for working as the excellent of at least two domain name server address When first grade is identical, if record has the life span of the domain name server address, root in domain name server address option Determine that the priority is identical extremely according to the identical respective life span of at least two domain names server address of priority The selecting sequence of few two domain name server address;If not recorded domain name in domain name server address option The life span of server address, it is determined that do not record the institute in the domain name server address option of the life span State the highest priority of domain name server address.
The selecting module 420 is also used to take in the received at least two domain name systems configuration message of message receiving module 410 When the domain name system parameter of band includes domain suffix, determined according to the sequence of the priority of at least two domain name suffix The selecting sequence for the domain suffix in domain name system configuration message that at least two external equipment is sent.
In the present embodiment, the selecting module 420 is specifically used for the priority phase when at least two domain name suffix It is identical at least according to priority meanwhile if record has the life span of the domain suffix in domain name list option Two respective life spans of domain name suffix determine the selection of the identical at least two domain names suffix of the priority Sequentially;If the life span of the domain suffix is not recorded in domain name list option, it is determined that do not recorded the life Deposit the highest priority of the domain name suffix in the domain name list option of time.
It is appreciated that the selecting module 420 can execute above-mentioned steps S102 and step S202.
It is appreciated that in the present embodiment, which both can be true according to the priority of domain name server address Determine the selecting sequence of domain name server address, and can determine the selecting sequence of domain suffix according to the priority of domain suffix. Wherein, when only domain name server address option record has preferentially in the received domain name system configuration message of message receiving module 410 When grade, then selecting module 420 only sends at least two external equipments the name server in domain name system configuration message The selecting sequence of location is determined;When only domain name list option in the received domain name system configuration message of message receiving module 410 When record has priority, then selecting module 420 is only to the domain in the domain name system configuration message of at least two external equipments transmission The selecting sequence of name suffix is determined;Domain name service in the received domain name system configuration message of message receiving module 410 Device address option and domain name list option record when having priority, then selecting module 420 can be respectively to outside at least two The selecting sequence for the domain name server address in domain name system configuration message that equipment is sent and the selecting sequence of domain suffix It is determined.
In conclusion domain name system parameter selection method and relevant apparatus provided by the disclosure, terminal device receive to The domain name system configuration message that few two external equipments are sent, each domain name system configuration message carry domain name system parameter, Domain name system parameter includes domain name server address and domain suffix, and each domain name system configuration message includes name server Address option and domain name list option, name server option record have domain name server address and preconfigured domain name clothes It is engaged in the priority of device address, record has the priority of domain suffix and preconfigured domain suffix in domain name list option, The domain name system that at least two external equipments are sent is determined according to the sequence of the priority of at least two domain name server address The selecting sequence of domain name server address in system configuration message, according to the sequence of the priority of at least two domain suffix Determine the selecting sequence of the domain suffix in the domain name system configuration message of at least two external equipments transmission.In this way, terminal is set When the standby domain name server address and domain suffix provided in the multiple external equipments of acquisition, can be determined according to precedence information should The selecting sequence of multiple domain name server address and multiple domain suffix, to select suitable domain name server address and domain name Suffix.
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 (10)

1. a kind of domain name system parameter selection method, which is characterized in that applied to the terminal device in IPv6 network, the IPv6 Network further includes at least two external equipments, which comprises
The domain name system configuration message that at least two external equipment is sent is received, domain name system configuration message carries domain Name system parameter, domain name system parameter include domain name server address, and domain name system configuration message includes domain name clothes Business device address option, domain name server option record have the domain name server address and preconfigured domain name The priority of server address;
At least two external equipment is determined according to the sequence of the priority of at least two domain name server address The selecting sequence of domain name server address in the domain name system configuration message of transmission.
2. domain name system parameter selection method as described in claim 1, which is characterized in that described according at least two domains The sequence of the priority of name server address determines the domain name system configuration message that at least two external equipment is sent In domain name server address selecting sequence the step of include:
When the priority of at least two domain name server address is identical, if being recorded in domain name server address option There is the life span of the domain name server address, then it is each according to the identical at least two domain names server address of priority From life span determine the selecting sequence of the identical at least two domain names server address of the priority;
If the life span of the domain name server address is not recorded in domain name server address option, it is determined that do not remember Record has the highest priority of the domain name server address in the domain name server address option of the life span.
3. a kind of domain name system parameter selection method, which is characterized in that applied to the terminal device in IPv6 network, the IPv6 Network further includes at least two external equipments, which comprises
The domain name system configuration message that at least two external equipment is sent is received, domain name system configuration message carries domain Name system parameter, domain name system parameter includes domain suffix, and domain name system configuration message includes domain name list option, Domain name list option records the priority for having the domain suffix and preconfigured domain name suffix;
Determine what at least two external equipment was sent according to the sequence of the priority of at least two domain name suffix The selecting sequence of domain suffix in domain name system configuration message.
4. domain name system parameter selection method as claimed in claim 3, which is characterized in that described according at least two domains The sequence of the priority of name suffix determines the domain in the domain name system configuration message that at least two external equipment is sent Name suffix selecting sequence the step of include:
When the priority of at least two domain name suffix is identical, if after record has domain name in domain name list option The life span sewed then is determined according to the identical respective life span of at least two domain names suffix of priority described preferential The selecting sequence of the identical at least two domain names suffix of grade;
If the life span of the domain suffix is not recorded in domain name list option, it is determined that do not recorded the existence The highest priority of domain name suffix in the domain name list option of time.
5. a kind of domain name system parameter selection apparatus, which is characterized in that applied to the terminal device in IPv6 network, the IPv6 Network further includes at least two external equipments, and described device includes:
Message receiving module, the domain name system configuration message sent for receiving at least two external equipment, domain name System configuration message carries domain name system parameter, and domain name system parameter includes domain name server address, domain name system Configuration message includes domain name server address option, domain name server option record have the domain name server address and The priority of preconfigured domain name server address;
Selecting module, the sequence determination for the priority according at least two domain name server address are described at least The selecting sequence for the domain name server address in domain name system configuration message that two external equipments are sent.
6. domain name system parameter selection apparatus as claimed in claim 5, which is characterized in that the selecting module is used for ought be at least When the priority of two domain name server address is identical, if record has domain name in domain name server address option The life span of server address, then when existence respective according to the identical at least two domain names server address of priority Between determine the selecting sequence of the identical at least two domain names server address of the priority;If domain name server The life span of the domain name server address is not recorded in the option of location, it is determined that do not record the described of the life span The highest priority of domain name server address in domain name server address option.
7. a kind of domain name system parameter selection apparatus, which is characterized in that applied to the terminal device in IPv6 network, the IPv6 Network further includes at least two external equipments, and described device includes:
Message receiving module, the domain name system configuration message sent for receiving at least two external equipment, domain name System configuration message carries domain name system parameter, and domain name system parameter includes domain suffix, domain name system configuration report Text includes domain name list option, after domain name list option record has the domain suffix and preconfigured domain name The priority sewed;
Selecting module, the sequence for the priority according at least two domain name suffix determine outside described at least two The selecting sequence for the domain suffix in domain name system configuration message that portion's equipment is sent.
8. domain name system parameter selection apparatus as claimed in claim 7, which is characterized in that the selecting module is used for ought be at least When the priority of two domain name suffix is identical, if record has the existence of the domain suffix in domain name list option Between, then determine that the priority is identical extremely according to the identical respective life span of at least two domain names suffix of priority The selecting sequence of few two domain name suffix;If the existence of the domain suffix is not recorded in domain name list option Between, it is determined that the highest priority of the domain name suffix in the domain name list option of the life span is not recorded.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt When processor reads and runs, method according to any of claims 1-4 is realized.
10. a kind of terminal device, which is characterized in that computer readable storage medium and processing including being stored with computer program Device when the computer program is read and run by the processor, realizes method according to any of claims 1-4.
CN201811281554.8A 2018-10-23 2018-10-23 Domain name system parameter selection method and related device Active CN109495598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811281554.8A CN109495598B (en) 2018-10-23 2018-10-23 Domain name system parameter selection method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811281554.8A CN109495598B (en) 2018-10-23 2018-10-23 Domain name system parameter selection method and related device

Publications (2)

Publication Number Publication Date
CN109495598A true CN109495598A (en) 2019-03-19
CN109495598B CN109495598B (en) 2022-02-11

Family

ID=65693321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811281554.8A Active CN109495598B (en) 2018-10-23 2018-10-23 Domain name system parameter selection method and related device

Country Status (1)

Country Link
CN (1) CN109495598B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414208A (en) * 2020-03-13 2020-07-14 百度在线网络技术(北京)有限公司 Application program starting method, device and equipment
CN111866197A (en) * 2019-04-29 2020-10-30 贵州白山云科技股份有限公司 Domain name resolution method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984155A (en) * 2005-12-15 2007-06-20 上海贝尔阿尔卡特股份有限公司 Method for configuring domain name in IPv6 access network and its network equipment
CN103561122A (en) * 2013-10-23 2014-02-05 华为终端有限公司 IPv6 address collocation method, IPv6 client and server
US20160353366A1 (en) * 2013-02-05 2016-12-01 Mediatek Inc. Apparatus and method for acquiring ipv6 domain name system server and sip server address
CN106412000A (en) * 2016-07-27 2017-02-15 厦门易名科技股份有限公司 Domain name query processing method
CN106790746A (en) * 2016-12-09 2017-05-31 互联网域名系统北京市工程研究中心有限公司 A kind of distributed domain name storage and parsing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984155A (en) * 2005-12-15 2007-06-20 上海贝尔阿尔卡特股份有限公司 Method for configuring domain name in IPv6 access network and its network equipment
US20160353366A1 (en) * 2013-02-05 2016-12-01 Mediatek Inc. Apparatus and method for acquiring ipv6 domain name system server and sip server address
CN103561122A (en) * 2013-10-23 2014-02-05 华为终端有限公司 IPv6 address collocation method, IPv6 client and server
CN106412000A (en) * 2016-07-27 2017-02-15 厦门易名科技股份有限公司 Domain name query processing method
CN106790746A (en) * 2016-12-09 2017-05-31 互联网域名系统北京市工程研究中心有限公司 A kind of distributed domain name storage and parsing method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866197A (en) * 2019-04-29 2020-10-30 贵州白山云科技股份有限公司 Domain name resolution method and system
CN111866197B (en) * 2019-04-29 2021-09-21 贵州白山云科技股份有限公司 Domain name resolution method and system
CN111414208A (en) * 2020-03-13 2020-07-14 百度在线网络技术(北京)有限公司 Application program starting method, device and equipment
CN111414208B (en) * 2020-03-13 2023-08-01 百度在线网络技术(北京)有限公司 Application program starting method, device and equipment

Also Published As

Publication number Publication date
CN109495598B (en) 2022-02-11

Similar Documents

Publication Publication Date Title
US10218536B1 (en) Configuring and managing virtual grids
CN107579900B (en) Method, device and system for accessing VX L AN network from V L AN network
EP2544402A1 (en) Method for obtaining dns and tunnel gateway device
CN108401037A (en) User terminal and the binding method of equipment, device and system
CN104333610A (en) IPv6 address allocation method and device
US11177974B2 (en) Consistent provision of member node group information on virtual overlay network
CN111064804B (en) Network access method and device
CN109495598A (en) Domain name system parameter selection method and relevant apparatus
CN103109517A (en) Double-stack terminal accessing service method, terminal and system
CN103916484A (en) IP-address configuring method and device
CN112737860B (en) Method for accessing VXLAN of bare metal server and computer readable medium
CN107205015A (en) The implementation method and device of open interface
CN102447746A (en) Information supply method, family gateway and family network system
CN115314353B (en) Device and method for realizing single-pod multi-network card based on kubernetes
CN106357838A (en) Method and device for distributing IP (Internet protocol) address
CN109120746A (en) Method for network address translation, device and address-translating device
CN114422218A (en) Tenant isolation method, device and storage medium
CN103051544B (en) Realize method and the access device of IPv4 private network access IPv6 network
CN109413227A (en) IPv4 user based on more IPv6 networks accesses IPv6 network interworking device and equipment
CN107612753A (en) Processing method, device and the radio reception device of wireless messages
CN110224942A (en) A kind of message processing method, device and storage medium
CN107547684B (en) IPv6 address allocation method and device
CN102647463A (en) Website navigation generation method, wireless routing terminal and system
JP4644300B2 (en) Communication control system
CN108924052A (en) Message forwarding method, aggregation gateway, access gateway and system

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