Forum Discussion

Gigi_32681's avatar
Gigi_32681
Icon for Nimbostratus rankNimbostratus
Mar 03, 2011

DNS Transaction logging

I now have a virtual server contains a pool with 2 DNS server for DNS load-balancing.

 

 

I would like to:

 

 

 

1) log the DNS lookup request & response, with the time.

 

2) count the dropped DNS lookup request

 

 

 

anyone can help??

 

much thx~!!!!!!!!

 

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Well... How good are you at writing iRules (TCP) to pull apart the queries and responses?

     

     

    if you take a look at the iRule I uploaded last year for measuring LDAP response times, you could alter that for DNS. Remember that DNS is (Usually) going to be UDP, not TCP. But at least the datagrams are reasonably easy to decode (Admittedly it's been a few years since I had to, but there are good RFC's out there that describe in glorious detail what they look like).

     

     

    Basically it degenerates into decoding and counting... Counting is done via tables and sub-tables... (Oh how I long for functions in iRules :)

     

     

    H