F
Frank Goodman
Apologies in advance if this is the wrong place to post, appreciate any
pointers to the right place if I've polluted the wrong thread
Specifics:
ruby 1.8.2 (2004-12-25) [i686-linux]
Host: Linux gentoo 2.6.12
My linux box does not run a nameserver, as it is a home machine that I use
for development. I connect to the internet through a Dlink router and
cable-modem.
When I do a Socket/TCPSocket.gethostbyname call from within ruby, for
"unknown" hosts it returns an array that corresponds to my DynDNS domain name
with my "public IP address"
When I run `nslookup` it returns:
** server can't find foo.foobar.frt: NXDOMAIN
With the socket version it is more complicated for me to determine bad hosts
and I certainly can't do it in a portable way, so I'd like to set things up so
the Ruby.Socket code returns a proper error.
I'm guessing this has something to do with my (improper) configuration of my
system or router. Any help would be appreciated
I am curious why I would get different behaviours from the Ruby gethostbyname
and nsslookup which I would imagine should resolve down to a gethostbyname
call as well.
Ideas?
Again, apologies if I've posted to the wrong place.
pointers to the right place if I've polluted the wrong thread
Specifics:
ruby 1.8.2 (2004-12-25) [i686-linux]
Host: Linux gentoo 2.6.12
My linux box does not run a nameserver, as it is a home machine that I use
for development. I connect to the internet through a Dlink router and
cable-modem.
When I do a Socket/TCPSocket.gethostbyname call from within ruby, for
"unknown" hosts it returns an array that corresponds to my DynDNS domain name
with my "public IP address"
When I run `nslookup` it returns:
** server can't find foo.foobar.frt: NXDOMAIN
With the socket version it is more complicated for me to determine bad hosts
and I certainly can't do it in a portable way, so I'd like to set things up so
the Ruby.Socket code returns a proper error.
I'm guessing this has something to do with my (improper) configuration of my
system or router. Any help would be appreciated
I am curious why I would get different behaviours from the Ruby gethostbyname
and nsslookup which I would imagine should resolve down to a gethostbyname
call as well.
Ideas?
Again, apologies if I've posted to the wrong place.