Need help with DNS setup

LuckyTaxi

Diamond Member
Dec 24, 2000
6,044
23
81
I finally got around to installing a DNS server after many years of using the HOSTS file.
Using Fedora, I installed BIND and got everything to work perfectly along with a secondary DNS server. Here's the issue I'm having now. Let's say our servers have abc.com as the domain, but our external DNS is handled by register.com who is also our registrar. We have a couple of subdomains that have A records with register.com, which then gets NATed to our internal IPs via our firewall rule. We can get to subdomain.abc.com just fine from inside and outside. However, the issue is when users try to access internal servers from home that do not have DNS entries with register.com. So subdomain1.abc.com can only be accessible from within the office and from the outside via VPN. Why not just NAT them like the ones that currently work? Because we don't have enough IPs and our servers use the same port for most of our servers. We just have our important things that are register with A records w/ register.com

The main issue is we use PPTP to connect from home. The binding order doesn't work correctly so my laptop never hits my PPTP connection's DNS entries. It goes out to look for subdomain1.abc.com from the register.com's DNS server and dies. If it were able to query the local DNS, all would be well.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You're using abc.com both internally and externally? If so, that's the root cause of you problem.
 

Red Squirrel

No Lifer
May 24, 2003
71,312
14,084
126
www.anyf.ca
If possible change all your local stuff to domain.com.loc style. At my house I can time mysite.com to get online, or I can type mysite.com.loc to load my local copy. I try to have pretty much all my domains setup this way for easy development.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Good luck with that, the simplest option is probably just to keep the domains in sync manually.