It would appear that when somebody on the net does a gethostby* it does
not return the proper info.  I wrote a little perl script to test this The
script first gethostbyaddr and then gethostbyname.  A little explination
of what this is supposed to return.

+++++++++++++++++++++++++++++++++++++++++++
gethostbyaddr(address, address type) returns
Name
Aliases
and other

gethostbyname(name) returns
Name
Aliases
and other
+++++++++++++++++++++++++++++++++++++++++++


gethostbyaddr does not return the aliases!!! see output:

byaddr:
----------------------------
The Elements of gethostbyADDR are:
gateway1.asksimon.com
                                        <= no aliases!!!
2
4
?v9
----------------------------
The Elements of gethostbyNAME are:
gateway1.asksimon.com
dns.asksimon.com                        <= aliases!!!
2
4
?v9


This is important as we are having some trouble registering a domain in
another country as they do a getbyaddr and do not get dns (our name
server).  Any help would be great!

Thanks
David

Reply via email to