dns - linux: adding hosts programmatically? -


Is there a way to add a programmable host to a local name resolver under Linux?

I, rather

example: add the name foo and wrap it in local port 127.1.2.3

Use the case: I have a locally accessed app through a web browser, I want to make this application accessible through a local URI.

Add the name foo and local port 127.0.0.1: Tie 99 99

What do you want this? You can add foo 127.0.0.1 to your nameservers or equalize, but connections to foo on port 1234 will always go to 127.0.0.1:1234 < It is not possible to redirect / code> - Port 9999 based on the name, which is lost in time.

On Linux, add the IOP to the loopback device (i.e. Ip addr 127.1.2.3 Dev , and then 127.1.2.3:1234 to replace all the connections in 127.0. Use to go to 0.1: 99 99, but I can not tell with your question that if you want to see the observation behavior.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -