OPNsense Forum

English Forums => General Discussion => Topic started by: baz on January 22, 2023, 01:44:57 am

Title: How to use DNS of host network when accessing host services from remote machine?
Post by: baz on January 22, 2023, 01:44:57 am
I am connecting two sites through a peer-to-peer OpenVPN connection. I am able to access machines in the host network from the remote network by IP, however I am unable to access those same machines by name.

How can I tell my remote machine to use the host's DNS when trying to access host sites?
Title: Re: How to use DNS of host network when accessing host services from remote machine?
Post by: bartjsmit on January 22, 2023, 10:20:54 am
You need to set up DNS servers that hold zone(s) with A/CNAME records for hosts on both sites. Some multi-master DNS systems exist (notably Microsoft AD integrated DNS) but you generally have to set one primary DNS and replicate to a secondary on the other site. This includes static and dynamic DNS updates. Don't forget to allow both TCP and UDP 53 since the protocol requires both.

A great next step is to read 'DNS and BIND' from O'Reilly (a.k.a. the Cricket book). It is an important skill to master in IT. Don't forget the sysadmin's haiku: https://www.cyberciti.biz/humour/a-haiku-about-dns/  8)

Bart...