The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 05:42 PM
Copy a file to multiple hosts sumsriva UNIX for Advanced & Expert Users 5 09-18-2007 03:42 AM
Hosts.allow and hosts.deny huddlestonsnk UNIX for Dummies Questions & Answers 1 10-18-2006 11:34 AM
hosts.allow & hosts.deny Sorrento UNIX for Dummies Questions & Answers 2 08-18-2005 09:25 PM
dns and hosts file rmuhammad IP Networking 4 11-12-2003 02:46 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-19-2007
cymerman cymerman is offline
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
  #2 (permalink)  
Old 01-19-2007
kapilraj kapilraj is offline
Registered User
  
 

Join Date: Dec 2006
Location: Maryland
Posts: 162
Befre I answer anything , Tell me why do you need a hosts file. The answer is very much there in that.
  #3 (permalink)  
Old 01-19-2007
cymerman cymerman is offline
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.
  #4 (permalink)  
Old 01-19-2007
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
So you want to specify a range of IP addresses to one host?
  #5 (permalink)  
Old 01-19-2007
cymerman cymerman is offline
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0