On Wed, Oct 06, 1999 at 10:51:52AM +0200, Avraham Hanadari wrote:

> that my system is unable to RESOLVE internet addresses. I connect
> satisfactorily to the ISP, but nothing works after that, unless I key in
> the number URL. With the numbers, it works well, but with human language ...
> nothing. Same for mail. What must be done to teach the system to RESOLVE the
> addresses?

[This can go to the FAQ]

Resolving is broken up into two parts: the name server switch,
that tells the system what _kind_ of resolving it should attempt
to do (eg., by static files on your system, DNS, NIS, et cetera),
and the configuration of your chosen resolver(s) to work properly.

I presume you want DNS resolving.

Under most linux distributions, telling the system to use that is
as simple as editing the file /etc/host.conf and having it include
the following two lines:

=============================
order hosts,bind
multi on
=============================

This means that your system, when looking to resolve a network
name, should first query /etc/hosts, and if that doesn't help,
as BIND (DNS).

[On _some_ systems, you'd also like to edit /etc/nsswitch.conf ,
find the line starting with the word "hosts", and make sure it
looks like this:

=============================
hosts:     files dns
=============================
]


Now: to configure DNS.    Simlply edit the file /etc/resolv.conf :

=============================
nameserver 194.90.1.5
=============================

Which tells the resolver on your system where the DNS server is.
I've put Netvision's primary DNS server there, but you can put
up to three "nameserver" lines in that file, which will cause
them to be queried in succession until one of them is reachable.
Obviously, you should put the most reliable one - or the one
closest to you - first.


This should get you started. By the way, some systems figure out
things slightly differently: under AIX, for instance, the very
existence of the file /etc/resolv.conf causes DNS to be tried,
even if the file is empty (this can be distressing when you try
to boot an AIX with an inacessible nameserver, as it takes ages
and ages to load X).

-- 
believing is seeing
[EMAIL PROTECTED]
http://www.forum2.org/gaal/

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to