Add DNS mapping to router

Unanswered Question
Jun 21st, 2010

Complete networking newbie here, so I'm sure I'm asking something stupid, but I promise I've spent a lot of time searching before asking the question.

All I want to do is have it so that my router (Cisco SR 520) will resolve a hostname to a local IP. The "ip host" command will do this on the router, but I want it for every connected client.

e.g. ip host fileserver 192.168.1.50

And then when a client connects to the router it is able to connect to the fileserver using the hostname rather than the IP. I guess this needs to be done at the DNS level, but any messing around with "ip dns server" doesn't seem to have worked either.

Thanks for your help.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Richard Burts Mon, 06/21/2010 - 04:48

Adam

I am not familiar with the SR520 but in most IOS routers what you want is accomplished with ip name-server

Can you give that a try and let us know if it works.

HTH

Rick

adamtay82 Mon, 06/21/2010 - 05:36

Thanks for responding.

I do have an ip name-server line in my configuration that points to my ISP's DNS servers, but I want to add a custom record that will resolve a new hostname to a specific computer.

e.g.

ping mymadeupname

That this would then ping computer 192.168.1.50, a computer on my LAN.

Richard Burts Mon, 06/21/2010 - 09:03

Adam

I am having some difficulty in figuring out what you are really trying to accomplish and providing a good answer that satisfies your requirements is dependent on understanding what your requirements really are.

- In some of your discussion it sounds like you want to resolve names for the router. In that case the alternatives that work are configuring names servers on the router (which apparently you have done) and configuring ip host on the router for the clients on the LAN.

- And then sometimes it sounds like you want to resolve names for the clients in which case the optimum solution is to provision an internal DNS server on your network.

- or are you trying to accomplish having the clients resolve names using the router as the DNS server?

Perhaps you can clarify what the real objective is.

HTH

Rick

adamtay82 Mon, 06/21/2010 - 23:46

Yes, please excuse me - my unfamiliarity with this stuff is meaning I'm making a mess of explaining what i'm trying to do.

I want the client's to resolve names, and given the abscence of a DNS server, I'm hoping the router can do this.

So let's say we have:

- ClientA

- ClientB

- Router

I want a situation where on ClientA I am able to type "ping ClientB", and it will resolve ClientB to ip address 192.168.1.50

Hope that makes sense.

Adam

Actions

This Discussion