Networking & Firewall · about 1 min · 2 steps
Remove a hosts entry
Removes a name from /etc/hosts, so this server looks it up in DNS again.
Runs on
- Debian / Ubuntu: supported
- RHEL / Fedora: supported
- Alpine: supported
What it changes on your server
- Removes the name from every line of /etc/hosts; a line left without names is deleted. The old file is kept with the run for 7 days.
- Refuses localhost and this server's own name.
What Shellbay asks you
Which name should be removed?
Enter the name exactly as it appears in /etc/hosts.
- Name
- Text, up to 253 characters
Example:
db.internal
Steps
- Update /etc/hosts
- Check the name is gone
Shellbay checks the server before the first step, and stops at the first step that fails.
When it's done
- ‹name› is no longer in /etc/hosts.