Koozali.org: home of the SME Server

CName records

Offline Brave Dave

  • *
  • 185
  • +0/-0
CName records
« on: June 27, 2007, 03:26:19 AM »
To add a cname record I do this

Create a Customer template folder
mkdir -p /etc/e-smith/templates-custom/var/service/tinydns/root/data/

then edit the file
/etc/e-smith/templates-custom/var/service/tinydns/root/data/62Cnames

Add my cname data e.g.
# CName Records for domains
# Note these are maintained in the custom templates

Cservername.domain.tld:otherserver.otherdomain.tld

# End CNames

signal-event host-modify
svc -t /service/tinydns
svc -t /service/dnscache

Is this it - the way ?
or
Is that the hard way ?
 :?:
.:DB:.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: CName records
« Reply #1 on: June 27, 2007, 04:18:28 AM »
davidbray

Not sure what you are actually expecting/trying to achieve ?

sme server is not a public dns server, it only provides dns to the local network.
You need to add cnames to your external dns records for public access to work.

To add additional domains to sme, use the Domains panel in server manager, also the Hostnames panel may be of use to you.
Refer to the manual for details of using these panels.
...

Offline Brave Dave

  • *
  • 185
  • +0/-0
CName records
« Reply #2 on: June 27, 2007, 04:35:10 AM »
Thanks for the reply Ray

The reasons for trying to achieve something may be blurred but I have a network where the internal domain is domain.tld

domain.tld is also a registered domain and email gets handled accordingly

the problem I get is usually with www.domain.tld where it is housed remotely

now thats ok, until the hosting company moves it

SME forces either delegation to another server or A records

CNames are a way of managing this

The situation is actually more complex than this, but hopefully you get the drift.

The problem with my solution is it doesn't display the records in the SME Admin area.
.:DB:.

Offline raem

  • *
  • 3,972
  • +4/-0
CName records
« Reply #3 on: June 27, 2007, 11:23:26 PM »
davidbray

see Hostnames and addresses panel in server manager
...

Offline Brave Dave

  • *
  • 185
  • +0/-0
CName records
« Reply #4 on: June 28, 2007, 12:03:38 AM »
am i missing something

server-manager only handles A records ?
.:DB:.

Offline raem

  • *
  • 3,972
  • +4/-0
CName records
« Reply #5 on: June 28, 2007, 01:45:11 AM »
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: CName records
« Reply #6 on: June 28, 2007, 01:55:20 AM »
Quote from: "davidbray"

Is this it - the way ?


What you've done is fine, although you don't need to restart tinydns.

This could be a useful feature request. Allow entry of a FQDN rather than IP address in the hostnames panel.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: CName records
« Reply #7 on: July 05, 2007, 06:32:51 PM »
Charlie

New Feature Request bug added
http://bugs.contribs.org/show_bug.cgi?id=3132
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: CName records
« Reply #8 on: July 05, 2007, 06:46:28 PM »
Quote from: "RayMitchell"

New Feature Request bug added
http://bugs.contribs.org/show_bug.cgi?id=3132


As with all such feature requests, anyone is free to step forward and offer to implement it (just post the code into bugzilla) and if you cannot code, but would like to see the feature added, then please step forward with a sponsorship offer.