Koozali.org: home of the SME Server

How to set a DNS host on SME

ElFroggio

How to set a DNS host on SME
« on: November 16, 2006, 02:54:00 AM »
Hi have 3 servers on the networks with static IP, and I'd like to remove the host files from all the client and have the host file on the SME server.

The hosts on SME says, don't modify this file. These servers do not have domain name they just accessible from the inside network.

I just want to have:
Code: [Select]
172.19.10.1    db
I don't want:
Code: [Select]
172.19.10.1    db.xyz.net

Any suggestion? Thanks

Offline mmccarn

  • *
  • 2,656
  • +10/-0
How to set a DNS host on SME
« Reply #1 on: November 18, 2006, 06:23:15 PM »
If your workstations have 'xyz.net' as their 'connection specific DNS suffix' then an attempt to access 'db' will find 'db.xyz.net'.  Then all you need to do is add the other hosts to the DNS server that your workstations point to.

so, for example:

- My SME server is: sme.mydomain.com

- Since I am using my SME for DHCP, it tells my windows xp client that it's 'connection specific DNS suffix' is mydomain.com

- When I run ping sme from a CMD prompt I get:
Code: [Select]
C:\>ping sme

Pinging sme [192.168.200.2] with 32 bytes of data:

Reply from 192.168.200.2: bytes=32 time=2ms TTL=64
Reply from 192.168.200.2: bytes=32 time=2ms TTL=64


- If I create a host in 'hostnames and addresses' in server-manager named 'minime' pointing to my laptop, I can "ping minime" from any system on my network that is using my SME for DHCP, or that is using it for DNS and has the 'connection specific DNS suffix' set to mydomain.com.

There are ways to get the same results with any combination of DNS and DHCP servers - at least if your clients are running Windows (I am less experienced with apple, linux, solaris, etc workstations...)

achandra

Your question
« Reply #2 on: November 19, 2006, 09:39:30 AM »
Hi,

I hope this helps you out -

I ran into a similar type of question/issue.

I came to find that on SME, there is a a nice DNS resolver for your internal network known as DNSCACHE, which is part of DJBDNS.

Anyhow, if you start your DHCP pool with a gap ( ie the servers address is 192.168.0.1...but then the pool actually starts at say 40), then YES you can start to use the specification of host names tied to BOTH internal and external IPS!  SO...to do this I went to the admin panel via shell, and reset where the dhcp pool starts. Next went to Admin Console and specified hosts.

Since the PCS in your internal network use dhcp, and use the SME server for DNS resolution, this is a very sweet way of taking care of resolution.

Now, if you can get the SMB part to authenticate, AND use LDAP, effectively you have a nice Active Directory type setup.