Hey everyone,<\/p>\n
So here is the situation. I am connected to a remote location by client VPN. At this site I have three domain controllers that are also DNS servers. Once I connect into VPN I have to use IP address to remote into individual machines. I have checked the DNS manager on my main domain controller DC201 and there are PTR records for each machine in reverse zone and forward zone along with their correct static IP. I have created cname records and aname records for several machines and still cannot connect by host name. I have gone onto member machines and done /flushdns then /registerdns using ipconfig. No matter what I do I have to use an IP to connect to each machine. At the moment it isnt a problem as I am the only one using the machines and I know all the IPs but when coworkers start using this site they need hostname connection. What have I missed? Obviously something is going wrong. Also, Ive tried connecting using FQDN… Hostname.my.domain.com<\/a><\/p>","upvoteCount":3,"answerCount":15,"datePublished":"2020-01-16T15:44:37.000Z","author":{"@type":"Person","name":"danwes32","url":"https://community.spiceworks.com/u/danwes32"},"acceptedAnswer":{"@type":"Answer","text":"
Haven’t been called Beeker in a while, thanks for the memories, Troy. Don’t add a DNS server address manually to your adapter. When you connect, the remote Fortigate router is going to push DNS servers to your client and potentially override whatever you have there (depending on a series of other settings).<\/p>\n For this to work correctly, configure the Fortigate.<\/p>\n Hey everyone,<\/p>\n So here is the situation. I am connected to a remote location by client VPN. At this site I have three domain controllers that are also DNS servers. Once I connect into VPN I have to use IP address to remote into individual machines. I have checked the DNS manager on my main domain controller DC201 and there are PTR records for each machine in reverse zone and forward zone along with their correct static IP. I have created cname records and aname records for several machines and still cannot connect by host name. I have gone onto member machines and done /flushdns then /registerdns using ipconfig. No matter what I do I have to use an IP to connect to each machine. At the moment it isnt a problem as I am the only one using the machines and I know all the IPs but when coworkers start using this site they need hostname connection. What have I missed? Obviously something is going wrong. Also, Ive tried connecting using FQDN… Hostname.my.domain.com<\/a><\/p>","upvoteCount":3,"datePublished":"2020-01-16T15:44:37.000Z","url":"https://community.spiceworks.com/t/having-rdp-and-dns-issues/746915/1","author":{"@type":"Person","name":"danwes32","url":"https://community.spiceworks.com/u/danwes32"}},{"@type":"Answer","text":" Is your VPN server providing you with one or two domain controllers as your VPN assigned DNS server? For this to work you need to see the Domain Controllers when you run “ipconfig /all<\/strong>” after you are connected to VPN.<\/p>\n Even FQDN will not work if you’re connecting to the wrong DNS server that does not know about that internal domain.<\/p>","upvoteCount":1,"datePublished":"2020-01-16T15:48:38.000Z","url":"https://community.spiceworks.com/t/having-rdp-and-dns-issues/746915/2","author":{"@type":"Person","name":"gerardbeekmans","url":"https://community.spiceworks.com/u/gerardbeekmans"}},{"@type":"Answer","text":" Fortinet SSL VPN Virtual Ethernet Adapter<\/p>\n Ok I just added the DNS server ip at my remote location to the above VPN adapter im connected to, which is listed above.<\/p>","upvoteCount":0,"datePublished":"2020-01-16T16:00:55.000Z","url":"https://community.spiceworks.com/t/having-rdp-and-dns-issues/746915/3","author":{"@type":"Person","name":"danwes32","url":"https://community.spiceworks.com/u/danwes32"}},{"@type":"Answer","text":" What Beeker up there said. If you’re remoting into a separate domain, your computer is probably looking at your local DNS server for those remote IPs, which it probably doesn’t have. You could manually enter them, or if that remote site is a child of, or otherwise connected to your main domain, you might be able to get the remote DNS to share the info with your local DNS server(s). Beyond that, it’s IP addresses only.<\/p>","upvoteCount":0,"datePublished":"2020-01-16T16:02:02.000Z","url":"https://community.spiceworks.com/t/having-rdp-and-dns-issues/746915/4","author":{"@type":"Person","name":"tjollimore","url":"https://community.spiceworks.com/u/tjollimore"}},{"@type":"Answer","text":" Ah thank you guys. I will work on trying to get that figured out.<\/p>","upvoteCount":0,"datePublished":"2020-01-16T16:26:59.000Z","url":"https://community.spiceworks.com/t/having-rdp-and-dns-issues/746915/6","author":{"@type":"Person","name":"danwes32","url":"https://community.spiceworks.com/u/danwes32"}},{"@type":"Answer","text":" Yeah the domains are in no way connected at the moment. I have a site to site VPN connection set up im just waiting on word to turn it on.<\/p>\n So I got on the fortigate and added the DNS server ip addresses to the fortigate vpn and created a firewall policy to allow DNS buuuuut it still didnt work. At least not yet. Maybe as I flush and register dns addresses it will start to work.<\/p>","upvoteCount":0,"datePublished":"2020-01-16T16:40:12.000Z","url":"https://community.spiceworks.com/t/having-rdp-and-dns-issues/746915/7","author":{"@type":"Person","name":"danwes32","url":"https://community.spiceworks.com/u/danwes32"}},{"@type":"Answer","text":" It did not work meaning you can’t resolve any records, or just not the ones you are interested in?<\/p>\n First make sure that over VPN you are in fact using the remote DC IP address. Run “ipconfig /all” and double-check that the VPN adapter only<\/strong> has DC/DNS IP addresses.<\/p>\n Next you can do a direct DNS query to make sure it’s functional at least:<\/p>\n If you do not get a result, then the Fortigte might still be blocking the traffic. On Fortigate CLI you can run something this to check:<\/p>\n It will show you the traffic flow in and out through the interfaces. You should see an incoming packet, then a matching outgoing one to the interface where your DNS server is on and then a reply coming in from DNS server’s interface and back out to the client.<\/p>\n If you don’t see the traffic flow like this, inspect your Fortigate firewall rules.<\/p>","upvoteCount":0,"datePublished":"2020-01-16T16:50:13.000Z","url":"https://community.spiceworks.com/t/having-rdp-and-dns-issues/746915/8","author":{"@type":"Person","name":"gerardbeekmans","url":"https://community.spiceworks.com/u/gerardbeekmans"}},{"@type":"Answer","text":"
<\/p>\n
\n
nslookup dnsipaddress active-directory-domain.com\n<\/code><\/pre>\n
diagnose sniffer packet any 'host vpn-client-ip and host dns-ip and port 53' 4\n<\/code><\/pre>\n