Re: Trouble getting DNS to work

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Mon, 01 Dec 2008 11:54:28 -0700

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.

_______________________________________________
Users mailing list
Users_at_web-polygraph.org
http://www.web-polygraph.org/mailman/listinfo/users
Received on Mon Dec 01 2008 - 11:58:37 MST

This archive was generated by hypermail 2.2.0 : Thu May 17 2012 - 12:00:16 MDT