email syntax validation needed
Ragnar Hojland Espinosa
ragnar at linalco.com
Wed Aug 13 09:51:40 UTC 2003
On Tue, Jul 22, 2003 at 05:24:26AM -0700, Nevin Pratt wrote:
>
>
> Ned Konz wrote:
>
> >On Monday 21 July 2003 09:19 pm, Nevin Pratt wrote:
> >
> >
> >>Anybody know how to do MX record lookups from within Squeak rather
> >>than DNS lookups? Seems on my system, 'sbcglobal.net' resolves to
> >>a good MX record, but fails as a DNS lookup.
> >>
> >>
> >
> >Sure. Use OSProcess and call nslookup or dig.
> >
> >
> >
>
> I thought 'nslookup' and 'dig' just did DNS checks, no? I thought the
> only difference between Squeak's NetNameResolver class and them is that
> NetNameResolver uses the default DNS machines defined on the host
> machine, whereas with 'dig' (and I think 'nslookup' as well) allow you
> to specify which machine you want to use for the DNS lookup.
>
> So, off hand, I don't see what 'nslookup' and/or 'dig' buy me for this
> application.
It should be nicer to do with host:
ragnar:~$ host -t MX sbcglobal.net
sbcglobal.net mail is handled by 10 vmc-ext.prodigy.net.
sbcglobal.net mail is handled by 10 vmd-ext.prodigy.net.
sbcglobal.net mail is handled by 10 vme-ext.prodigy.net.
sbcglobal.net mail is handled by 10 vmf-ext.prodigy.net.
sbcglobal.net mail is handled by 10 vmg-ext.prodigy.net.
sbcglobal.net mail is handled by 10 vmh-ext.prodigy.net.
sbcglobal.net mail is handled by 10 vmi-ext.prodigy.net.
sbcglobal.net mail is handled by 10 vmm-ext.prodigy.net.
sbcglobal.net mail is handled by 10 vmn-ext.prodigy.net.
sbcglobal.net mail is handled by 10 mailapps1-ext.prodigy.net.
sbcglobal.net mail is handled by 10 mailapps2-ext.prodigy.net.
sbcglobal.net mail is handled by 10 vm4-ext.prodigy.net.
sbcglobal.net mail is handled by 10 vmb-ext.prodigy.net.
--
Ragnar Hojland - Project Manager
Linalco "Specialists in Linux and Free Software"
http://www.linalco.com Tel: +34-91-5970074 Fax: +34-91-5970083
More information about the Squeak-dev
mailing list
|