Possible to assign a domain name an IP adress on a router?

2

Is it possible to assign a fixed adress for some hostname on a router? What I mean is not to assign IP adresses to a local machine, rather to sepcify an adress for some specific host (like google.com) so that it returns to all my local network the specified IP.

On a server machine I would add an entry in the hosts file, but how can I do this on a router? I'm running the ASUS-RT-N66U.

Devolus

Posted 2015-04-19T19:48:01.183

Reputation: 159

Answers

0

That router, running stock firmware, won't have the ability to edit the hosts file of the device. If it were running open firmware you might depending on the firmware. The best you can do is edit the hosts files of all the computers you need to redirect.

Nathanial Meek

Posted 2015-04-19T19:48:01.183

Reputation: 632

That's the problem. It's a Samsung TV, so I can't modify it there. :( – Devolus – 2015-04-19T20:15:38.327

1Would it be possible to use my Windows laptop as DNS server for the TV? I can specify the DNS on the TV, but how can I make my laptop act as the DNS? Is it enough to enter the IP in my local host file and give the IP as the DNS? Probalby not. – Devolus – 2015-04-19T20:18:37.693

1That'll be an involved process. Setting up BIND or Windows Server's DNS software is not the most trivial thing. You have to setup a DNS server to serve requests on your network (Manually set the DNS server on router to the server you setup in your LAN). You have to set the server up to go out on the internet and make DNS requests that it can't satisfy. You have to configure the DNS server to NEVER update its DNS Cache because this will overwrite the DNS entry that you explicitly set. Even then, the DNS server might be hardcoded into the TV (as is the case with Android phones). – Nathanial Meek – 2015-04-19T20:23:51.160