in reply to Re^2: Reliable FQDN from IP
in thread Reliable FQDN from IP
With /etc/nsswitch.conf set to local followed by bind the query is likely to resolve from /etc/hosts first which cannot be relied upon to be accurate.
Theoretically correct. But have a look at your /etc/hosts: In any environment with a working DNS setup, you should find no other record than localhost 127.0.0.1 and perhaps localhost ::1. So, for any other IP address, DNS is queried. If you fear that someone manipulates /etc/hosts, you fear that someone gains root privileges on that machine. Why do you run code on a machine you can not trust?
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Reliable FQDN from IP (trust?)
by tye (Sage) on Nov 09, 2012 at 15:20 UTC | |
|
Re^4: Reliable FQDN from IP
by agentorange (Sexton) on Nov 09, 2012 at 14:37 UTC | |
by afoken (Chancellor) on Nov 10, 2012 at 18:52 UTC | |
by tye (Sage) on Nov 10, 2012 at 22:51 UTC |