The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ping hosts from config file za_7565 Shell Programming and Scripting 1 01-29-2008 02:42 PM
Copy a file to multiple hosts sumsriva UNIX for Advanced & Expert Users 5 09-18-2007 12:42 AM
Hosts.allow and hosts.deny huddlestonsnk UNIX for Dummies Questions & Answers 1 10-18-2006 08:34 AM
hosts.allow & hosts.deny Sorrento UNIX for Dummies Questions & Answers 2 08-18-2005 06:25 PM
dns and hosts file rmuhammad IP Networking 4 11-11-2003 11:46 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-19-2007
Registered User
 

Join Date: Jan 2007
Posts: 3
HOSTS File

Hi All,

I am to the UNIX world and want to know if I can specify a range of IP addresses instead of having to include one by one on the HOSTS file.

Can I just say

127.20.1.1 to 127.20.1.156 ?

Or the only way is to put one by one along with the machine name next to the IP ?

THANKS
Reply With Quote
Forum Sponsor
  #2  
Old 01-19-2007
Registered User
 

Join Date: Dec 2006
Location: Maryland
Posts: 144
Befre I answer anything , Tell me why do you need a hosts file. The answer is very much there in that.
Reply With Quote
  #3  
Old 01-19-2007
Registered User
 

Join Date: Jan 2007
Posts: 3
Hosts files are text files in a Unix network that provides name resolution of host names to IP addresses. They contain a host name and corresponding IP address on each line. That is all I know about HOSTS file.
Reply With Quote
  #4  
Old 01-19-2007
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 989
So you want to specify a range of IP addresses to one host?
Reply With Quote
  #5  
Old 01-19-2007
Registered User
 

Join Date: Jan 2007
Posts: 3
OK. I got the idea.

But for my particular situation, Informix database running on UNIX.
What really matters in our HOSTS file are the IP Addresses. The name we put next to the IP could be anything. The point is to have the IP address of the PC's that have access to the application. What I am trying to say is, if the IP address is in the HOSTS file, doesn't matter the name I put next to that IP. This is the reason I came up with the question. Also, because I am NEW to UNIX. Anyway, thanks for the quick answers, now I know that each IP should be specified and a range is not possible. Although would be excellent for me to have that.

THANKS
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0