9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ilmari Vacklin <ilmari.vacklin@gmail.com>
To: 9fans@9fans.net
Subject: [9fans] VMware: Can't use DNS because cs fails?
Date: Mon, 24 Jun 2013 09:09:51 +0000	[thread overview]
Message-ID: <6df078c3-da6d-4267-b6b5-41d653d3201e@googlegroups.com> (raw)

Hi all,

After setting up networking with

	ip/ipconfig
	ndb/dns -r

DHCP does its magic and I have working IP and TCP. However, I can't resolve DNS addresses:

	term% ip/ping google.com
	ip/ping: couldn't dial icmp!google.com!1: cs: temporary problem: dns: dns failure

Pinging an IP works:

	term% ip/ping 8.8.4.4
	sending 32 64 byte messages 1000 ms apart to icmp!8.8.4.4!1
	0: rtt 1025351 µs, avg rtt 1025351 µs, ttl = 128
	1: rtt 25669 µs, avg rtt 525510 µs, ttl = 128
	2: rtt 29573 µs, avg rtt 360197 µs, ttl = 128

ndb/dnsquery gives me this error:

	term% ndb/dnsquery
	> www.google.com
	!dns: dns failure

Looking in /net/ndb, my network looks like this:

	ip=127.0.0.1 ipmask=/104 ipgw=::
		sys=gnot
		sys=gnot
		dom=gnot.localdomain
		dns=192.168.220.2

I don't know if that's correct.

Debugging further, it turns out I can query my DNS server directly:

	term% ndb/dnsdebug @192.168.220.2 www.google.com
	31846.1: sending to 192.168.220.2/192.168.220.2 www.google.com ip
	31846: rcvd OK from 192.168.220.2 ( recurse can_recurse)
	[...snip...]

