LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-01-2007, 12:36 PM   #1
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
creating a webalizer dns cache file manually


Does anyone know how to manually create the Webalizer DNScache database file? I have an internal webserver, so all the IP addresses are 10.x addresses, therefore won't resolve to countries. I want to be able to manually add subnets to the dbcache file so I can resolve IPs to internal locations.
 
Old 02-02-2007, 07:20 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
AFAIK you can't manually edit it. Here is an idea though. If Webazolver (Webalizer, DNS.README) honours /etc/nsswitch.conf you could change the resolving order to files then DNS and use static mappings in /etc/hosts. If you don't want to do that you could edit /etc/resolv.conf and use a local caching DNS like Pdnsd. Pdnsd not only has a persistent on-disk cache to help speed up queries, it can also change TTL values (Webalizers cache says 3 days max) and serve up mappings from it's own config and /etc/hosts-like files. Just an idea.
 
Old 02-02-2007, 02:12 PM   #3
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Original Poster
Rep: Reputation: 16
Ok, so the first problem I have is that I need to recompile webalizer with dns support. In order to do that, I need to install Berkeley DB with v1.85 support.

I configured Berkeley DB with the option: --enable-compat185, per the BerkeleyDB webpage.
It compiles correctly, and installs the libs in /usr/local/BerkeleyDB.4.5/lib

When I try to compile webalizer with DNS, I get the following:

Code:
./configure --enable-dns --with-db=/usr/local/BerkeleyDB.4.5/lib/

loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether ln -s works... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/ginstall -c
checking how to run the C preprocessor... (cached) gcc -E
checking whether char is unsigned... (cached) no
checking for dbopen... (cached) no
checking for library containing dbopen... (cached) no
configure: warning: You must have a V1.85 compatable DB library!
configure: warning: DNS lookup code will be disabled...
checking for socket... (cached) yes
checking for sys/socket.h... (cached) yes
checking for main in -lnsl... (cached) yes
checking for main in -l44bsd... (cached) no
checking for main in -lm... (cached) yes
checking for main in -lz... (cached) yes
checking for gzrewind in -lz... (cached) yes
checking for main in -lpng... (cached) yes
checking for gdImagePng in -lgd... (cached) yes
checking for gd.h... (cached) /usr/local/include
checking for getopt.h... (cached) yes
checking for math.h... (cached) yes
checking default config dir... (cached) /etc
checking for language file... (cached) yes - english
creating ./config.status
creating Makefile
linking ./lang/webalizer_lang.english to webalizer_lang.h
Did I miss something?
 
Old 02-02-2007, 04:18 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Ok, so the first problem I have is that I need to recompile webalizer with dns support.
...or just D/L the static binary and make a symlink from webalizer to webazolver.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Webalizer with DNS lookups jnichel Linux - Software 21 01-23-2009 11:13 AM
regarding dns cache gimmereeson Linux - Server 4 01-22-2007 07:41 PM
dns cache moob8 Slackware 4 10-15-2006 10:18 PM
Cache DNS server and zone file DanielTan Linux - Networking 7 09-26-2005 11:00 AM
how to make Linux router by creating Initrd manually and from scratch nikhilpavithran Linux - Software 1 07-29-2005 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration