nsd-xfer bind to local IP

Colm MacCarthaigh colm.maccarthaigh at heanet.ie
Mon Aug 15 08:31:40 UTC 2005


On Mon, Aug 15, 2005 at 12:11:30AM +0200, Walter Hop wrote:
> On  FreeBSD,  the following patch can be applied to /usr/ports/dns/nsd
> after doing a "make extract".
> http://www.lifeforms.nl/~walter/nsd-xfer_2.3.0_bindip.patch

It's a good idea, binding to a local IP is useful. The code isn't very
portable though :/

Don't use gethostbyname2(), use getaddrinfo(). Same goes for bzero and
bcopy, use memset and memcpy. bzero and bcopy arn't portable.

-- 
Colm MacCárthaigh  /   HEAnet, Teach Brooklawn,  /   Innealtóir Líonra
+353 1 6609040    /  Bóthar Shelbourne, BÁC, IE /  http://www.hea.net/



More information about the nsd-users mailing list