Print

Print


The ref to netaddr describes the socket and hname is obtained from that object subject to the DNR option. So, it’s intimately tied to the passed netaddr object. So, simply calling the Name() function on that object will accomplish what you want. The only reason we pass in hname is for backward compatibility reasons and people should be using the endPoint reference but we didn’t have time to change it in every security protocol (so we didn’t). You might want to consider doing that instead and not using hname at all. Anyway, if you call Name() on endpoint it will do a getaddrinfo() call with the same options you have to get a canonical name for the endpoint. 

From: Brian Bockelman 
Sent: Thursday, June 07, 2018 2:08 PM
To: xrootd/xrootd 
Cc: Andrew Hanushevsky ; Comment 
Subject: Re: [xrootd/xrootd] Use DNS lookups to expand non-FQDNs (#731)

I don’t think anything in NetAddr does precisely this. Should I add a new static method?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/pull/731#issuecomment-395570559
########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1