cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1591
Views
0
Helpful
2
Replies

Using host name instead of IP address

p.jestin
Level 1
Level 1

Hi,

When using command such as "ntp server", "snmp-server host" or "radius-server host" with the DNS name to specify the host, IOS seems to perform an automatic DNS lookup and places the resolved IP address in the configuration file.

In order to perform a network migration, we want to permform change on the DNS without changing all the equipment configuration file with IP address for NTP, SNMP or Radius server.

Do you know how force IOS to record the hostname witout doing static DNS lookup in the configuration file?

The "no ip domain-lookup" command cannot do this, as I want to use DNS.

Thank you for any useful assistance

Regards,

Patrick.

2 Replies 2

ruwhite
Level 7
Level 7

There's no way to do this as far as I know.... You could save off the config in a tftp server, and reload it to the router when you do a migration, so it would be forced to re-resolve.

Russ

doug.lockwood
Level 1
Level 1

To expand on the last answer, see if you can place the names in the startup config by tftp. Then, every time the router boots, the config will resolve the names again. I have never tried this, but its worth a try.

The down side of this is you can't save changes to the config without re-tftping the config to the router with the updated info.

HTH

Doug