On Thu, Jun 30, 2011 at 2:19 PM, Andrew Beekhof <andrew(a)beekhof.net> wrote:
On Tue, Jun 28, 2011 at 10:22 PM, Russell Bryant
<russell(a)russellbryant.net> wrote:
> On Tue, Jun 28, 2011 at 4:34 AM, Antoine van Gelder
> <antoine(a)7degrees.co.za> wrote:
>> On 27 Jun 2011, at 06:06 , Andrew Beekhof wrote:
>>> Hi Antoine,
>>>
>>> Do we need the domain or is it already implied by the value of search
>>> in /etc/resolv.conf ? Adam?
>>
>>
>> /me confesses his deep ignorance of all things SRV record...
>>
>> I did try to configure an appropriate SRV record on my local DNS server but
didn't have any lock resolving a "qpid-broker:49000" query against it. This
may just be because I'm missing something obvious!
>
> A query for something called "qpid-broker:49000" doesn't really make
> sense in SRV land. Part of the idea is that you don't know the port
> number you're going to connect to.
>
> A test lookup would look something like ...
>
> $ dig SRV
_matahari._tcp.example.com
>
> Here is an example of what you'll see when an SRV record is found:
>
> $ dig SRV
_sip._udp.russellbryant.net
Is the ".russellbryant.net" suffix necessary though if in
/etc/resolv.conf you have
search
russellbryant.net
?
The answer is yes.
Applying a patch similar to Antoine's but using sigar to grab the domain name.