> > 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.*