[squeak-dev] Re: [ANN] DnsClient: More protocol fun

Frank Shearar frank.shearar at angband.za.org
Wed Jul 28 07:41:12 UTC 2010


On 2010/07/28 05:56, Andreas Raab wrote:
> On 7/27/2010 1:48 AM, Frank Shearar wrote:
>>>> The attached OUGHT to do it. I don't know of any public servers that
>>>> user NAPTR *cough* and I'd need to look up local names to properly test
>>>> against my local test setup.
>>>
>>> Yes, I'll try to implement the primitive on Windows sometime soon.
>>
>> I'll definitely try it out when you've had a go.
>
> Give it a shot. I made a quick respin of the VM available as 4.1.1 which
> includes a (rather cheap) version of the dns info primitive so if you
> download the VM from:
>
> http://squeakvm.org/win32/release/SqueakVM-Win32-4.1.1-bin.zip
>
> and then fetch the latest version of DnsClient:
>
> (Installer ss project: 'ar')
> install: 'DnsClient-Core';
> install: 'DnsClient-Tests';
> install: 'DnsClient-Hacks'.
>
> You should be good to go. Anyone else who has got some time to spare I'd
> be interesting to find out if the data returned by "DnsClient default
> dnsInfo" is correct when compared with, e.g., ipconfig /all.

Good news: your primitive works just fine. I can resolve NAPTR records 
defined in my local environment.

Bad news: my NAPTR parsing's completely wrong, because I (incorrectly) 
read a diagram and not the normative text around the diagram.

Good news: the attached correctly parses NAPTR records.

DnsClient default lookupRecordsFor: 'leo-ix.net' deadline: 15 type: 35

gives:

  {DnsRecord(leo-ix.net, type: 35, flags: 's', replacement: 
'_sips._tcp.leo-ix.net', preference: 50, order: 50, services: 
'SIPS+D2T', regexp: '') . DnsRecord(leo-ix.net, type: 35, flags: 's', 
replacement: '_sip._tcp.leo-ix.net', preference: 60, order: 90, 
services: 'SIP+D2T', regexp: '') . DnsRecord(leo-ix.net, type: 35, 
flags: 's', replacement: '_sip._udp.leo-ix.net', preference: 70, order: 
100, services: 'SIP+D2U', regexp: '')}

corresponding to what appears in the zonefile as:
;;                   order pref flags service      regexp  replacement
leo-ix.net. IN NAPTR 50    50   "s"   "SIPS+D2T"   ""      _sips._tcp
leo-ix.net. IN NAPTR 90    60   "s"   "SIP+D2T"    ""      _sip._tcp
leo-ix.net. IN NAPTR 100   70   "s"   "SIP+D2U"    ""      _sip._udp

frank
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DnsClient-Core-fbs.10.mcz
Type: application/octet-stream
Size: 18626 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100728/982b4cf7/DnsClient-Core-fbs.10.obj


More information about the Squeak-dev mailing list