[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DNS



On Wed, 14 Jan 1998, Erez Doron wrote:

> I'v just tried to set a dns on my localhost
> 
> if i put on /etc/resolv.conf :
> 
> nameserver 127.0.0.1
> 
> it works.
> 
> if i put my ethernet ip adress instead of 127.0.0.1
> or my hostname ( which is assigned to that ip ), somthing like
> 
> nameserver aristo
> 
> or
> 
> nameserver 200.10.10.7 ( which is my ip )
> 
> it does not work.
> 
> it does not work also form other hosts on the net
> using aristo as nameserver.
What do you mean by that ? 
Can you ping aristo ? If not, check for a route to the network for the
machine you are using and at aristo, the same.

aristo must run named, configured properly, before it can resolve any DNS
queries. /etc/hosts is not enough.

before the nameserver in /etc/resolv.conf, you need to enter your domain
(the domain where you *HAVE* a nameserver. It's either yours or your ISPs.
Judging by the domain on your email, it's yours you need. There is a way 
to piggyback (defer) named (queries) on the ISPs named. RTFM named and
friends).

> 
> i disabled the firewall, i disabled the hosts.deny
> but this does not help
Why not also publish your IP so we can take a look ;)

> 
> any ideas ?
> 
Some of these from the machine where I do email. It is used with a PPP
dialup connection. actcom is my provider. dig fails cos' there is no DNS
running. gethostbyname is an interface to gethostbyname(3) that I wrote,
and it does not fail on actcom.co.il as it reads /etc/hosts where this is 
defined.

Script started on Wed Jan 14 21:23:47 1998 
plp4:~# cat /etc/host.conf
order hosts, bind
multi on
plp4:~# cat /etc/resolv.conf
domain	actcom.co.il
nameserver	127.0.0.1
nameserver	192.114.47.1
plp4:~# dig localhost

; <<>> DiG 2.1 <<>> localhost 
;; res options: init recurs defnam dnsrch
;; res_send to server default -- 127.0.0.1: Connection refused
plp4:~# gethostbyname localhost
looking up localhost...found:
Official name: localhost
Address      : 127.0.0.1
plp4:~# gethostbyname actcom..co.il
looking up actcom.co.il...found:
Official name: actcom.co.il
Address      : 192.114.47.1
plp4:~# exit
Script done on Wed Jan 14 21:24:58 1998

Unless you run YP you HAVE to put the essential IPs on your network into
the /etc/hosts file for each machine you connect. Notice that dig goes for
the local machine and does not try the second one unless asked for it.
When the machine is online, the second nameserver is also tried, and
works.  

hope this helps,
	P (plp)