From rousskov at measurement-factory.com Mon Dec 1 18:54:28 2008 From: rousskov at measurement-factory.com (Alex Rousskov) Date: Mon, 01 Dec 2008 11:54:28 -0700 Subject: Trouble getting DNS to work In-Reply-To: <58ce48dc0811282319x74a78ec2k845b8e95bec26ae9@mail.gmail.com> References: <58ce48dc0811282319x74a78ec2k845b8e95bec26ae9@mail.gmail.com> Message-ID: <1228157668.9721.1468.camel@pail> On Sat, 2008-11-29 at 02:19 -0500, Chas. Owens wrote: > I have two machines 10.2.4.3 (client) and 10.2.4.4 (server). > Eventually there will be a squid proxy between them, but I wanted to > get a working setup first. Both are Ubuntu 8.10 and have Web > Polygraph 3.1.5. 10.2.4.3 also has Bind 9 installed. I was able to > get simple.pg working between the two machines, so I started modifying > it to add the DNS functionality I will need. I have run into a brick > wall. I can query the DNS server and get answers back, but when I run > the test it spits back > > 000.00| Connection.cc:492: error: 1/1 (s111) Connection refused > 000.00| error: raw write after connect failed > 000.00| connection between 10.2.4.3:39591 and 10.2.4.4 failed at 0 > reads, 0 writes, and 1 xacts I do not think it is a DNS server problem because Polygraph does not complain about name resolution errors. It complains about the connection to server being refused. My guess is that your robot tries to connect to port zero. Please try to change your address map to use explicit ports: AddrMap foo = { zone = "foo.com"; addresses = [ '10.2.4.4:80' ]; names = [ 'www.foo.com:80' ]; }; It is silly that you have to do it, but I suspect the port is lost during mapping if you do not. Standard workloads use ipsToNames() PGL function that preserves ports, masking the problem. If my guess is correct, please report a bug, referring to this email thread. Thank you, Alex.