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

Re: reverse DNS lookup on local machine



On Tue, Jun 26, 2001 at 06:36:19PM +0200, Carel Fellinger wrote:
> now that testing's ssh goes out on the net to do reverse namelookups,
> I, again, am looking in ways to provide reverse DNS lookups
> preferrably without having to run bind.  any pointers?

try pdnsd, it it a lightweight caching nameserver, that will take your
hosts out of /etc/hosts and put them in its resolver.  or you can define
them in your config file either way.

later

> 
> What I want is "host myhost.local.domain" to work.
> 
> "host localhost." (yes with a trailing dot) works, but other names
> for my local machine choke:(
> 
> 
> #### some config files
> 
> $ cat /etc/host.conf
> order hosts,bind
> multi on
> 
> 
> $ cat /etc/resolv.conf
> domain local.domain
> nameserver ipnr-of-isp's-nameserver
> 
> 
> $ cat /etc/hosts
> 127.0.0.1       localhost
> 192.168.1.1     myhost.local.domain myhost
> 
> 
> $  cat /etc/nsswitch.conf
> # /etc/nsswitch.conf
> #
> # Example configuration of GNU Name Service Switch functionality.
> # If you have the `glibc-doc' and `info' packages installed, try:
> # `info libc "Name Service Switch"' for information about this file.
> 
> passwd:         compat
> group:          compat
> shadow:         compat
> 
> hosts:          files dns
> networks:       files
> 
> protocols:      db files
> services:       db files
> ethers:         db files
> rpc:            db files
> 
> netgroup:       nis
> 
> 
> -- groetjes, carel
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 



Reply to: