• FTP Reporting Unknown Host

    So, I’m staring the problem in the face for quite some time (though it’s probably obvious to those that have encountered it before.)

    Test server #1: Redhat 9
    Test server #2: Redhat 7.1

    Both in the same network segment.
    Both using the same DNS servers.

    Let the hilarity ensue!

    On #1:
    host ftp.lanside.net reports fine
    ftp ftp.landside.net connects fine

    On #2:
    host ftp.lanside.net reports fine
    ftp ftp.lanside.net reports Unknown Host

    Figured it was a configuration file, but wasn’t sure which one. Finally found the answer to my problem on a Solaris site. Theres one for google-fu, leave off the operating system next time.

    The line in /etc/nsswitch.conf on #1 looked like such:
    hosts: files dns

    The line in /etc/nsswitch.conf on #2 looked like such:
    hosts: files

    How on earth the host command was able to do a successful lookup is beyond me. Unless it’s hard-coded not to use /etc/hosts.

    Can anyone confirm whether or not it is?


     Leave a reply




    *