Koozali.org: home of the SME Server

Best way to customize domain records?

Offline styx

  • *
  • 6
  • +0/-0
Re: Best way to customize domain records?
« Reply #15 on: April 14, 2009, 10:36:14 AM »
Hi there,
I need MX record to be customized.
I've tried this:
1. edited /var/service/tinydns/root/data
2. cd /var/service/tinydns/root && tinydns-data
3. /etc/init.d/tinydns restart
After step 3, the MX settings got back to defaults in /var/service/tinydns/root/data.
How should I manage this?

This works:
1. edit /var/service/tinydns/root/data
2. comment in /var/service/tinydns/control/1 #/sbin/e-smith/expand-template /var/service/tinydns/root/data
3. cd /var/service/tinydns/root && tinydns-data
4. /etc/init.d/tinydns restart
5. /etc/init.d/dnscache restart

IF YOU COMMENT THAT OUT IN STEP 2, THE NETWORK AND HOST SETTINGS PROBABLY WON'T CHANGE ANY MORE VIA SERVER-MANAGER'S HOSTNAMES AND ADDRESSESS AND DOMAINS !!


check the results with dig:
tinydns:
$ dig MX domain @localhost

dnscache:
$ dig MX domain @IP


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Best way to customize domain records?
« Reply #16 on: April 14, 2009, 12:27:50 PM »
Hi there,
I need MX record to be customized.
Are you sure you really need this? What are you trying to achieve? Perhaps there is an easier option.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline styx

  • *
  • 6
  • +0/-0
Re: Best way to customize domain records?
« Reply #17 on: April 14, 2009, 12:59:12 PM »
Are you sure you really need this? What are you trying to achieve? Perhaps there is an easier option.

So, there's domain.com, the NS1 is outside of LAN.
The SME server on LAN also serves this domain locally, because we don't want to configure a.domain.com and b.domain.com on NS1 because of security reasons (to reveal the local network structure) - these servers are in the LAN. "A" records can easily set up in server-manager, but not the "MX"es.

A second SME server has been set up to query the first one (Corporate DNS), and the client machines also (via 2nd server's DHCPd)
So, the 2nd SME server on the network wants to send a mail to log@domain.com, the first SME server mentioned above says the MX server is itself, and it's not good, we can't get the log messages of timed runs, etc..

So the solution was to change the namserver's MX settings for that domain.
But now we can not easily manage the 1st SME server's domain and hostname settings via server-manager thru web.

« Last Edit: April 14, 2009, 01:01:26 PM by styx »

Offline markehle

  • ****
  • 125
  • +0/-0
Re: Best way to customize domain records?
« Reply #18 on: May 27, 2009, 03:07:37 AM »
I would also be interested in gaining more control over the DNS server in SME. I am trying to get Sipxecs working on our network, and it has some specific DNS needs that SME does not seem to be able to pull off using the server-manager. Sipxecs wants DNS to resolve names like _sip._udp, _sip._tcp , and _sips._tcp, but when I try to put them in, the 'hostnames and addresses' server-manager panel says: "The hostname must contain only letters, numbers, and hyphens, and must start with a letter or number."