Seblu: > On Tue, Aug 5, 2008 at 12:56 PM, Wietse Venema <[EMAIL PROTECTED]> wrote: > > Seblu: > > [ Charset ISO-8859-1 unsupported, converting... ] > >> Hello, > >> > >> i use postfix postfix 2.5.1 on an OpenBSD 4.3 and i have a stange > >> behaviour (for me) with DNS lookup in logs. > >> > >> i've a local dns, which resolv 192.42.42.1 to toto.titi > >> > >> # host 192.42.42.1 > >> 1.42.42.192.in-addr.arpa domain name pointer toto.titi. > > > > Not here: > > > > % host 192.42.42.1 > > 1.42.42.192.in-addr.arpa domain name pointer accessa.unine.ch. > > > > Check your resolv.conf files. > > My resolv.conf is : > <file> > search toto > nameserver 127.0.0.1 > lookup file bind > </file> > > but if my resolv.conf was not good, host command not answer corrrectly. No ? > > I paste the dig result. > > <term> > # dig -t ptr 1.42.42.192.in-addr.arpa @127.0.0.1 > > ; <<>> DiG 9.4.2 <<>> -t ptr 1.42.42.192.in-addr.arpa @127.0.0.1 > ;; global options: printcmd > ;; Got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10197 > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 > > ;; QUESTION SECTION: > ;1.42.42.192.in-addr.arpa. IN PTR > > ;; ANSWER SECTION: > 1.42.42.192.in-addr.arpa. 3600 IN PTR raptor.toto. > > ;; AUTHORITY SECTION: > 42.42.192.in-addr.arpa. 3600 IN NS ns.toto. > > ;; ADDITIONAL SECTION: > ns.toto. 3600 IN A 192.42.42.254 > > ;; Query time: 2 msec > ;; SERVER: 127.0.0.1#53(127.0.0.1) > ;; WHEN: Wed Aug 6 18:54:28 2008 > ;; MSG SIZE rcvd: 110 > </term> > > and the arp command has a right answer > <term> > # arp -a > toto.titi (192.42.42.1) at 00:1d:7d:03:6a:zb on vlan42 > </term> > > I'm really lost.
Postfix does not use DNS to look up the SMTP client hostname. Postfix uses the getnameinfo() system library routine. If the getnameinfo() system library routine does not produce the answer that you like to see, then that is not a problem in Postfix. It can be solved by someone who is familiar with the implementation details of OpenBSD. Wietse