WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB-UTIL Reference

#include <resolver.h>

Data Fields

pj_str_t name
 
pj_str_t alias
 
unsigned addr_count
 
pj_in_addr addr [PJ_DNS_MAX_IP_IN_A_REC]
 
char buf_ [128]
 

Detailed Description

This structure represents DNS A record, as the result of parsing DNS response packet using pj_dns_parse_a_response().

Field Documentation

◆ addr

pj_in_addr pj_dns_a_record::addr[PJ_DNS_MAX_IP_IN_A_REC]

IP addresses of the host found in the response

◆ addr_count

unsigned pj_dns_a_record::addr_count

Number of IP addresses.

◆ alias

pj_str_t pj_dns_a_record::alias

If target name corresponds to a CNAME entry, the alias contains the value of the CNAME entry, otherwise it will be empty.

◆ buf_

char pj_dns_a_record::buf_[128]

Internal buffer for hostname and alias.

◆ name

pj_str_t pj_dns_a_record::name

The target name being queried.


The documentation for this struct was generated from the following file:

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.