D-Link Forums

The Graveyard - Products No Longer Supported => D-Link NetDefend Firewalls => Topic started by: KevFire on July 15, 2015, 02:24:05 AM

Title: Resolve Domain Name to Local Internal IP Address
Post by: KevFire on July 15, 2015, 02:24:05 AM
Hi Everyone. Hope you well.

I have a Dlink DFL-260E firewall which is behind a Cisco router which handle the internet connection. DNS relay is setup and Everything is work well.

Can anyone guide me on how to resolve a domain name to a local ip address.

I have a windows webserver e.g.. 192.168.1.252.  I want, when users on the local network go to a certain domain e.g. (test.testing.com) to be resolved to the
local IP 192.168.1.252.

I would appreciate your assistance very much.

Thank you.
Elton

Title: Re: Resolve Domain Name to Local Internal IP Address
Post by: PacketTracer on July 21, 2015, 03:57:16 PM
Hi Elton,

Quote
DNS relay is setup.

According to the DFL-260E manual (ftp://ftp2.dlink.com//PRODUCTS/DFL-260E/REVA/DFL-260E_MANUAL_2.60.02_EN_US.PDF) the DFL-260E doesn't have a DNS relay function. Hence I guess the DNS relay function is located on your Cisco router?

DNS resolution of local host names (e.g. your local webserver 'www' or any other local host name) inside some freely definable unregistered local domain (e.g. 'home.local') can only be provided by a local DNS server that is authoritative for the forward lookup zone 'home.local' and the corresponding reverse lookup zone 1.168.192.in-addr.arpa (according to your LAN network 192.168.1.0/24). This local DNS server would then resolve 'www.home.local' to your local webserver's IP address 192.168.1.252 and vice versa, given the DNS zone files include the corresponding resource records:

Zone file home.local:

$ORIGIN home.local.
@                IN SOA    ...
                 IN NS     ns.home.local.
ns               IN A      192.168.1.253
www              IN A      192.168.1.252


Zone file 1.168.192.in-addr.arpa:

$ORIGIN 1.168.192.in-addr.arpa.
@                IN SOA    ...
                 IN NS     ns.home.local.
253              IN PTR    ns.home.local.
252              IN PTR    www.home.local.


Let's say you setup such a local DNS server 'ns.home.local' which resides on a host with the IP address 192.168.1.253. The following configuration steps should provide a solution:

PT