Skip to content

Commit

Permalink
Make our own hostname resolvable
Browse files Browse the repository at this point in the history
  • Loading branch information
ezdiy committed Sep 27, 2020
1 parent 428baf3 commit 2c9dc33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions svc/etc/init.d/00-net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ ifconfig lo up 127.0.0.1

# cca 100 seconds to drop dead tcp sessions
sysctl -w net.ipv4.tcp_retries2=9

# fix for slow smb mounts etc
umount /etc/hosts
(cat /etc/hosts;echo 127.0.0.1 `hostname`) >> /var/tmp/hosts
mount -o bind /var/tmp/hosts /etc/hosts

0 comments on commit 2c9dc33

Please sign in to comment.