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
-
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 ?
:?:
-
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.
-
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.
-
davidbray
see Hostnames and addresses panel in server manager
-
am i missing something
server-manager only handles A records ?
-
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
-
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.
-
Charlie
New Feature Request bug added
http://bugs.contribs.org/show_bug.cgi?id=3132
-
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.