Date: Fri, 20 Feb 2015 16:26:01 -0500 From: grarpamp <grarpamp@gmail.com> To: freebsd-questions@freebsd.org Cc: freebsd-current@freebsd.org Subject: Resolver needs bind to src IP option Message-ID: <CAD2Ti2_H1jnx0WaDYSvrWvQdquiaRdUi5tf_2=Nn_2WbzU5K0w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I looked through these pages and did not see an option to bind the resolver query from a specific IP address (as in the case where you have multiple interfaces and/or alias addresses and wish to pick one instead of the default route). resolver(3) gethostbyname(3) resolver(5) [resolv.conf] You could steer them with NAT filter, or bind a local unbound/named to a src IP and point the resolver at that. But those seem heavier weight solutions than doing it in the resolver natively (whether in resolv.conf or in library calls by applications [where in the apps case, resolv.conf would decide whether application call or resolv.conf takes precedence]). Thoughts?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAD2Ti2_H1jnx0WaDYSvrWvQdquiaRdUi5tf_2=Nn_2WbzU5K0w>