This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

server DNS

 
John Chien
Ranch Hand
Posts: 105
  • 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: 17278
6
IntelliJ IDE Mac Spring
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark:
That is a good strategy.
Thanks,
John Chien
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic