Go Back   Velocity Reviews > Newsgroups > Java
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Java - how to let other people know my hostname through IP address

 
Thread Tools Search this Thread
Old 07-26-2006, 03:04 AM   #1
Default how to let other people know my hostname through IP address


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?



dxuranus
  Reply With Quote
Old 07-26-2006, 04:47 AM   #2
Robert Mark Bram
 
Posts: n/a
Default Re: how to let other people know my hostname through IP address
> 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




Robert Mark Bram
  Reply With Quote
Old 07-26-2006, 08:52 AM   #3
Chris Uppal
 
Posts: n/a
Default Re: how to let other people know my hostname through IP address
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




Chris Uppal
  Reply With Quote
Old 07-26-2006, 10:51 AM   #4
dxuranus
 
Posts: n/a
Default Re: how to let other people know my hostname through IP address

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?



dxuranus
  Reply With Quote
Old 07-26-2006, 11:55 PM   #5
Paul Cager
 
Posts: n/a
Default Re: how to let other people know my hostname through IP address
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.


Paul Cager
  Reply With Quote
Old 07-27-2006, 09:22 AM   #6
Chris Uppal
 
Posts: n/a
Default Re: how to let other people know my hostname through IP address
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




Chris Uppal
  Reply With Quote
Old 07-27-2006, 11:47 AM   #7
dxuranus
 
Posts: n/a
Default Re: how to let other people know my hostname through IP address

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.



dxuranus
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB 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
I have become rich in 30 days lemony-snicket A+ Certification 2 09-07-2009 03:01 PM
This is incredible! jc_ice DVD Video 1 08-13-2006 10:47 AM
Address Bus and External Data Bus Confusion LoXodonte A+ Certification 1 04-18-2006 10:09 PM
21st Century E-Commerce Money Making Formula NeoOne DVD Video 0 01-04-2005 03:25 AM
Re: 7. The truth about our creator. .7 john smith DVD Video 2 07-25-2003 03:54 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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