hosts file

hosts file

Post by Indi Krishna » Thu, 15 Jul 1999 04:00:00



Hi

It seems that my /etc/hosts file is not being read when trying to rlogin to another workstation.

If I try to rlogin using rlogin <hostname> the error '' unknown host" comes up. Note that the host is defined in both the local and remote systems.
But if I do a rlogin using rlogin <ip address> it works.

This is also affecting an XTerminal connection to my worksation.

 
 
 

hosts file

Post by evdwa » Thu, 15 Jul 1999 04:00:00


    It seems that my /etc/hosts file is not being read when trying to rlogin to another workstation.

Is /etc/hosts readable on your system? (ls -la /etc/hosts)
is it in there correctly? (show us the entry of the host in /etc/hosts)
On most systems you can tell if it first has to use dns or hosts or both how did you set this?
is there a dns in /etc/resolv.conf?

what is the result of nslookup <host>

 
 
 

hosts file

Post by Rev. Don Koo » Thu, 15 Jul 1999 04:00:00



> Hi

> It seems that my /etc/hosts file is not being read when trying to
> rlogin to another workstation.

> If I try to rlogin using rlogin <hostname> the error '' unknown
> host" comes up. Note that the host is defined in both the local
> and remote systems.
> But if I do a rlogin using rlogin <ip address> it works.

> This is also affecting an XTerminal connection to my worksation.

        You need to check your host resolve order.  That tells the machine
in what order to search the "/etc/hosts", NIS and DNS host
information and even whether to check certain name services at all.
The actual name of the file varies with OS.  Under IBM AIX it is
"/etc/netsvc.conf".  Under COMPAQ Tru64 UNIX it is "/etc/svc.conf".
Under SGI IRIX it is a line in the "/etc/resolv.conf" file for
versions below 6.5 and in the file "/etc/nsswitch.conf" under IRIX
6.5.  Under SunOS there was no such file.  Under SOLARIS it is
"/etc/nsswitch.conf".  As I recall DEC ULTRIX also used
"/etc/svc.conf".

                        Hope this helps,
                              Don

--
**********************      You a bounty hunter?
* Rev. Don McDonald  *      Man's gotta earn a living.
* Baltimore, MD      *      Dying ain't much of a living, boy.
**********************             "Outlaw Josey Wales"
http://members.home.net/oldno7

 
 
 

hosts file

Post by Chuck Dougla » Thu, 15 Jul 1999 04:00:00



> Hi

> It seems that my /etc/hosts file is not being read when trying to
> rlogin to another workstation.

> If I try to rlogin using rlogin <hostname> the error '' unknown host"
>  comes up. Note that the host is defined in both the local and remote
>  systems.
> But if I do a rlogin using rlogin <ip address> it works.

> This is also affecting an XTerminal connection to my worksation.

Typo in your /etc/hosts file perhaps?

--

     "I don't pretend I have all the answers/Just the obvious ones"
                    --_Backbone_ by Baby Animals
                   Homepage down until further notice.

 
 
 

hosts file

Post by Martin Hepwort » Thu, 15 Jul 1999 04:00:00



> Hi

> It seems that my /etc/hosts file is not being read when trying to
> rlogin to another workstation.

> If I try to rlogin using rlogin <hostname> the error '' unknown host"
> comes up. Note that the host is defined in both the local and remote
> systems.
> But if I do a rlogin using rlogin <ip address> it works.

> This is also affecting an XTerminal connection to my worksation.

Indi
If you are using Solaris check the /etc/nsswitch.conf is set to use
hosts as well as any other lookup eg DNS.

martin

 
 
 

hosts file

Post by DanH » Thu, 15 Jul 1999 04:00:00




> > Hi

> > It seems that my /etc/hosts file is not being read when trying to
> > rlogin to another workstation.

