NethServer Version: NethServer release 7.3.1611 (Final) Module: DNS
Hi Everyone,
I installed a fresh NS7 final on a laptop to test out.
The internal network is behind a pfsense. NAT Port 80 and 443 is pointing to the nethserver internal IP.
Installed the following components:
Account provider: Samba Active Directory
File server
FTP server
Instant messaging
MariaDB (MySQL) server
Nextcloud
SOGo groupware
Virtual machines manager
Web server
If i go to “Applications” on the GUI and click on “open” at each, they all open a new tab with the relevant page with the internal IP address.
Tested from external network with mydomain.com (i.e mydomain.com/nextcloud) they all work.
Now my problem is that on the internal network non of the applications work with mydomain.com.
Entering mydomain.com/nextcloud or mydomain.com/SOGo returns “Unable to connect”.
If i enter the hostname that i set during setup (server.mydomain.com), then they all work. This is not the best cause like this email accounts setup on phones wont work, or the nextcloud sync app wont work either on the intranet.
I tried to set under DNS in the GUI a host pointing mydomain.com to the Server IP Address, but that results in an error Page when i go to “Users and goups” presenting the error: Account provider connection refused.
Same happens if i set the server alias instead. When i remove the host or the alias, then the “Users and goups” work again, but have the same problem then before with mydomain.com.
Runnig a tracert it does 1 hop to the IP of the Dc i used during setup of samba.
Can anyone please help me how i can achieve that the mydomain.com resolves to the IP address of the server on the intranet?
Thank you very much for the response.
Maybe there is no issue just my lack of networking knowledge. I tried to add the DNS record in the format of www.mydomain.com. That works, but i wanted to avoid that i have to type the url with the www prefix, though i never tried if it would resolve without it. I am away now, but will test later.
Tried to access test.com from intranet, but still “unable to connect”.
I searched on the nethserver and found the file /etc/httpd/conf.d/virtualhosts.conf.
The structure looked the same as in the article you gave me, so despite the warning I modified it and rebooted the server.
Both, test.com and www.test.com were inaccessible, so I reverted the change I made and rebooted again. If I create the the alias under DNS, the test.com is accessible:
I am so happy, i nearly jumped out of my trousers. After fiddling around for days, this worked like a charm
Setting the domain as host didn’t work, but as alias did. I created a host entry in DNS with a different domain name pointing to the NS, and that worked too, just to make sure host setting works in general.
Thank you very much for the great help