mail port 8025 conundrum

Giorgos Keramidas keramida at ceid.upatras.gr
Fri Feb 17 08:45:24 PST 2006


On 2006-02-17 11:38, David Banning <david+dated+1140626325.16e75d at skytracker.ca> wrote:
> > That depends, of course, on what your nsswitch.conf or hosts.conf file
> > has been set up for :)
>
> Nothing to speak of there;
>
> root# locate nsswitch.conf
> /usr/compat/linux/etc/nsswitch.conf
> /usr/ports/emulators/linux_base/work/linux_base-rh-7.3/etc/nsswitch.conf
> /usr/ports/emulators/svr4_base/files/nsswitch.conf
> root#
> root# locate hosts.conf
> root#

Look under /etc for hosts.conf or nsswitch.conf:

    keramida at flame:/home/keramida$ ls -l /etc/hosts*
    -rw-r--r--  1 root  wheel  -  655 Feb 15 15:00 /etc/hosts
    -rw-r--r--  1 root  wheel  - 1484 Feb 15 15:00 /etc/hosts.allow
    -rw-r--r--  1 root  wheel  -  111 Feb 15 14:45 /etc/hosts.equiv
    -rw-r--r--  1 root  wheel  -   99 Feb 15 14:45 /etc/hosts.lpd
    keramida at flame:/home/keramida$ ls -l /etc/nss*
    -rw-r--r--  1 root  wheel  - 18 Feb 15 17:03 /etc/nsswitch.conf
    keramida at flame:/home/keramida$ grep hosts /etc/nsswitch.conf
    hosts: files dns
    keramida at flame:/home/keramida$

The locate database may not always be very up to date.



More information about the freebsd-questions mailing list