can i assign Hostname for my Router !

when i make a traceroute from my LAN, request first should Enter by my router and travel throught other routers .
i would like to give my router a hostname so i can see

1 2 ms 9 ms 9 ms www.mycompany.com [my router Ip]
2 148 ms 127 ms 129 ms 172.16.203.1
3 80 ms 122 ms 89 ms 192.168.67.122
4 100 ms 64 ms 79 ms 192.167.10.1
5 110 ms 72 ms 100 ms 192.167.10.2

It depends on how your PC’s network interface is configured for DNS. If you have administration access to the DNS then just add an “A” record for your MT router. Alternatively edit your local hosts file, assuming you’re running Windows 2000 or later, the hosts file is in the winnroot\system32\drivers\etc directory, where winnroot is usually c:\windows or c:\winnt.

yes Thanks it works ,
but it’s not efficient in this way i have to change all hosts file in all computer !!
is there anyway other way from the router itself !!

You only have to edit the hosts file on the computer you are doing the traceroute from.

You have a fundamental misunderstanding of how tracert/traceroute converts IP addresses to hostnames, it has nothing whatever to do with the target or intermediate systems. When using tracert on Windows or traceroute on Linux, IP addresses are converted to hostnames using the local host file or DNS lookup.

You only have two choices, add an entry to the local host file or add an entry to DNS. If you don’t have administrator access to your configured DNS or DNS for the domain(s) of the system(s) concerned, then you could setup your own local DNS. However, this is not a simple task, buy O’Reilly’s guide to DNS first.


Regards


Chris Macneill

Okay Thanks i understood , the issue was that , when i make tracert , i see some hostnames even if the domain is invalid ..so it’s configured DNS .. i will search for the book u mentioned .. Thanks Again

If you are using the DNS cache in your Mikrotik router, add a static entry for that address. Make it something like router.mycompany.com or your clients won’t properly resolve your website. Also block DNS queries from the outside world in firewall filter; this should be done in any case. Use ipconfig /flushdns in the win pc to see the changes.

in addition of using DNS cache, you can also redirect DNS query trafic to the DNS cache.
so, whatever DNS server configured in the client, they will do query to your DNS cache.

thanks GotNet , valens
It worked