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

reverse DNS lookup on local machine



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?

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



Reply to: