0
votes
2answers
59 views

Is modifying /etc/hostname enough to change the hostname?

I was setting the hostname on my Linux machine with below steps: echo "ABCD" > /etc/hostname hostname -F /etc/hostname Exit from terminal or reboot system Now I can see the new hostname. Now my ...
-1
votes
1answer
50 views

Add 'www' entry to /etc/hosts

Using Windows and JetBrains IDEA; and trying to serve a hard coded .zip file for scala, since IDEA's plugin is hard-coded to a non-existent location on scala-lang.org. So I've added: 127.0.0.1 ...
0
votes
0answers
37 views

Unknown hosts between 2 computers

I have 2 computers with Linux running on them: ip: 192.168.0.1 hostname: COMPUTER1 ip: 192.168.0.2 hostname: COMPUTER2 ip: 192.168.0.3 the router I configured the /etc/hostname files with the ...
3
votes
1answer
1k views

Hostname resolution of Linux machines with static IP

I have couple of linux servers that I to assign static IPs to because I'm doing some CARPing and Vlans. The way my DNS server is set, it gets the hostnames dynamically from the nodes, as soon as ...
-1
votes
2answers
866 views

Point Multiple IP Addresses to a Single Host Name

Is it possible to have a single host name with multiple IP addresses? The hostname will be used to access a box in LAN with 192.168.x.y and from outside with IP w.x.y.z which is portforwarded to that ...
1
vote
1answer
626 views

Cygwin netcat nc doesn't resolve hosts through /etc/hosts

I'm trying to use ssh to log into remote servers, and I have a ProxyCommand setup in ~/.ssh/config to use a proxy (setup through PuTTY to connect to a VPN). The ProxyCommand uses nc to connect ...
1
vote
1answer
649 views

how to properly edit hosts, hostname and resolf.conf?

I have been searching the Internet for a real nop tutorial on the subject but could not found any direct info. on how to edit these files the proper way. I have a Debian Internet server that I use to ...
0
votes
1answer
608 views

Automated Windows host -> IP resolution over subnet on Mac

I have a few Windows computers and two Mac computers all on the same router. The Windows computers can find each other by hostname just fine, so for example a UNC path of \\HOSTNAME\SHARE would ...
4
votes
3answers
8k views

Hostname redirection using Hosts file

We can use C:\WINDOWS\system32\drivers\etc\hosts file to map hostname with IP addresses like this 127.0.0.1 localhost But is it possible to assign one hostname to another like this? ...
0
votes
1answer
3k views

How to redirect a domain to another one on my machine only?

I want all requests from my machine to example.com be redirected to example.com.edgesuite.net I tried adding the following line to the hosts file both on Windows and Linux ...