import "nsIDNSRecord.idl";
this interface represents the result of a DNS lookup. since a DNS query may return more than one resolved IP address, the record acts like an enumerator, allowing the caller to easily step through the list of IP addresses.
Public Member Functions | |
| PRNetAddr | getNextAddr (in PRUint16 aPort) |
| this function copies the value of the next IP address into the given PRNetAddr struct and increments the internal address iterator. | |
| ACString | getNextAddrAsString () |
| this function returns the value of the next IP address as a string and increments the internal address iterator. | |
| boolean | hasMore () |
| this function returns true if there is another address in the record. | |
| void | rewind () |
| this function resets the internal address iterator to the first address in the record. | |
Public Attributes | |
| readonly attribute ACString | canonicalName |
|
|
this function copies the value of the next IP address into the given PRNetAddr struct and increments the internal address iterator.
|
|
|
this function returns the value of the next IP address as a string and increments the internal address iterator.
|
|
|
this function returns true if there is another address in the record.
|
|
|
this function resets the internal address iterator to the first address in the record.
|
|
|
|
1.4.4