Results 1 to 3 of 3

Thread: /etc/hosts.allow dns

  1. #1
    Join Date
    Sep 2007
    Beans
    37

    /etc/hosts.allow dns

    I added an entry to my hosts.allow file

    ALL: %.domain.com

    problem is, when I try to connect from subdomain.domain.com it says 'ip address not allowed to connect to this machine'
    i.e. ubuntu doesn't seem to be doing the reverse IP address to domain name lookup to see if it matches domain.com

    any suggestions?

    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: /etc/hosts.allow dns

    From the man page:
    /etc/hosts.deny:
    ALL: some.host.name, .some.domain
    ALL EXCEPT in.fingerd: other.host.name, .other.domain
    OK, so this was from hosts.deny instead of hosts.allow - the key item is that the local network uses just a dot prefix.

    Having never used either hosts file, I cannot honestly say what the % expansions do...
    Last edited by Iowan; April 25th, 2008 at 12:43 AM.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Sep 2007
    Beans
    37

    Re: /etc/hosts.allow dns

    sorry, the original post should have been:

    .domain.com
    not %.domain.com

    the man page says:
    the pattern '.tue.nl´ matches the host name 'wzv.win.tue.nl´

    which is all well and good...
    my problem is my machine does not seem to be doing a dns lookup for the ip address that tries to connect, so it never matches that listing in etc/hosts.allow

    thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •