LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2006, 02:38 AM   #1
atanwar
LQ Newbie
 
Registered: Nov 2003
Location: :PUNE, INDIA 411008
Distribution: redhat-6,7,9, fedoracore-1,2,3, AIX-5.1,5.2 , Tru64 5.1A, SUSE 10.0,ES9
Posts: 14

Rep: Reputation: 0
Unable to use HOSTFILE in bash-3.0-17 SUSE10.0


I have been trying to setup hostnames in my userspace using HOSTFILE variable in bash-3.0-17 in SUSE10.0.

I have added the following entry in my .bashrc file
"export HOSTFILE=$HOME/.hosts"
and created file .hosts in my directory in same format as /etc/hosts

when I try to telnet, ptp, ping etc to the enteries I added in my .hosts file it returs error like "Name or service not known" or "unknown host"

I did exactly as bash manpages tells...I even tried doing similar excercise on FC3 machines but to no use...

any suggestions ??? or any other means to do so in some other shells??
I cannot edit /etc/hosts or DNS settings as I donot have administrator priveleges on the server.
 
Old 08-22-2006, 09:10 PM   #2
starsky
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Rep: Reputation: 0
Hi,

Im not too sure if 'HOSTFILE' is the right thing.

I have this impression that 'HOSTFILE' is used to
do hostnames completion.

eg. @abc follows by <TAB>
it will look in your HOSTFILE and do hostname completion.

sorry... not sure if its possible to bypass /etc/hosts
and have your own host file, specifically to yourself.
(not too sure why your site admin cant update /etc/hosts for u)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set up pppoe in suse10... not able to acces adsl modem thru suse10 akshay_jp SUSE / openSUSE 5 09-04-2006 10:39 PM
Unable to locate in bash anjanesh Linux - General 4 01-30-2006 10:46 PM
xset is unable to open display from within bash script copolii Linux - General 3 10-22-2005 06:26 PM
Userspace hosts file? ($HOSTFILE) tallest Linux - Software 2 02-01-2005 10:48 AM
Hostfile in user directory? Sandman71 Linux - General 2 01-27-2002 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration