Multiple IPs Associated With A Single Name

/dev/rob0 rob0 at gmx.co.uk
Fri Sep 30 16:54:19 UTC 2016


On Fri, Sep 30, 2016 at 10:22:35AM -0500, Tim Daneliuk wrote:
> In my particular case, I am trying to figure out a way to redirect 
> gethostbyname() calls to the resolver of my choice so that existing 
> code will run without change.  The problem is that I need to do 
> this without root or sudo access to the machines in question, and 
> this is increasingly looking impossible.

AFAICS, yes, you must have root.  Even if your libc resolver supports 
using a different port, you would have to be root to change 
/etc/resolv.conf.

Another root trick to use could be to redirect 127.0.0.1:53 (both TCP 
and UDP) to :1035 (or other such non-privileged port as needed.)
-- 
  http://rob0.nodns4.us/
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:


More information about the bind-users mailing list