Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > how to let other people know my hostname through IP address

Reply
Thread Tools

how to let other people know my hostname through IP address

 
 
dxuranus
Guest
Posts: n/a
 
      07-26-2006
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?

 
Reply With Quote
 
 
 
 
Robert Mark Bram
Guest
Posts: n/a
 
      07-26-2006
> 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


 
Reply With Quote
 
 
 
 
Chris Uppal
Guest
Posts: n/a
 
      07-26-2006
dxuranus wrote:

> 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


 
Reply With Quote
 
dxuranus
Guest
Posts: n/a
 
      07-26-2006

Chris Uppal wrote:
> dxuranus wrote:
>
> > 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

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?

 
Reply With Quote
 
Paul Cager
Guest
Posts: n/a
 
      07-26-2006
dxuranus wrote:
> Chris Uppal wrote:
>> dxuranus wrote:
>>
>>> 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

> 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?
>


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.
 
Reply With Quote
 
Chris Uppal
Guest
Posts: n/a
 
      07-27-2006
dxuranus wrote:

> 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


 
Reply With Quote
 
dxuranus
Guest
Posts: n/a
 
      07-27-2006

Chris Uppal wrote:
> dxuranus wrote:
>
> > 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

not just qmail but dnsjava also. i am now on procesing analsys it,hope
will get result.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 9.23 How do I find out my hostname, domainname, or IP address? PerlFAQ Server Perl Misc 0 02-23-2011 04:00 PM
how to find hostname from a given IP address in LAN ? Pokkai Dokkai Ruby 5 04-16-2008 04:38 AM
hostname <-> ip address Ani Perl Misc 3 07-19-2006 01:44 PM
How to get IP address from giving hostname in ASP? Microlong® ASP General 3 10-12-2005 10:48 PM
Get hostname, when IP address is known vi Java 5 09-19-2005 10:36 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57