I put cs into debug mode with `echo debug > /net/cs` and look in `/sys/log/cs`. I see the following:

	term% cat /sys/log/cs
	gnot Jun 24 13:48:16 debug 1
	gnot Jun 24 13:48:16 Rwrite tag 2 count 6 11
	gnot Jun 24 13:48:16 Tclunk tag 2 fid 232
	gnot Jun 24 13:48:16 Rclunk tag 2 7
	gnot Jun 24 13:48:29 Twalk tag 2 fid 124 newfid 225 nwname 1 0:cs 
	gnot Jun 24 13:48:29 Rwalk tag 2 nwqid 1 0:(0000000000000001 25 )  22
	gnot Jun 24 13:48:29 Topen tag 2 fid 225 mode 2
	gnot Jun 24 13:48:29 Ropen tag 2 qid (0000000000000001 25 ) iounit 0  24
	gnot Jun 24 13:48:29 Twrite tag 2 fid 225 offset 0 count 14 'www.google.com'
	gnot Jun 24 13:48:29 write www.google.com
	gnot Jun 24 13:48:29 Rerror tag 2 ename cs: can't translate service 36
	gnot Jun 24 13:48:29 Tclunk tag 2 fid 225
	gnot Jun 24 13:48:29 Rclunk tag 2 7
	gnot Jun 24 13:50:19 Twalk tag 2 fid 124 newfid 229 nwname 1 0:cs 
	gnot Jun 24 13:50:19 Rwalk tag 2 nwqid 1 0:(0000000000000001 26 )  22
	gnot Jun 24 13:50:19 Topen tag 2 fid 229 mode 2
	gnot Jun 24 13:50:19 Ropen tag 2 qid (0000000000000001 26 ) iounit 0  24
	gnot Jun 24 13:50:19 Twrite tag 2 fid 229 offset 0 count 20 '!sys=google.com ip=*'
	gnot Jun 24 13:50:19 Rerror tag 2 ename cs: no match 21
	gnot Jun 24 13:50:19 Tclunk tag 2 fid 229
	gnot Jun 24 13:50:19 Rclunk tag 2 7
	gnot Jun 24 13:50:19 Twalk tag 2 fid 124 newfid 229 nwname 1 0:cs 
	gnot Jun 24 13:50:19 Rwalk tag 2 nwqid 1 0:(0000000000000001 27 )  22
	gnot Jun 24 13:50:19 Topen tag 2 fid 229 mode 2
	gnot Jun 24 13:50:19 Ropen tag 2 qid (0000000000000001 27 ) iounit 0  24
	gnot Jun 24 13:50:19 Twrite tag 2 fid 229 offset 0 count 20 '!dom=google.com ip=*'
	gnot Jun 24 13:50:19 slave 294
	gnot Jun 24 13:50:19 Rerror tag 2 ename cs: no match 21
	gnot Jun 24 13:50:19 slave death 294
	gnot Jun 24 13:50:19 Tclunk tag 2 fid 229
	gnot Jun 24 13:50:19 Rclunk tag 2 7
	gnot Jun 24 13:50:19 Twalk tag 2 fid 124 newfid 229 nwname 1 0:cs 
	gnot Jun 24 13:50:19 Rwalk tag 2 nwqid 1 0:(0000000000000001 28 )  22
	gnot Jun 24 13:50:19 Topen tag 2 fid 229 mode 2
	gnot Jun 24 13:50:19 Ropen tag 2 qid (0000000000000001 28 ) iounit 0  24
	gnot Jun 24 13:50:19 Twrite tag 2 fid 229 offset 0 count 22 '!sys=google.com ipv6=*'
	gnot Jun 24 13:50:19 Rerror tag 2 ename cs: no match 21
	gnot Jun 24 13:50:19 Tclunk tag 2 fid 229
	gnot Jun 24 13:50:19 Rclunk tag 2 7
	gnot Jun 24 13:50:19 Twalk tag 2 fid 124 newfid 229 nwname 1 0:cs 
	gnot Jun 24 13:50:19 Rwalk tag 2 nwqid 1 0:(0000000000000001 29 )  22
	gnot Jun 24 13:50:19 Topen tag 2 fid 229 mode 2
	gnot Jun 24 13:50:19 Ropen tag 2 qid (0000000000000001 29 ) iounit 0  24
	gnot Jun 24 13:50:19 Twrite tag 2 fid 229 offset 0 count 22 '!dom=google.com ipv6=*'
	gnot Jun 24 13:50:19 slave 295
	gnot Jun 24 13:50:19 Rerror tag 2 ename cs: no match 21
	gnot Jun 24 13:50:19 slave death 295
	gnot Jun 24 13:50:19 Tclunk tag 2 fid 229
	gnot Jun 24 13:50:19 Rclunk tag 2 7
	gnot Jun 24 13:50:19 Twalk tag 2 fid 124 newfid 229 nwname 1 0:cs 
	gnot Jun 24 13:50:19 Rwalk tag 2 nwqid 1 0:(0000000000000001 30 )  22
	gnot Jun 24 13:50:19 Topen tag 2 fid 229 mode 2
	gnot Jun 24 13:50:19 Ropen tag 2 qid (0000000000000001 30 ) iounit 0  24
	gnot Jun 24 13:50:19 Twrite tag 2 fid 229 offset 0 count 17 'icmp!google.com!1'
	gnot Jun 24 13:50:19 write icmp!google.com!1
	gnot Jun 24 13:50:19 slave 296
	gnot Jun 24 13:50:19 Rerror tag 2 ename cs: temporary problem: dns: dns failure 48
	gnot Jun 24 13:50:19 slave death 296
	gnot Jun 24 13:50:19 Tclunk tag 2 fid 229
	gnot Jun 24 13:50:19 Rclunk tag 2 7
	gnot Jun 24 13:50:26 Twalk tag 1 fid 124 newfid 234 nwname 1 0:cs 
	gnot Jun 24 13:50:26 Rwalk tag 1 nwqid 1 0:(0000000000000001 31 )  22
	gnot Jun 24 13:50:26 Topen tag 1 fid 234 mode 2
	gnot Jun 24 13:50:26 Ropen tag 1 qid (0000000000000001 31 ) iounit 0  24
	gnot Jun 24 13:50:26 Twrite tag 1 fid 234 offset 0 count 8 'udp!*!68'
	gnot Jun 24 13:50:26 write udp!*!68
	gnot Jun 24 13:50:26 Rwrite tag 1 count 8 11
	gnot Jun 24 13:50:26 Tread tag 1 fid 234 offset 0 count 255
	gnot Jun 24 13:50:26 Rread tag 1 count 17 '/net/udp/clone 68' 28
	gnot Jun 24 13:50:26 Tclunk tag 1 fid 234
	gnot Jun 24 13:50:26 Rclunk tag 1 7
	gnot Jun 24 13:50:59 Twalk tag 2 fid 124 newfid 236 nwname 1 0:dns 
	gnot Jun 24 13:50:59 Rerror tag 2 ename cs: file does not exist 32
	gnot Jun 24 13:51:01 Twalk tag 2 fid 124 newfid 236 nwname 1 0:dns 
	gnot Jun 24 13:51:01 Rerror tag 2 ename cs: file does not exist 32
	gnot Jun 24 13:51:36 Twalk tag 2 fid 124 newfid 229 nwname 1 0:cs 
	gnot Jun 24 13:51:36 Rwalk tag 2 nwqid 1 0:(0000000000000001 34 )  22
	gnot Jun 24 13:51:36 Topen tag 2 fid 229 mode 2
	gnot Jun 24 13:51:36 Ropen tag 2 qid (0000000000000001 34 ) iounit 0  24
	gnot Jun 24 13:51:36 Twrite tag 2 fid 229 offset 0 count 14 'icmp!8.8.4.4!1'
	gnot Jun 24 13:51:36 write icmp!8.8.4.4!1
	gnot Jun 24 13:51:36 Rwrite tag 2 count 14 11
	gnot Jun 24 13:51:36 Tread tag 2 fid 229 offset 0 count 5118
	gnot Jun 24 13:51:36 Rread tag 2 count 25 '/net/icmp/clone 8.8.4.4!1' 36
	gnot Jun 24 13:51:36 Tread tag 2 fid 229 offset 25 count 5092
	gnot Jun 24 13:51:36 Rread tag 2 count 0 <no data> 11
	gnot Jun 24 13:51:36 Tclunk tag 2 fid 229
	gnot Jun 24 13:51:36 Rclunk tag 2 7
	gnot Jun 24 13:54:01 Twalk tag 3 fid 124 newfid 229 nwname 1 0:dns 
	gnot Jun 24 13:54:01 Rerror tag 3 ename cs: file does not exist 32

Unfortunately I don't know how to read this, so I'm stumped. Any clues what might be going on? I get the same behaviour with both the NAT and Bridged modes in VMware.



             reply	other threads:[~2013-06-24  9:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-24  9:09 Ilmari Vacklin [this message]
2013-06-24 13:07 ` erik quanstrom
2013-06-24 17:39   ` Bakul Shah
2013-06-24 18:18   ` [9fans] VMwaCan't " Ilmari Vacklin
2013-06-24 19:46     ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6df078c3-da6d-4267-b6b5-41d653d3201e@googlegroups.com \
    --to=ilmari.vacklin@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).