Author Topic: DNS Resolving  (Read 817 times)

dragonz

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
DNS Resolving
« on: June 04, 2018, 07:10:38 pm »
I've this situation:
Local domain:  mydomain.lan
Remote domain: mydomain.com
My zentyal is: zentyal.mydomain.lan with ip 192.168.0.50

My zentyal from remote: zentyal.mydomain.com with ip 69.xx.xx.xx

I'm searching a way to force the PC on local network to resolve zentyal.mydomain.com to 192.168.0.50

Thanks

dragonz

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: DNS Resolving
« Reply #1 on: September 24, 2018, 11:37:52 am »
With the old version, just create a second domain with the same ip of the primary.

With version 5.1.1 it goes into error that the ip is already present in the other domain.

Is there a way to specify the record A in the DNS server?

Thanks
« Last Edit: September 24, 2018, 02:10:49 pm by dragonz »

gabriel.gheorghiu@abt.ro

  • Guest
Re: DNS Resolving
« Reply #2 on: September 28, 2018, 05:29:09 pm »
Hi,

I had the same issue.
You must go to /etc/zentyal/ and open/edit dns.conf:

Change "allow_duplicated_ips = no" to "allow_duplicated_ips = yes"

==================================
# This file contains the most basic settings, most other stuff is configured
# using the web interface.
#
# Everything after a '#' character is ignored
#
# All whitespace is ignored
#
# Config keys are set this way:
#
# key = value
#
# They may contain comments at the end:
#
# key = value # this is ignored

# Internal networks allowed to do recursive queries
# to Zentyal DNS caching server. Local networks are already
# allowed and this setting is intended to networks
# reachables through static routes.
# Example: intnets = 192.168.99.0/24,192.168.98.0/24
intnets =

# This key control the automatic reverse zone generation
# Set to 'no' to disable it
generate_reverse_zones = yes

# This key defines whether you want to sort the results based on the querying IP
# Comment it to disable it
sortlist = yes

# Setting this key to 'yes' allows to add IP addresses already present
# in other hosts or domains
allow_duplicated_ips = yes
==============================

Kind regards,
Gabriel

dragonz

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: DNS Resolving
« Reply #3 on: October 02, 2018, 09:26:46 am »
It works!! Thanks a lot!

gabriel.gheorghiu@abt.ro

  • Guest
Re: DNS Resolving
« Reply #4 on: October 02, 2018, 12:19:31 pm »
Glad to help you!

Best regards,
Gabriel