Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: Paulo on March 25, 2013, 09:10:23 AM
-
Hi all
I need to modify (add to) my hosts file but according to the wiki, the /etc folder is not persistent between boots.
Not a problem as I can create a script that appends to it at boot time.
However I see that the hosts file is a mix of ipv4 and ipv6 stuff, can I add ipv4 stuff at the end of the hosts file?
For example my hosts file looks something like this:
127.0.0.1 box localhost
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
then a bunch of IPv6 related lines.
Can I append to the end of the file with lines like this:
0.0.0.0 SomePeskyAdServer.com
0.0.0.0 AnotherAdServer.net
Thanks.
-
OK, tried it out and works like a charm ;)
-
My hosts file happens to be 500Kb+ in size and 15000 lines+ in length.
Storing it on same partition as persistent tcedir and symlinking it to /etc/hosts, while including the symlink in backup works fine for me.
Before symlinking I had prepended the content of default /etc/hosts to my personal file.
-
Hi tinypoodle
My hosts file happens to be 500Kb+ in size and 15000 lines+ in length.
Wow, you must really hate adverts :)
Seriously, symlinking is a good idea.
Thanks.