It looks like you are not familiar with internet severs. I really don't
want to setup a local or intranet resolver and revese dns lookup server
for localhost.
The host command resolve from resolver not from localhost, as this sever
use public resolvers. See proof below,
root@u: ~ # host localhost
Host localhost not found: 3(NXDOMAIN)
root@u: ~ # dig localhost @8.8.8.8 +short
root@u: ~ # nslookup localhost
Server: 8.8.8.8
Address: 8.8.8.8#53
** server can't find localhost: NXDOMAIN
root@u: ~ # ping -t 3 localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.033 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.042 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.071 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.054 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.046 ms
64 bytes from localhost (127.0.0.1): icmp_seq=6 ttl=64 time=0.046 ms
64 bytes from localhost (127.0.0.1): icmp_seq=7 ttl=64 time=0.054 ms
64 bytes from localhost (127.0.0.1): icmp_seq=8 ttl=64 time=0.050 ms
^C
--- localhost ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7152ms
rtt min/avg/max/mdev = 0.033/0.049/0.071/0.010 ms
root@u: ~ # grep localhost /etc/hosts
127.0.0.1 localhost
::1 ip6-localhost ip6-loopback
root@u: ~ #
root@u: ~ # host 127.0.0.1
Host 1.0.0.127.in-addr.arpa. not found: 3(NXDOMAIN)
root@u: ~ #
On 31/10/21 11:49 pm, Slavko via Exim-users wrote:
Hi,
Dňa Sun, 31 Oct 2021 23:06:24 +0530 Sherin A via Exim-users
<[email protected]> napísal:
if we can setup a reverse look up exclude for host localhost , it
will be nice.
it seems, that you know very little about DNS:
host localhost
localhost has address 127.0.0.1
localhost has IPv6 address ::1
This is because , your server solver or ISP have a DNS and RDNS for
localhost which resolve fine
host 127.0.0.1
1.0.0.127.in-addr.arpa domain name pointer localhost.
host ::1
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa domain
name pointer localhost.
I use three different DNS servers, two are serving localhost. The third
(my own) is not, but it responds only to TXT requests :-P
Yes, as I said my resolvers don't have the RDNS / DNS for localhost
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/