Frank1940 Posted March 30, 2017 Share Posted March 30, 2017 You could also try the echo command in the go file and see what happens. Print out the present /etc/hosts file for reference, add the line and reboot the server. Then look at the file again and verify that the file was properly updated. Quote Link to comment
Squid Posted March 30, 2017 Share Posted March 30, 2017 Its basicallyexactly what bonienl stated #description=Add to hosts file echo "192.168.111.10 hostname.mydomain.com" >> /etc/hosts placed on the flash drive called script within /config/plugins/user.scripts/scripts/someFolderName and set to run at array start See 1 1 Quote Link to comment
CHBMB Posted March 30, 2017 Share Posted March 30, 2017 Just run the command @bonienl wrote out but run it within the user scripts plugin at array start. 1 Quote Link to comment
squirrellydw Posted April 1, 2017 Author Share Posted April 1, 2017 (edited) thanks I will give it a try. I assume I change the IP correct Edited April 1, 2017 by squirrellydw Quote Link to comment
CHBMB Posted April 1, 2017 Share Posted April 1, 2017 4 hours ago, squirrellydw said: thanks I will give it a try. I assume I change the IP correct Yep Quote Link to comment
squirrellydw Posted April 2, 2017 Author Share Posted April 2, 2017 thanks, it worked Quote Link to comment
thaddeussmith Posted August 19, 2017 Share Posted August 19, 2017 Will modifying the hosts file in this manner impact docker traffic? I run plex as a docker and wish to redirect traffic from their stats collection in light of their upcoming EULA changes, but cannot easily do so at the firewall. Quote Link to comment
blueboyscout325 Posted August 24, 2020 Share Posted August 24, 2020 On 8/19/2017 at 6:51 PM, thaddeussmith said: Will modifying the hosts file in this manner impact docker traffic? I run plex as a docker and wish to redirect traffic from their stats collection in light of their upcoming EULA changes, but cannot easily do so at the firewall. Did you find a way to do this? I am also trying to accomplish this and the method above doesn't seem to work from what I've tested with a dnsutils docker container. Quote Link to comment
thaddeussmith Posted August 25, 2020 Share Posted August 25, 2020 Never did, then stopped caring about the stats collection. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.