cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2252
Views
0
Helpful
3
Replies

How to create DNS resolution on a local router to resolve to an https address.

Tsevya1
Level 1
Level 1

Hello Team,

Kinldy advise if you can assist with this inquiry:

 

our remote server can only be acces via https ( https://Portal@123.com). We installed this servers on multiple customers (different subnet).The customer access a portal  (https://Portal@123.com)  that points to the local server IP address 

 

issue: Our DNS server can only assign one IP address to a domain name for example:

Portal_1@123.com  ip  1.1.1.2

Portal_2@123.com  ip  2.2.2.2

Portal_3@123.com  ip  3.3.3.2

 

Our goal is to have each customer cisco router perform DNS resolution from https://Portal@123.com to the IP address of the server in their office .The DNS resolution shouold  be local so that every site/customer office  will have the same URL.https://Portal@123.com  We have to use a URL for HTTPS protocols.

 

 

 

any suggestion will be greatly appreciated

 

 

 

       

 

3 Replies 3

Mark Malone
VIP Alumni
VIP Alumni

Hi

i think these two docs below will help you set it up

 

https://www.cisco.com/c/en/us/support/docs/ip/domain-name-system-dns/24182-reversedns.html

 

https://www.cisco.com/c/m/en_us/techdoc/dc/reference/cli/n5k/commands/ip-host.html

 

ip host

To define static hostname-to-address mappings in the Domain Name System (DNS) hostname cache, use the ip host command. To remove a hostname-to-address mapping, use the no form of this command.

ip host name address1 [address2... address6]

no ip host name address1 [address2... address6]

Syntax Description

 

name

Hostname. The name can be any case-sensitive, alphanumeric string up to 80 characters.

address1

IPv4 address in the x.x.x.x format.

address2 ...address6

(Optional) Up to five additional IPv4 addresses in the x.x.x.x format.

 

 

Command Default

None

Command Modes

Global configuration mode

Command History

 
Release
Modification

5.0(3)N1(1)

This command was introduced.

 

 

Usage Guidelines

Use the ip host command to add a static host name to DNS.

Examples

This example shows how to configure a static hostname:

switch(config)# ip host mycompany.com 192.0.2.1
 

Related Commands

 
Command
Description

show hosts

Displays information about the IP domain name configuration.

Thank you for your timely response and advice.... I will test it on the customer LAN on Monday and I will update this post.


Regards,

We would like to access a remote server portla address View.CCC.net and we would like to user the same portal address on each office  locateion.Therefore, we were looking to see if we can have a router map the http address to an IP .. but all attemptes were unsuccessful. 

 

We tested this command on cisco 2800 and 2900, any suggestion will be greatly appreaciated.

 

Server IP 192.168.1.2
Domain name BBB.net
VRF AAA
HTTPS address View.CCC.net

!
ip domain lookup
ip dns server
ip host vrf AAA www.View.CCC.net 192.168.1.2
ip dns view vrf AAA default
ip domain name BBB.net
ip dns view vrf AAA default
ip dns primary BBB.net soa ns1.BBB.net View.CCC.net 21600 900 7776000 86400