Koozali.org: home of the SME Server

resolve pc fqdn instead of pcxxxxx.mycompany.local

Offline voodoochile

  • 3
  • +0/-0
resolve pc fqdn instead of pcxxxxx.mycompany.local
« on: May 14, 2008, 12:20:14 PM »
Hello Everybody
I have SME server 7.3 running in server gateway mode. I use dansguardian 2.9.9.2 and squid proxy running using ntlm authentication against windows 2003 active directory.
I am having difficulty getting pc host names to show up in dansguardian logs it shows pc-xxxxx.mycompany.local i would ideally like it to show the fqdn of the pc in respect to our domain.
if i ping "servername" i get a reply pc-xxxxx.mycompany.local if i ping "servername.ourdomain.local" i get unknown host
Running nslookup on the server
[root@smeserver ~]# nslookup
> servername
Server:         192.168.4.25
Address:        192.168.4.25#53

** server can't find servername: NXDOMAIN

where 192.168.4.25 is smeserver address

Any ideas where to start would be appreciated

Thanks

Karl

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: resolve pc fqdn instead of pcxxxxx.mycompany.local
« Reply #1 on: May 14, 2008, 02:00:26 PM »
Regards,
William

IF I give advise.. It's only if it was me....

Offline kevinb

  • *
  • 237
  • +0/-0
Re: resolve pc fqdn instead of pcxxxxx.mycompany.local
« Reply #2 on: May 15, 2008, 06:29:40 AM »
I have never liked this either.

I tried:
Code: [Select]
db networks setprop 192.168.1.0 NameServer 192.168.1.1
sv t /service/dnscache

and dnscache maxed out one the CPU's for hours until I changed it back.

I also tried:
Code: [Select]
db networks setprop 192.168.1.0 NameServer 127.0.0.1
sv t /service/dnscache

And reverse dnslookup went back to "pc-xxxxx.mycompany.local".

I believe i have the syntax correct. There was an issue with "NameServer" and "Nameserver".

Kevin

Offline voodoochile

  • 3
  • +0/-0
Re: resolve pc fqdn instead of pcxxxxx.mycompany.local
« Reply #3 on: May 15, 2008, 10:54:02 AM »
thanks to the link posted by william_syd ive managed to get it sort of working

db networks setprop 192.168.0.0 NameServer 192.168.0.1
sv t /service/dnscache

worked for me


now i get fqdn pc resolution in dansguardian logs which is what i was after ....still think my dns is not quite set up right but that can wait for a later date ..........thanks very much

Offline kevinb

  • *
  • 237
  • +0/-0
Re: resolve pc fqdn instead of pcxxxxx.mycompany.local
« Reply #4 on: May 16, 2008, 03:12:39 AM »
voodoochile,

Does your server now resolve static and dynamic IP's?

I opened a bug for the CPU usage issue I am having on my two machines.

http://bugs.contribs.org/show_bug.cgi?id=4345


Kevin

Offline voodoochile

  • 3
  • +0/-0
Re: resolve pc fqdn instead of pcxxxxx.mycompany.local
« Reply #5 on: May 16, 2008, 12:23:25 PM »
Our ip addresses are given out by windows 2003 dhcp server so i suppose the answer is yes
Here is an excerpt from dansguardian log
showing date time username ip address web site then at the end the fqdn of the pc

2008.5.16 10:40:38 h09scrivensmm 192.168.3.7 http://www.bbc.co.uk/webwise/askbruce/includes/stanwords.js *EXCEPTION* Exception site match. GET 305 0  1 200 - a2011.hawkleyhall.local  -