> > If I try to rlogin using rlogin <hostname> the error '' unknown host"
> > comes up. Note that the host is defined in both the local and remote
> > systems.
> > But if I do a rlogin using rlogin <ip address> it works.

> > This is also affecting an XTerminal connection to my worksation.

> Indi
> If you are using Solaris check the /etc/nsswitch.conf is set to use
> hosts as well as any other lookup eg DNS.

> martin

Solaris, Linux, and others have something like this in their
/etc/nsswitch.conf:

hosts:      nisplus dns [NOTFOUND=return] files

If you don't have the word "files" in there, it will not look at the
files at all.

Dan
--
UNIX - Not just for vestal *s anymore
Linux - Choice of a GNU generation

 
 
 

hosts file

Post by Jim Lipp » Tue, 20 Jul 1999 04:00:00


Check your /etc/nsswitch.conf and read the man page on nsswitch.conf,
thats probably a good start.  The default settings use NIS as a
authoritative source of information.

Jim


>  Hi It seems that my /etc/hosts file is not being read when trying to
> rlogin to another workstation. If I try to rlogin using rlogin
> <hostname> the error '' unknown host" comes up. Note that the host is
> defined in both the local and remote systems.But if I do a rlogin
> using rlogin <ip address> it works. This is also affecting an
> XTerminal connection to my worksation.

 
 
 

hosts file

Post by Rev. Don Koo » Wed, 21 Jul 1999 04:00:00



> Check your /etc/nsswitch.conf and read the man page on
> nsswitch.conf, thats probably a good start.  The default settings
> use NIS as a authoritative source of information.

        That's not gonna work very well on an ALPHA or an AIX.

                        Don

**********************      You a bounty hunter?
* Rev. Don McDonald  *      Man's gotta earn a living.
* Baltimore, MD      *      Dying ain't much of a living, boy.
**********************             "Outlaw Josey Wales"
http://members.home.net/oldno7

 
 
 

hosts file

Post by Nick » Tue, 03 Aug 1999 04:00:00


The local hostname (from which you are trying to connect) should
be included in the file /etc/hosts.equiv on the remote host.

You must use the -l flag, to ensure you login on the remote host
with your local username. This useraccount must be known als at the
remote host.

See also the manual pages og the rlogin command.


>  Hi It seems that my /etc/hosts file is not being read when trying to
> rlogin to another workstation. If I try to rlogin using rlogin
> <hostname> the error '' unknown host" comes up. Note that the host is
> defined in both the local and remote systems.But if I do a rlogin
> using rlogin <ip address> it works. This is also affecting an
> XTerminal connection to my worksation.

 
 
 

hosts file

Post by Ed Keighro » Fri, 13 Aug 1999 04:00:00


Another thing to check for is to make certain that
the /etc/nsswitch.conf file is configured correctly.

for example:

hosts:   files [NOTFOUND=continue] dns [NOTFOUND=continue] nis

   in this instance, if a system is in /etc/hosts, but not in
   DNS or NIS, the system will check /etc/hosts first, then DNS, then
   YP in that order.

hope this helps...



> The local hostname (from which you are trying to connect) should
> be included in the file /etc/hosts.equiv on the remote host.

> You must use the -l flag, to ensure you login on the remote host
> with your local username. This useraccount must be known als at the
> remote host.

> See also the manual pages og the rlogin command.


> >  Hi It seems that my /etc/hosts file is not being read when trying to
> > rlogin to another workstation. If I try to rlogin using rlogin
> > <hostname> the error '' unknown host" comes up. Note that the host is
> > defined in both the local and remote systems.But if I do a rlogin
> > using rlogin <ip address> it works. This is also affecting an
> > XTerminal connection to my worksation.

 
 
 

hosts file

Post by scot » Mon, 23 Aug 1999 04:00:00


