Mailinglist Archive: opensuse (1062 mails)
| < Previous | Next > |
Re: [SuSE Linux] Configuring named
- From: zen@xxxxxxxxxxxxx (zens)
- Date: Sun, 6 Sep 1998 00:59:52 -0700 (PDT)
- Message-id: <Pine.LNX.3.96.980906005246.24386B-100000@xxxxxxxxxxxxxxx>
again, do you need a non-unixlike host to be able to access these machines
by their given names? of not, the /etc/hosts file would be quite sufficent
ie:
127.0.0.1 localhost
192.168.0.2 foo.localnet foo
192.168.0.3 blah.localnet blah
205.253.202.11 myfoo.myisp.com myfoo
205.253.202.12 myblah.myisp.com myblah
assuming this was on machine foo, and you wished to connect to blah, you
would only need to type <A HREF="http://blah/~uzer"><A HREF="http://blah/~uzer</A">http://blah/~uzer</A</A>> yadda yadda, by default domain
queries get sent to the hosts files, then the resolv.conf is used...
On Sat, 5 Sep 1998, Dwight Johnson wrote:
> > have ou considered just using the /etc/hosts file? or do you need a
> > non-unixlike OS to be able to make queries?
> >
> > On Sat, 5 Sep 1998, Dwight Johnson wrote:
> >
> > > I am on SuSE 5.2 and I need to configure name service to establish a
> > > couple of local host names on my network even though I have only a
> > > dial-up connection to the Internet.
> > >
> > > What I need is actually *just one* additional local host name so
> > > Netscape will see it and not go looking for it on the Internet.
>
> Here is my attempt to use /etc/hosts:
>
> /etc/hosts
> 127.0.0.1 localhost
> 192.168.1.1 runner.aaronsrod.com runner
> 192.168.1.1 slash.aaronsrod.com slash
> ----------
>
> /etc/resolv.conf
> search runner.aaronsrod.com
> #olypen nameservers
> nameserver 208.200.248.1
> nameserver 208.200.251.97
> ----------
>
> /etc/httpd/httpd.conf
> NameVirtualHost 192.168.1.1
>
> <VirtualHost 192.168.1.1>
> ServerAdmin dwj@runner
> DocumentRoot /usr/local/httpd/htdocs
> ServerName runner
> ErrorLog /var/log/runner-error_log
> TransferLog /var/log/runner-access_log
> </VirtualHost>
>
> <VirtualHost 192.168.1.1>
> ServerAdmin dwj@runner
> DocumentRoot /home/slash/public_html
> ServerName www.slash.aaronsrod.com
> ErrorLog /home/slash/logs/slash-error_log
> TransferLog /home/slash/logs/slash-access_log
> </VirtualHost>
> ----------
>
> When I try to access <A HREF="http://slash.aaronsrod.com"><A HREF="http://slash.aaronsrod.com</A">http://slash.aaronsrod.com</A</A>> in Netscape, it
> just goes to /usr/local/httpd/htdocs instead of to
> /home/slash/public_html.
>
> What is the correct way to set up the /etc/hosts approach?
>
> Thanks,
> Dwight
>
>
>
> -
> To get out of this list, please send email to majordomo@xxxxxxxx with
> this text in its body: unsubscribe suse-linux-e
>
-
To get out of this list, please send email to majordomo@xxxxxxxx with
this text in its body: unsubscribe suse-linux-e
| < Previous | Next > |