email syntax validation needed
Luciano Notarfrancesco
lnotarfrancesco at yahoo.com
Tue Jul 22 09:52:45 UTC 2003
Well, this is one of the reasons why I implemented the DNS Client
package. I needed to be able to get MX records as well as other types of
records. If you have my package loaded you can get all the 10 MX records
for sbcglobal.net sorted by priority:
NameResolver default mailExchangersFor: 'sbcglobal.net'
Or you can get the name of the first mail exchanger:
NameResolver default mailExchangerFor: 'sbcglobal.net'
Or you can make arbitrary queries:
NameResolver default request: (DNSMessage new addQuestion:
(DNSQuery name: name type: type class: class); yourself)
Luciano
Nevin Pratt wrote:
> It appears to me that the issue is that, as Andy Stoffel mentions,
> there are different *types* of DNS records. 'sbcglobal.net.'
> apparantly has valid MX records associated with it for email purposes
> (and hence, an IP address associated with it for email purposes). And
> there is no way to tell 'NetNameResolver' which type of records you
> wish to query for. So yes, I consider this to be a Squeak problem.
More information about the Squeak-dev
mailing list
|