View Full Version : [ubuntu] /etc/hosts.allow dns

April 24th, 2008, 07:20 PM
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?


April 25th, 2008, 12:40 AM
From the man page:
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...

April 25th, 2008, 01:42 AM
sorry, the original post should have been:

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