search for: net_gethostbyname

Displaying 3 results from an estimated 3 matches for "net_gethostbyname".

Did you mean: ast_gethostbyname
2018 Jan 15
0
doveadm mailbox command fails if backend has an IPv6 address
...he user was mapped to a backend server reachable via IPv6: On a director: doveadm mailbox status -u username messages Junk returns Junk messages=203 (if backend is connected via IPv4) or Lookup of host ipv6addr:542 failed: ... (if backend is connected via IPv6) doveadm_tcp_connect_port tried a net_gethostbyname with "ipv6addr:542" as hostname. I've attached a quick-and-dirty-patch (for 2.2.33.2) that fixes this (at least for me). Regards, Andreas -- ! Andreas Jobs Network Operation Center ! ! Ruhr-Universita...
2019 Jan 04
1
Feature request: client bind address for replication
...;); + } + if (net_addr2ip(my_ip, &my_net_ip)) { + i_error("error using doveadm_local_ip setting %s",my_ip); + } else { + i_info("Using doveadm_local_ip setting: %s",my_ip); + use_my_ip = 1; + } alarm(DOVEADM_TCP_CONNECT_TIMEOUT_SECS); ret = net_gethostbyname(host, &ips, &ips_count); if (ret != 0) { i_fatal("Lookup of host %s failed: %s", host, net_gethosterror(ret)); } - fd = net_connect_ip_blocking(&ips[0], port, NULL); + fd = net_connect_ip_blocking(&ips[0], port, use_my_ip ? &my_net_ip : NULL); if (fd == -1...
2010 Mar 12
1
patch: allow proxy to lookup host by name
...ovecot is started as root and drops privileges later; this is the recommended way of running Dovecot. Set by the config option: login_chroot = yes. In this mode, the login process is chrooted to login_dir, from which the proposed patch adds name resolution. Resolution is done via dovecot's net_gethostbyname() function - a wrapper for getaddrinfo/gethostbyname depending on compile-time platform support. These functions need access to the name service switch configuration, then whatever dependencies are required to consult the host resolution databases stipulated. so, if the /etc/nsswitch.conf host...