One thing...I notice you put the [NOTFOUND=continue] in the line twice.
It's not needed, since this is the default action for NOTFOUND.  I think
you're used to seeing [NOTFOUND=return] in the /etc/nsswitch files, but this
is only stop it going to "files" if the information is not found in a NIS
map lookup.  If NIS is not running, then the default action is to go to the
next option in the line...such as files.

Scott Oldre


>Another thing to check for is to make certain that
>the /etc/nsswitch.conf file is configured correctly.

>for example:

>hosts:   files [NOTFOUND=continue] dns [NOTFOUND=continue] nis

>   in this instance, if a system is in /etc/hosts, but not in
>   DNS or NIS, the system will check /etc/hosts first, then DNS, then
>   YP in that order.

>hope this helps...



>> The local hostname (from which you are trying to connect) should
>> be included in the file /etc/hosts.equiv on the remote host.

>> You must use the -l flag, to ensure you login on the remote host
>> with your local username. This useraccount must be known als at the
>> remote host.

>> See also the manual pages og the rlogin command.


>> >  Hi It seems that my /etc/hosts file is not being read when trying to
>> > rlogin to another workstation. If I try to rlogin using rlogin
>> > <hostname> the error '' unknown host" comes up. Note that the host is
>> > defined in both the local and remote systems.But if I do a rlogin
>> > using rlogin <ip address> it works. This is also affecting an
>> > XTerminal connection to my worksation.

 
 
 

1. : How to prevent one named virtual host from "seeing" another virtual hosts files ?

I have a question about named virtual hosts.  I have the following
config (with IPs changed):

Aapche server IP 192.168.1.1

Named virtual host - host1.mydomain.com
Docroot = /usr/local/apache/htdocs-host1

Named virtual host - host2.mydomain.com
Docroot = /usr/local/apache/htdocs-host2

I want SSL enabled on the host1.mydomain.com but NOT on htdocs-host2.

I've setup what I thought was going to work and it does almost.
Normal non-SSL access works fine.  Its the SSL part that is messed up.
If I access https://host2.mydomain.com, I get the index.html page for
host1.mydomain.com.  This has to be related to how the VirtualHost
container is setup for host1.mydomain.com.

Can someone help me out?  How do I prevent host2 from being
accessed by HTTPS completely, if possible ?  Is there a named virtual
host configuration that allows some hosts to have both 80 and 443
access and other to only have 80 and maybe again other to only have
443?

The following are the options that I think are important in the
httpd.conf file:

#
# Virtual Host host1.mydomain.com
# DocumentRoot, ErrorLog, CustomLog, and all that should be taken
# from the already defined values from the httpd.conf - I think
#
<VirtualHost 192.168.1.180>
    ServerName host1.mydomain.com
</VirtualHost>

#
# Virtual Host host2.mydomain.com
#
<VirtualHost 192.168.1.1:80>
    ServerName host2.mydomain.com

    DocumentRoot /usr/local/apache/htdocs-host2
    ErrorLog /usr/local/apache/logs/host2-error_log
    CustomLog /usr/local/apache/logs/host2-access_log combined
</VirtualHost>

<IfDefine SSL>

<VirtualHost 192.168.1.1:443>

#  General setup for the virtual host
ServerName host1.mydomain.com

DocumentRoot /usr/local/apache/host1-secure-htdocs
ErrorLog /usr/local/apache/logs/host1-ssl_error_log
TransferLog /usr/local/apache/logs/host1-ssl_access_log

#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
SSLEngine on

#### And all that jazz

</VirtualHost>

2. Help printing from WinXP to Linux via Samba...PLEASE :)

3. hosts file format for multi homed hosts?

4. Please help me with this strange PING result, thank you.

5. need hosts for hosts file

6. roxen 2.0 + fp98 extensions-help needed

7. UNIX Script To Remove Hosts from Hosts file

8. Mounting Netware drives.

9. converting host file to named database files

10. Hosts file--->Domain Name server files?

11. rcp file host:/file returns stty error

12. hosts file in linux

13. reading /etc/hosts file