Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MX records.

1 view
Skip to first unread message

RJHM van den Bergh

unread,
Nov 20, 2001, 1:49:08 PM11/20/01
to
How do I determine the MX record of a domain with Perl on NT servers.

The problem is the user only does have an account with a Perl but he can't
install things on the server.
I'm not that familiar with Perl only some simple CGI script writing.

On UNIX it isn't a problem simply call the standard dig (or nslookup)
program and read its output through a pipe.
Or simply call sendmail (perhaps with simply using bacticks)

However I don't know a way to do it on Windows NT.

Thanks for any reply
Rob,
rv...@comweb.nl

nob...@mail.com

unread,
Nov 22, 2001, 4:34:58 AM11/22/01
to
"RJHM van den Bergh" <rv...@comweb.nl> wrote in message news:<tvl9ecl...@corp.supernews.com>...

> How do I determine the MX record of a domain with Perl on NT servers.

There may be an OS-specific way for NT, alternatively you could use a
pure Perl implementation of the DNS client. You can find one in the
usual place (see FAQ "What modules and extensions are available for
Perl?...")

> The problem is the user only does have an account with a Perl but he can't
> install things on the server.

So the user can only run scripts provided by the server admins, he
can't install his own. In that case he's onto a looser. Perhaps you
are really trying to ask "How do I keep my own module/library
directory?"

> I'm not that familiar with Perl only some simple CGI script writing.

I don't understand. What language are you writing those GCI scripts
in? Python? Java? Bourne shell? If you have been writing CGI
scripts in some other langauage what relevance does this information
have to the matter in hand?

Bart Lateur

unread,
Nov 22, 2001, 6:43:05 AM11/22/01
to
RJHM van den Bergh wrote:

>How do I determine the MX record of a domain with Perl on NT servers.

There's an MX related function/module available in some DNS related
suite... Try Net::DNS. Ah, yes:

<http://www.fuhr.org/~mfuhr/perldns/DNS.html#mx>

--
Bart.

RJHM van den Bergh

unread,
Nov 23, 2001, 1:59:40 PM11/23/01
to

<nob...@mail.com> wrote in message
news:4dafc536.01112...@posting.google.com...

> "RJHM van den Bergh" <rv...@comweb.nl> wrote in message
news:<tvl9ecl...@corp.supernews.com>...
> > How do I determine the MX record of a domain with Perl on NT servers.
>
> There may be an OS-specific way for NT, alternatively you could use a
> pure Perl implementation of the DNS client. You can find one in the
> usual place (see FAQ "What modules and extensions are available for
> Perl?...")
>
> > The problem is the user only does have an account with a Perl but he
can't
> > install things on the server.
>
> So the user can only run scripts provided by the server admins, he
> can't install his own. In that case he's onto a looser. Perhaps you
> are really trying to ask "How do I keep my own module/library
> directory?"

I think I mean this.
I'm not that familiar with Perl modules.
Think I should read a book on the modul subjec.
I always assumed that only the root could insall Perl modules.
like net::DNS
So I think my assumtion is incorrect.
Is it ?

>
> > I'm not that familiar with Perl only some simple CGI script writing.
>
> I don't understand. What language are you writing those GCI scripts
> in? Python? Java? Bourne shell? If you have been writing CGI
> scripts in some other langauage what relevance does this information
> have to the matter in hand?

Normaly Perl.
But that are just some very simple scripts.
If I can I always try to solve the problem with Java.
It about a year ago I last programmed in Perl.

Rob,
rv...@comweb.nl

0 new messages