File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

server DNS

 
John Chien
Ranch Hand
Posts: 105
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The server DNS can be in the form of:
a) IP address
b) www.cnn.com form
If we want to allow user to enter the b) form,
we must have a system file that does the name/ip
translation.
Please let me know where I can find this file in the UNIX (/etc/host ??) and Window (???) operating system.
Thanks,
John Chien
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well in windows it is in the windows directory.
Just do a find on host*.* and you will find your file.
However, I really wouldn't worry about it. If the ip or address that the client puts in is incorrect, then an Exception will be raised, and you just catch it and display a nice message that says "Sorry, but you have entered an invalid server. Please try again"
Mark
 
John Chien
Ranch Hand
Posts: 105
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark:
That is a good strategy.
Thanks,
John Chien
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic