Subject: Re: telnet -4 command switches on IPv4 mode for other apps
To: None <netbsd-users@netbsd.org>
From: =?ISO-8859-1?Q?Andreas_Ha=DFfeld?= <andreas@hassfeld.net>
List: netbsd-users
Date: 02/09/2007 10:25:33
Hi,
Alasdair wrote:
> ;; QUESTION SECTION:
> ;smtp.iprimus.com.au. IN A
>
> ;; ANSWER SECTION:
> smtp.iprimus.com.au. 10000 IN A 202.138.53.12
>
this looks the same for the first and second request. That's ok in
contrast to my assumption.
> $ dig -t AAAA smtp.iprimus.com.au
> ;; Warning: Message parser reports malformed message packet.
>
> ; <<>> DiG 9.3.0 <<>> -t AAAA smtp.iprimus.com.au
> ;; global options: printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31394
> ;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;smtp.iprimus.com.au. IN AAAA
>
> ;; Query time: 2 msec
> ;; SERVER: 192.168.1.254#53(192.168.1.254)
> ;; WHEN: Fri Feb 9 17:41:32 2007
> ;; MSG SIZE rcvd: 37
And the host doesn't have an IPv6 address. What does "Warning: Message
parser reports malformed message packet." mean? And why does it say
"ANSWER: 1", I don't see a printed answer.
Maybe that a hint? Anyone else?
If I resolve that IPv6 host at my DNS I get 0 answers, like expected:
ahassfeld@montano:~$ dig -t AAAA smtp.iprimus.com.au
; <<>> DiG 9.3.0 <<>> -t AAAA smtp.iprimus.com.au
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34225
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;smtp.iprimus.com.au. IN AAAA
;; Query time: 342 msec
;; SERVER: 192.168.0.12#53(192.168.0.12)
;; WHEN: Fri Feb 9 10:22:17 2007
;; MSG SIZE rcvd: 37
Your resolving DNS 192.168.1.254 above, is that under your control?
> telnet smtp.iprimus.com.au 25
> Trying 1.0.0.0...
> telnet: Unable to connect to remote host: Connection timed out
> $ telnet -4 smtp.iprimus.com.au 25
> Trying 202.138.53.12...
> Connected to smtp.iprimus.com.au.
> Escape character is '^]'.
> 220 smtp06.syd.iprimus.net.au ESMTP
> Connection closed by foreign host.
I still don't understand why telnet resolves smtp.iprimus.com.au to
1.0.0.0 at the first time.
Yours,
Andreas