Koozali.org: home of the SME Server

DNS Issue

Offline Joeg1484

  • **
  • 35
  • +0/-0
DNS Issue
« on: May 17, 2010, 02:14:44 AM »
Hello again :)

I was messing with my DNS settings today and wanted to migrate my network to use SME server to resolve hostnames, so I changed the router DHCP settings to point to my SME server for DNS resolution.

All is working, as I can ping outsite internet address, but for some reason, I can't ping .local address' from within my network.

If I do an nslookup from a client machine, it appears to have the information, but does not pass it though icmp or any other service.

From the Client:
Code: [Select]
nslookup joeman1.local
Server:         192.168.0.55
Address:        192.168.0.55#53

Non-authoritative answer:
Name:   joeman1.local
Address: 192.168.0.55

However:
Code: [Select]
ping joeman1.local
ping: unknown host joeman1.local

From the server:
Code: [Select]
nslookup joeman1.local
Server:         192.168.0.55
Address:        192.168.0.55#53

Non-authoritative answer:
Name:   joeman1.local
Address: 192.168.0.55

Although:
Code: [Select]
ping joeman1.local
PING joeman1.local (192.168.0.55) 56(84) bytes of data.
64 bytes from wolfserver.joeman1.local (192.168.0.55): icmp_seq=1 ttl=64 time=0.036 ms
64 bytes from wolfserver.joeman1.local (192.168.0.55): icmp_seq=2 ttl=64 time=0.060 ms


I am NO a DNS expert, but I think I have it all set up properly. Basically, I have domains and hostnames set up in server-manager correctly as I can tell.

This is a standalone server and DHCP is being provided from my Linksys router, but points to my SME server as its DNS choice for DHCP and my clients are receiving the information as noted in the /etc/resolv.conf from the clients.

Any thing else I can check or any additional information you need, please let me know.

BTW, I am using SME 8 Beta 5.

Thanks in advance!

Joe

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: DNS Issue
« Reply #1 on: May 17, 2010, 04:46:29 AM »
What is your client OS? If it is linux, what is the content of /etc/nsswitch.conf? Perhaps it is not using DNS for name resolution.

Offline Joeg1484

  • **
  • 35
  • +0/-0
Re: DNS Issue
« Reply #2 on: May 18, 2010, 03:08:34 AM »
What is your client OS? If it is linux, what is the content of /etc/nsswitch.conf? Perhaps it is not using DNS for name resolution.

I am using Linux... Here is my nsswitch.conf file. Should I put dns before files?

Code: [Select]
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: DNS Issue
« Reply #3 on: May 18, 2010, 04:09:07 AM »
I am using Linux... Here is my nsswitch.conf file. Should I put dns before files?

Before 'mdns4_minimal'. Or just use 'hosts dns'. Or change your domain from .local to something else.

https://bugs.launchpad.net/ubuntu/+bug/140663

Offline Joeg1484

  • **
  • 35
  • +0/-0
Re: DNS Issue
« Reply #4 on: May 18, 2010, 04:18:39 AM »
Before 'mdns4_minimal'. Or just use 'hosts dns'. Or change your domain from .local to something else.

https://bugs.launchpad.net/ubuntu/+bug/140663

Awesome, thanks for that.

I change the line to read:
Code: [Select]
hosts:          files dns

And now it works...

Thanks again!

Joe

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: DNS Issue (.local hostnames)
« Reply #5 on: June 03, 2010, 05:44:25 PM »
If no-one has done so already, I suggest that an entry be added to the FAQ about this (Ubuntu client configuration) issue.

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Re: DNS Issue
« Reply #6 on: June 03, 2010, 06:13:34 PM »
The existing wiki Howto's for Debian, Fedora and Ubuntu Authentication already state this, for example:

http://wiki.contribs.org/Client_Authentication:Ubuntu#Authentication_Modifications
« Last Edit: June 03, 2010, 11:18:48 PM by timn »