LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-05-2006, 02:53 AM   #1
Wynand1
Member
 
Registered: Mar 2004
Posts: 121

Rep: Reputation: 15
Arrow sarg and resolving an IP address to a Hostname


I've just setup a squid proxy with sarge to monitor it. In the sarg report under UserID it lists the IP address of the machine that accessed the server. I'm using webmin to configure sarg and saw an option called "Resolve IP addresses?".

If I say "yes" to the option "Resolve IP addresses?" It changes 172.0.0.1 to localhost , but does not change a "real" ip address to its hostname , just leaves it the ip address.

How do I fix this ?
 
Old 05-05-2006, 08:51 AM   #2
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
Sounds like a general DNS problem. It could be that you have 127.0.0.1 mapped to localhost in /etc/hosts file, but don't have a valid /etc/resolv.conf.

What is the result if you try to do some resolution using nslookup? Keep in mind also that IP-to-hostname resolution requires that reverse DNS is set up for the IP address; not all IPs have a PTR record in a reverse lookup zone.
 
Old 05-06-2006, 07:18 AM   #3
hareeshvv
Registered User
 
Registered: Apr 2006
Location: India
Distribution: RedHat
Posts: 6

Rep: Reputation: 0
please be clear

Hi Wynand,
I think you are saying about Reporting in username basis.It is possible by confirming the entry "user_ip no" in /etc/sarg/sarg.conf
May it help.
 
Old 05-10-2006, 05:00 AM   #4
Wynand1
Member
 
Registered: Mar 2004
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks for your responses.

Quote:
Sounds like a general DNS problem. It could be that you have 127.0.0.1 mapped to localhost in /etc/hosts file, but don't have a valid /etc/resolv.conf
I've checked my host file and it looks like this

search domain.com
nameserver 192.168.10.2

Looks ok to me.

Quote:
I think you are saying about Reporting in username basis.It is possible by confirming the entry "user_ip no" in /etc/sarg/sarg.conf
May it help.
I've got this entry.

An other problem thats showing up is that I've also got a Windows 2003 Terminal server in the network and at the moment sarg only shows the usage from my terminal servers IP address. If sarge could show usernames (if possible to get it from active dir that would be great ) it would help a lot.

We are also using a dhcp server in the network so having sarg only showing lots of IP addresses is not too useful.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Resolving a hostname from it's ip? Infernal211283 Linux - Networking 3 01-09-2006 05:09 AM
Slow Resolving Hostname in any browser elias4444 Debian 1 09-10-2004 11:12 AM
hostname updated, but not resolving ericnmu Linux - Networking 5 09-09-2004 05:34 AM
Slow resolving DNS Hostname rmainville Linux - Networking 3 09-03-2004 11:16 AM
Resolving Hostname on Slackware MrCarl Linux - General 3 11-05-2003 06:39 PM


All times are GMT -5. The time now is 09:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration