Koozali.org: home of the SME Server

Add local DNS record to server

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Add local DNS record to server
« on: July 06, 2017, 08:27:25 PM »
Good afternoon,

I am using SME server as a Domain controller on my network. As the Domain Controller, it is set as the DNS for all clients on the network.

I need to add the following records to be resolved locally.

DNS A record
 cerncomgmdbus01  104.170.179.71

I also have some DNS SRV records to add (these I really do NOT understand...)

_cerner_edc_qcf_cerncomg_prod   SRV (Service)   0   0   3506   cerncomgmdbus01   _tcp


I think I understand DNS A records and know how to do this on a Windows server domain controller but cannot seem to find the documentation for SME...

I have messed around with adding the 104.170.179.71 to the local network tab and then adding cerncomgmdbus01 as a local domain name pointed to that address. Am I on the right track with this?

What about that SRV record?

Royce

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Add local DNS record to server
« Reply #1 on: July 06, 2017, 08:34:22 PM »
This sounds like a XY problem http://xyproblem.info/

Could you please point us what is you initial goal ?

I do not think adding an external ip you do not control to local network is a good idea for your own security.

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Add local DNS record to server
« Reply #2 on: July 06, 2017, 08:42:30 PM »
I have a cloud hosted software that uses DNS to resolve to it's servers. I need to add the following DNS record to resolved to the the specified address (this address is not on my lan but routing is in place to make it addressable from my lan).

DNS A record
 cerncomgmdbus01  104.170.179.71

I also have some DNS SRV records to add (these I really do NOT understand...)

_cerner_edc_qcf_cerncomg_prod   SRV (Service)   0   0   3506   cerncomgmdbus01   _tcp



Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Add local DNS record to server
« Reply #3 on: July 06, 2017, 08:54:30 PM »
This is a routable ip from the internet, you should not have to add it to local network unless you want anybody accessibg to this ip being able to access all your computers in your lan.


Sme uses djbdns tinydns server.
Here is a link to format correctly your entries for srv https://anders.com/projects/sysadmin/djbdnsRecordBuilder/#SRV

Here is the documentation for the a field https://cr.yp.to/djbdns/tinydns-data.html


You will have to enter them manually as a template-custom for /var/service/tinydns/root/data/

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Add local DNS record to server
« Reply #4 on: July 06, 2017, 08:57:08 PM »
See, that is why I asked... as usual, a much simpler answer than I came up with... :cool:

THANKS

Royce

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: Add local DNS record to server
« Reply #5 on: July 07, 2017, 06:33:53 PM »
I can't get it to follow my entry.....

I can get the entries to post from the templates to /var/service/tinydns/root/data and the entries look correct. However, when I NSLOOKUP from a workstation using the server as the DNS, It does not find the domain....

Is there a limitation on what I can add here? The names I am adding are in the following format;

cerncomgmdbus01

I have tried all the following

+cerncomgmdbus01:104.170.179.71

=cerncomgmdbus01:104.170.179.71

Looking at the data file already on the server, I have the following entry;

Code: [Select]
# A Records for domains
+backupserver:192.168.123.214

backupserver alone does not resolve either.

I need to get cerncomgmdbus01 to resolve without a domain appended to the end of it.... any suggestions?








Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Add local DNS record to server
« Reply #6 on: July 07, 2017, 07:04:08 PM »
For the a dns entry, you can set it from the server manager, hostname and address panel (use the type remote). For the srv entry, you'll need a custom template for /var/service/tinydns/root/data. See for example https://anders.com/projects/sysadmin/djbdnsRecordBuilder/ to generate the entry in tinydns format
C'est la fin du monde !!! :lol:

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Add local DNS record to server
« Reply #7 on: July 07, 2017, 07:45:15 PM »
I need to get cerncomgmdbus01 to resolve without a domain appended to the end of it.... any suggestions?

DNS doesn't deal in bare hostnames at all. It is a *Domain* Name System, after all. When programs work with bare hostnames, it is because the local resolver appends a default domain name. On linux systems, that is specified in /etc/resolv.conf.