Question on setting up nameserver

Question on setting up nameserver

Post by Trevin Beatti » Mon, 01 Sep 1997 04:00:00



I'm trying to figure out how to set up named on my single-user system to
work with ppp so that references to $hostname, $hostname.$domainname,
and 'localhost' will resolve to 127.0.0.1, and anything else will query
the nameserver of my ISP.  The documentation on named is difficult to
understand, and the sample files are of little help, but I think I've
managed to get it partially working.

The current problem is that while I can use ftp and telnet with
$hostname, netscape gives me an error that $hostname has no DNS entry.
Unless I `setenv SOCKS_NS 127.0.0.1', in which case netscape simply
hangs.  Could I be setting something wrong in /etc/namedb/named.boot, or
is this purely a netscape problem?

 
 
 

Question on setting up nameserver

Post by Matthias Schel » Wed, 03 Sep 1997 04:00:00




Quote:> I'm trying to figure out how to set up named on my single-user system to
> work with ppp so that references to $hostname, $hostname.$domainname,
> and 'localhost' will resolve to 127.0.0.1, ...

This is not possible. DNS only works for complete domains, not for
single hostnames.

--
Matthias Scheler                                http://home.owl.de/~tron/

 
 
 

Question on setting up nameserver

Post by Trevin Beatti » Sat, 06 Sep 1997 04:00:00




> > I'm trying to figure out how to set up named on my single-user system to
> > work with ppp so that references to $hostname, $hostname.$domainname,
> > and 'localhost' will resolve to 127.0.0.1, and anything else will query
> > the nameserver of my ISP.  The documentation on named is difficult to
> > understand, and the sample files are of little help, but I think I've
> > managed to get it partially working.

> This is tricky (read: impossible) unless you've got a subdomain of
> your own.

> The probably simplest trick is to change the hostname lookup order in
> a way so /etc/hosts is consulted first, and DNS next.  Then, make your
> /etc/hosts contain just

> 127.0.0.1       localhost $hostname $hostname.$domainname

> and nothing else.

> --
> J"org Wunsch                                           Unix support engineer


Thanks a bunch!  After poring over the named and routed man pages for
hours, and looking at examples, and running `route monitor`, etc., etc.
... I made one lucky guess, and got it all working at last!

The answer: I configured a 'primary' line in named.boot which pointed to
localhost.rev, and in that file I changed the references from
Berkely.EDU to my own made-up domain.  Then was really did the trick at
the end was adding another line giving the IP address of $hostname, as
follows:

hostname   IN      A       127.0.0.1

Thank you again, J"org!
--
Trevin Beattie          "Do not meddle in the affairs of wizards,
*To*reply*to*this*       for you are crunchy and good with ketchup."
*message,*remove*the*                           --unknown
*asterisks*from*my*email*address.*