Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions dnsLookupIp

1
2
3
4
5
6
7
module juptune.dns.resolver;

Result dnsLookupIp(
    const char[] domainName, 
    IpAddress ip, 
    IpAddress.Kind ipKind = Kind.ipv4
);

Documentation

Easy to use public API

Performs a DNS for the given domain name, either for IPv4 or IPv6 depending on the ipKindparameter.

Notes

This function will ask every nameserver it knows of in order until one produces a response. Regardless of whether this response was a success or a failure, it'll stop once it receives said response.

Nameservers

This function supports "/etc/resolve.conf", but only understands "nameserver" directives.

Params

Throws

DnsResolverError.noNameserversif no nameservers could be loaded.

DnsResolverError.notFoundif a nameserver was unable to find any suitable records for the domain.

DnsResolverError.badResponseif a nameserver produced any other kind of error response that's not explicitly handled.

Anything that dnsQueryRfc1035and dnsDecodePayloadcan throw.

Returns

A Result.