Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

how to let other people know my hostname through IP address

Thread view: 
dxuranus - 26 Jul 2006 03:04 GMT
i have a public hostname "a" (not my machine name)on internet and my
ip is xx.xx.xx.xx;
 the problem is other people can get my ip through hostname.but if he
try to get my hostname through ip he always failed.
 the case above is in my program (i make it) ,what can i do for this?
Robert Mark Bram - 26 Jul 2006 04:47 GMT
> i have a public hostname "a" (not my machine name)on internet and my
> ip is xx.xx.xx.xx;
>   the problem is other people can get my ip through hostname.but if he
> try to get my hostname through ip he always failed.
>   the case above is in my program (i make it) ,what can i do for this?

Are you using InetAddress.getHostName()?

String     getHostName()
         Gets the host name for this IP address.

If you are, it could be a DNS or router issue that isn't propagating
your host-IP mapping?

Rob
:)
Chris Uppal - 26 Jul 2006 08:52 GMT
> i have a public hostname "a" (not my machine name)on internet and my
> ip is xx.xx.xx.xx;
>   the problem is other people can get my ip through hostname.but if he
> try to get my hostname through ip he always failed.

Sounds as if something's screwy with reverse DNS lookup.  That /might/ be an
error, or more likely is just a result of how your ISP/'DNS/etc works. This
isn't really Java-related at all.  Talk to whoever provides your DNS entry
(whoever it is that provides the lookup from the domain name, xxx.yyy.zzz, to
your numeric IP address -- which is probably whoever you paid to register your
domain name).

   -- chris
dxuranus - 26 Jul 2006 10:51 GMT
> > i have a public hostname "a" (not my machine name)on internet and my
> > ip is xx.xx.xx.xx;
[quoted text clipped - 9 lines]
>
>     -- chris
ye that's right it's about dns reverse.i think it can be done by
program (because qmail can)
.but i do't know how?
Paul Cager - 26 Jul 2006 23:55 GMT
>>> i have a public hostname "a" (not my machine name)on internet and my
>>> ip is xx.xx.xx.xx;
[quoted text clipped - 11 lines]
> program (because qmail can)
> .but i do't know how?

I'm not sure how qmail fits into this - are you not running it on the
same machine?

You might want to have a look at http://www.dnsstuff.com/ and see what
DNS records have been configured.
Chris Uppal - 27 Jul 2006 09:22 GMT
> ye that's right it's about dns reverse.i think it can be done by
> program (because qmail can)

To do it programmatically from Java, see Robert's earlier reply.

If you mean that people in other parts of the world can do the reverse lookup
(using qmail -- whatever that is) but that the same people can't use Java to do
it, then I have no idea what could cause that.

If you mean that /you/ can do a reverse lookup (using qmail), but that /other
people/ can't do it (using anything), then that's not so very surprising.  In
this case qmail is running on the machine with the relevant IP address and is
not representative of any other machine on earth.

If you mean that you can use qmail (or something) on your local LAN, but
nothing works from elsewhere in the world, then that's just how DNS (and
networks in general) work.  Talk to your system administrators -- they will be
able to explain your set-up better than I can.

If you mean that some people (out on the Net) can use qmail (or anything) to do
a reverse lookup, but that other people in different parts of the world cannot,
then that indicates a screw-up in the DNS system somewhere and there is nothing
whatever you can do about it except talk to the people who are managing your
domain name.

   -- chris
dxuranus - 27 Jul 2006 11:47 GMT
> > ye that's right it's about dns reverse.i think it can be done by
> > program (because qmail can)
[quoted text clipped - 22 lines]
>
>     -- chris
not just qmail but dnsjava also.  i am now on procesing analsys it,hope
will get result.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.