11-21-2016 03:43 PM - edited 03-05-2019 07:31 AM
Hello,
I am having difficulty figuring out how to disable the translating message that is displayed on the console every time the router does an external DNS resolution.
I am using Hurricane Electric's Tunnel Broker service, and due to having a dynamic WAN IP, I have to use the HTTP DynDNS update on my Cisco 1941. Part of that process is resolving the tunnelbroker domain to an IP address, and I get console messages EVERY time, and since I set the update to every 5 minutes, I get a lot of messages. I also find that unlike the rest of the messages that appear on their own line using the "logging synchronous" command, the dns ones tend to screw up my typing if I am working in the console at the same time.
This is an example of the message:
"Translating "ipv4.tunnelbroker.net"...domain server (206.248.154.22) (206.248.154.170)"
I have tried using "no logging console" as well as various other things, but the messages seems to appear no matter what I do.
Any suggestions?
11-21-2016 03:56 PM
conf t
no ip domain lookup
Please rate useful posts and mark answer as correct if applicable.
11-22-2016 07:39 AM
This is an interesting situation. The suggestion to disable domain lookup would seem on the surface to solve the question in the original post. If domain lookup is disabled then the message about translating would certainly not be generated. But if we look a bit more deeply the original post is indicating that they need the name resolution. They just want to eliminate the message on the console. So disabling domain lookup turns out to be counter productive.
I am surprised that no logging console did not stop the message. I would suggest that you might try setting the severity level for console logging at a level that would exclude the translating message. I do not remember the severity level for the translating message, but assuming that it is likely level 6 or maybe level 5 you might try setting the level for console messages to be level 4.
HTH
Rick
11-23-2016 06:41 PM
Correct, the first solution proposed may do exactly that, it will stop the message from appearing, however it will also break a lot of other things.
Interestingly, the messages appear on the console even when I am not logged in. I can open Putty on the serial port and messages will start to appear on screen without ever having hit a single keystroke.
It does this no matter what I seem to try. I have also as you suggested tried to amend the logging level to no avail. The messages seem to be out of phase with regular log messages, as they don't even show on my syslog server.
It only seems to be doing it as part of DDNS, as I also use a hostname for NTP and that doesn't show any resolutions at all...
Very strange indeed.
11-24-2016 06:25 AM
It is in the nature of the console port of an IOS router that if a device is connected to the console port that messages are displayed on the device whether or not the device is logged in to the router. So what you describe about messages displayed even when you are not logged in is an expected behavior.
If the messages do not show on your syslog server then it suggests that your adjustment of severity levels might be working. Can you post all of the commands from your router that deal with logging? (show run | inc log)
HTH
Rick
11-24-2016 06:25 AM
It would also be helpful if you would post the first couple of pages of the output of show log
HTH
Rick
11-24-2016 11:41 AM
Hi All -
Looking at the command reference reveals that IOS has a DNS View by default, and it has it's own logging mechanism. It looks like you can turn off the logging as follows:
ip dns view default
no logging
Command reference for DNS View
Command reference for DNS Logging
PSC
11-27-2016 06:40 AM
Hi Paul,
Thanks for the suggestion, however I am still getting messages about the translation occurring.
11-27-2016 08:15 AM
Alex,
just for clarification: how are you connected to the router ? Line 2 is the TTY, is that the one you are using ?
11-27-2016 06:46 AM
11-27-2016 07:20 AM
Thanks for posting both files. Each of them shows that the messages sent to the console should be limited to notifications (and more severe). I do not see in the logging file any messages about the translation. It might be helpful to see some of those to verify what severity level they are.
I am curious about the messages that are included in the logging file. They appear to be informational level messages. Was the show logging command executed on a console session or on some other type of session?
HTH
Rick
11-24-2016 09:53 AM
Hello,
on a side note, configuring the console with 'transport preferred none' keeps the device from translating as well. Not sure if this has any impact in your situation, you might as well give it a try:
1941(config-line)#line con 0
1941(config-line)#transport preferred none
04-04-2020 02:42 AM
Yes, great !!!.
03-24-2019 12:15 PM
try ctrl+shift+6
03-24-2019 07:16 PM
I wpuld try a logging synchronous or a term no mon.
Please do update this post with the solution if you found one.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide