bind source


 
Thread Tools Search this Thread
Top Forums Programming bind source
# 1  
Old 08-09-2012
bind source

here is the bind source file for the client.c
in bind9 logs are written in var/log/file name in the form
02-Aug-2012 15:43:12.713 client 192.168.2.4#47512: query: 209.236.125.74.in-addr.arpa IN PTR + (192.168.2.4)
i am in a subnet of 10 systems through 192.168.2.1..10 i want to write logs based on the ip address in the files in the format filename.ipadress
there is a function called isc_log_write which is responsible for logging can any one help me know the behaviour of isc_log_write in client.c attached file
how is it writing the logsi have added a plugin in bind9 source which gets the ip address from the output string now in the final string.based on this ip i need to append it to filename( if my file name is named_querylog then the cooresponding logs of the ip will be in the file name as named_query.log.192.168.132.1
so i need to find out the behaviour of isc_log_write can you help me find out what is happening in this function?
what context it passes to log_write in the case where it logs peerbuf?
i am using bind 9.7.3 please reply its really important?

Last edited by balvinder87; 08-10-2012 at 01:13 AM..
# 2  
Old 08-09-2012
The code that appears to write, "isc_log_write", is not actually in that file.
# 3  
Old 08-10-2012
sorry it was not attached properly to the thread i am attaching the code please check it
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Bind

Hi All I need to do bind of exiting filesystem to new storage allocated mount --bind /prod/OpenCSS /var/lib/test echo "/prod/OpenCSS /var/lib/pgsql bind bind 0 0" >> /etc/fstab will this command just work ? (2 Replies)
Discussion started by: anil529
2 Replies

2. UNIX for Dummies Questions & Answers

Can't bind to IP

When you get the message can't bind to ip already in use. is there a command to search to see everything that is using that IP? I've already check the host and hostname files (2 Replies)
Discussion started by: mchelle_99
2 Replies

3. UNIX for Dummies Questions & Answers

Configure BIND

I know how to manage DNS once it's installed. I can edit named.conf and create zone files. I can sign the zones, use TSIG, etc. How do I take the BIND 9.9 tar ball from All Downloads | Internet Systems Consortium and install it and get it to work? Maybe I am not getting it. Can... (0 Replies)
Discussion started by: brianjb
0 Replies

4. Red Hat

Bind 9.9.2 not working

Hello friends Internet query not working anymore with bind , i am not using forwarder dns server . 1. resolv.conf file => search local.server nameserver 127.0.0.1 2. named.conf file => // // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS... (8 Replies)
Discussion started by: rink
8 Replies

5. Red Hat

BIND configuration

I have problems with a simple BIND configuration in CentOS. I have a static public IP 1.1.1.1 and I recently bought a domain name gigi.com. I just want that gigi.com points to 1.1.1.1 (Apache Web Server). This is how my named.conf file looks: options { directory "/var/named"; }; ... (0 Replies)
Discussion started by: pasadia
0 Replies

6. UNIX for Dummies Questions & Answers

mount --bind

I read it create hard link but I want to be sure, what does this command do exactly? Thank in advance. (1 Reply)
Discussion started by: programAngel
1 Replies

7. Solaris

bind error

Hi, When I use the ldapadd command I get this error. ldap_simple_bind: Conidentiality required ldap_simple_bind: additional info: confidentiality required I was able to use this command and the ldapsearch command yesterday just fine. I think I may have made a change to a file, but I don't... (2 Replies)
Discussion started by: bitlord
2 Replies

8. IP Networking

The third argument of bind()

int bind(int socket, const struct sockaddr *address, socklen_t address_len); Man page says it specifies the length of the sockaddr structure pointed to by the address argument. But why bind() can't figure out the length itself, since the first member (eg:AF_INET or... (4 Replies)
Discussion started by: vistastar
4 Replies

9. UNIX for Advanced & Expert Users

DNS Bind

Hello, I have a question about dns file zone. Every zone file begins like: @ 86400 IN SOA ns1.website.com. admin@website.com. ( It means that name server ns1 is responsible for this zone. At the ending I can add the records like mysite.com IN A 1.2.3.4 So it will... (2 Replies)
Discussion started by: mirusnet
2 Replies
Login or Register to Ask a Question