![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Befre I answer anything , Tell me why do you need a hosts file. The answer is very much there in that.
|
|
#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.
|
|
#4
|
|||
|
|||
|
So you want to specify a range of IP addresses to one host?
|
|
#5
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |