IPV6 DNS query
On Sat, 26 Feb 2011 14:57:25 +0000, T o n g wrote:
> using hostname for remote host NOK
>
> tong@coral:~$ ssh -C -A -X -p 21 -o
> UserKnownHostsFile=/tmp/32083.tmpf.32124.uknf maroon -v OpenSSH_5.5p1
> Debian-4ubuntu4, OpenSSL 0.9.8o 01 Jun 2010 debug1: Reading
> configuration data /home/tong/.ssh/config debug1: Reading
> configuration data /etc/ssh/ssh_config debug1: Applying options for *
> debug1: Connecting to maroon [::1] port 21. debug1: Connection
> established.
> . . .
>
> I.e., instead of connecting to remote host maroon, the ssh session
> connected to my local host (coral) instead (using IPV6?). This is so
> weird, I never see this before.
Found and fixed the problem:
$ diff -wU 3 /etc/hosts~ /etc/hosts
--- /etc/hosts~ 2011-02-16 22:13:00.000000000 -0500
+++ /etc/hosts 2011-03-02 21:57:11.000000000 -0500
@@ -4,7 +4,7 @@
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
-::1 ip6-localhost ip6-loopback maroon.my.local.domain
+::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
> . . . DNS name look up seems to be fine:
>
> tong@coral:~$ dig maroon
>
> ; <<>> DiG 9.7.1-P2 <<>> maroon
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19913 ;; flags: qr
> aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;maroon. IN A
>
> ;; ANSWER SECTION:
> maroon. 0 IN A 192.168.2.100
>
> ;; Query time: 0 msec
> ;; SERVER: 192.168.2.100#53(192.168.2.100) ;; WHEN: Sat Feb 26
> 09:22:39 2011
> ;; MSG SIZE rcvd: 40
>
> tong@coral:~$ ping maroon
> PING maroon.my.local.domain (192.168.2.100) 56(84) bytes of data. 64
> bytes from maroon.my.local.domain (192.168.2.100): icmp_req=1 ttl=64
> time=0.113 ms 64 bytes from maroon.my.local.domain (192.168.2.100):
> icmp_req=2 ttl=64 time=0.147 ms ^C
If I knew how to do IPV6 DNS query, I might have prevented the problem.
So, how to do IPV6 DNS query?
Thanks.
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Reply to: