Struct ublox_cellular::command::dns::ResolveNameIp [−][src]
pub struct ResolveNameIp<'a> {
pub resolution_type: ResolutionType,
pub ip_domain_string: &'a str,
}
Expand description
24.1 Resolve name / IP number through DNS +UDNSRN
Translates a domain name to an IP address or an IP address to a domain name by using an available DNS. There are two available DNSs, primary and secondary. The network usually provides them after a GPRS activation or a CSD establishment. They are automatically used in the resolution process if available. The resolver will use first the primary DNS, otherwise if there is no answer, the second DNS will be involved.
Notes:
- TOBY-L2 / MPCI-L2 / LARA-R2 / TOBY-R2 / SARA-U2 / LISA-U2 / LISA-U1 / SARA-G4 / SARA-G3 / LEON-G1 The user can replace each network provided DNS by setting its own DNS for a PSD context by means of the +UPSD AT command. If a DNS value different from “0.0.0.0” is provided, the user DNS will replace the correspondent network-provided one. Usage of the network provided DNSs is recommended.
- SARA-G3 / LEON-G1 The user can replace each network provided DNS by setting its own DNS for a CSD context by means of the +UCSD AT command. If a DNS value different from “0.0.0.0” is provided, the user DNS will replace the correspondent network-provided one. Usage of the network provided DNSs is recommended.
- The DNS resolution timeout depends on the number of DNS servers available to the DNS resolution system. The response time for the DNS resolution is estimated in case 8 servers are used to perform this task.
- Pay attention to the DNS setting for the different profiles since the user DNS can be put into action if the corresponding profile is activated (if the user sets a DNS for a profile, and a different profile is activated, the user DNS has no action and the network DNS is used if available).
Fields
resolution_type: ResolutionType
ip_domain_string: &'a str
Trait Implementations
type Response = ResolveNameIpResponse
type Response = ResolveNameIpResponse
The type of the response. Must implement the AtatResp
trait.
type Error = GenericError
type Error = GenericError
The type of the error.
The max timeout in milliseconds.
Return the command as a heapless Vec
of bytes.
Parse the response into a Self::Response
or Error<Self::Error>
instance.
Force the ingress manager into receive state immediately after sending the command. Read more
Force client to look for a response. Empty slice is then passed to parse by client. Implemented to enhance expandability fo ATAT Read more