Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Brave Dave on June 27, 2007, 03:26:19 AM

Title: CName records
Post by: Brave Dave 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 ?
 :?:
Title: Re: CName records
Post by: raem 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.
Title: CName records
Post by: Brave Dave 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.
Title: CName records
Post by: raem on June 27, 2007, 11:23:26 PM
davidbray

see Hostnames and addresses panel in server manager
Title: CName records
Post by: Brave Dave on June 28, 2007, 12:03:38 AM
am i missing something

server-manager only handles A records ?
Title: CName records
Post by: raem on June 28, 2007, 01:45:11 AM
davidbray

Have a read, isn't this what are are wanting to do.

http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter13#Hostnames_and_addresses
Title: Re: CName records
Post by: CharlieBrady 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.
Title: Re: CName records
Post by: raem on July 05, 2007, 06:32:51 PM
Charlie

New Feature Request bug added
http://bugs.contribs.org/show_bug.cgi?id=3132
Title: Re: CName records
Post by: CharlieBrady 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.