DNS lookups. More...
#include "config.h"#include <netdb.h>#include <string.h>#include <sys/socket.h>#include <time.h>#include <unistd.h>#include "mutt/lib.h"#include "lib.h"
Include dependency graph for getdomain.c:Go to the source code of this file.
Functions | |
| static struct addrinfo * | mutt_getaddrinfo (const char *node, const struct addrinfo *hints) |
| Lookup the host's name using getaddrinfo() | |
| int | getdnsdomainname (struct Buffer *result) |
| Lookup the host's name using DNS. | |
DNS lookups.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file getdomain.c.
|
static |
Lookup the host's name using getaddrinfo()
| node | Hostname, got by gethostname() |
| hints | Flags to pass to getaddrinfo() |
| ptr | Address info |
| NULL | Error |
Definition at line 102 of file getdomain.c.
Here is the caller graph for this function:| int getdnsdomainname | ( | struct Buffer * | result | ) |
Lookup the host's name using DNS.
| result | Buffer were result of the domain name lookup will be stored |
| 0 | Success |
| -1 | Error |
Definition at line 124 of file getdomain.c.
Here is the call graph for this function:
Here is the caller graph for this function: