Subject: Re: DNS-SD in getaddrinfo()
To: Perry E. Metzger <perry@piermont.com>
From: Steven M. Bellovin <smb@research.att.com>
List: tech-net
Date: 06/02/2004 21:40:31
In message <87smddo264.fsf@snark.piermont.com>, "Perry E. Metzger" writes:
>
>mouss <usebsd@free.fr> writes:
>> Matt Thomas wrote:
>>
>>> On Jun 2, 2004, at 11:38 AM, Jason Thorpe wrote:
>>>
>>>>
>>>> On Jun 2, 2004, at 5:42 AM, Pelle Johansson wrote:
>>>>
>>>>> You'll notice there's a new entry for include/netdb.h adding an
>>>>> additional AI_SRV flag, and an additional check in
>>>>> _dns_getaddrinfo for this flag.
>>>>
>>>>
>>>> FWIW, I like this approach better than looking up SRV records by default.
>>> It seems to me that this should controlled by an entry in
>>> /etc/nsswitch.conf (srv?):
>>> host:    files dns srv
>>>
>>
>> This would create a compatibility problem. better not to touch
>> nsswitch.conf. any other file (or a sysctl var) could do.
>
>Create a compatibility problem with what? nsswitch.conf is a NetBSD
>created file, and we have a perfect ability to alter it at will.
>

But it's the wrong thing to do.  Using SRV records is 
application-specific, not client machine specific; we need a way for an 
application to signal that it wants to use SRV.

		--Steve Bellovin, http://www.research.att.com/~smb