Koozali.org: home of the SME Server

translate "general linux" dns instruction into sme

syx

translate "general linux" dns instruction into sme
« on: May 22, 2006, 06:31:03 AM »
Hi,

I have sme 6.01 being a domain controller and dns server but not dhcp for my network.

I have been given this instruction by someone as a part of more instructions so that I can allow my users to go to some websites without being charged against their internet quota.

Anyway this is what he wrote

Add an entry to your internal DNS, eg
safesite        IN      CNAME   proxy.decs.sa.edu.au.

Am I right in thinking that this would be done on the domain controller/dns server ? if so, how ?

Thanks for any replies.

 :-)

Offline mmccarn

  • *
  • 2,627
  • +10/-0
translate "general linux" dns instruction into sme
« Reply #1 on: June 13, 2006, 05:20:09 AM »
Here's a link to some instructions that claim to allow you to create cname records: DHCP to DNS synchroniser

And I tested this on SME 7.0rc3, but have no idea if it will work under 6.01...

 
Code: [Select]
[root@sme ]# md -p /etc/e-smith/templates-custom/var/service/tinydns/root/data
[root@sme ]# pico /etc/e-smith/templates-custom/var/service/tinydns/root/data/80CNAMERecords

Then create your cname by typing this content into 80CNAMERecords:

Quote
Csafesite.yourdomain.au:proxy.decs.sa.edu.au.


Execute these commands to add your changes to the tinydns config file, verify them, and restart the service:

 
Code: [Select]
[root@sme ]# /sbin/e-smith/expand-template /var/service/tinydns/root/data
[root@sme ]# tail /var/service/tinydns/root/data
(If it worked, the last line of output from the "tail" command will be the line that you added to 80CNAMERecords)
Code: [Select]
[root@sme ]# cd /var/service/tinydns/root/
[root@sme ]# tinydns-data
[root@sme ]# service dnscache stop
[root@sme ]# service tinydns stop
[root@sme ]# service tinydns start
[root@sme ]# service dnscache start


Somehow, however, I suspect that there are more pieces to this puzzle than just creating a CNAME record...

syx

translate "general linux" dns instruction into sme
« Reply #2 on: June 13, 2006, 05:27:56 AM »
thanks for the reply there was more to the puzzle.

I posted this a while ago and have since had help to resolve the issue.

Thanks very much for the effort in replying.

 :-)

Offline mmccarn

  • *
  • 2,627
  • +10/-0
translate "general linux" dns instruction into sme
« Reply #3 on: June 13, 2006, 05:31:45 AM »
No problem.  I'm trying to learn more about the guts of the SME system by working out answers to issues in the Forums...  Now I know about 1000% more than I did yesterday about tinydns!