• Stars
    star
    1,603
  • Rank 29,196 (Top 0.6 %)
  • Language
    Objective-C
  • License
    GNU General Publi...
  • Created over 13 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

a Cocoa GUI for /etc/hosts

Hosts, a system preference pane to manage your hosts file

Hosts adds a preference pane to your system preferences which lets you toggle your host file entries on and off, as well as add and remove them.

Hosts.prefpane likes to keep your hosts file clean. When an entry is toggled off, it is not commented out in the hosts file, but instead stored in the app's preferences storage. This means you will have to uncomment all your unused host entries and untoggle them in the prefpane if you want to use them. Comments are treated as comments and will never show up in the list of host entries!

Of course Hosts.prefpane will detect edits you made to the /etc/hosts directly and merge them into the listing.

Backups of your hosts file are made in ~/Library/Application Support/Hosts. The backup or your hosts file from before you started using Hosts.prefpane is called hosts.orig and each session a backup is made called hosts.session.

The default host entries that are needed by the OS are hidden and can not be edited using Hosts.prefpane.

Many thanks to the contributors for helping getting the latest release done!

Download

For now you'll find the latest pre-built preference pane and the app on Dirk-'s website. Hosts App 1.4.5.zip includes the app which can be used from any location on your disk. Hosts PrefPane 1.4.5.pkg is an installer for the preference pane. It will get installed into /Library/PreferencePanes, so you have to enter your admin credentials during installation. The installer is neccessary for macOS Catalina, since all executables have to be notarized, and you cannot notarize a preference pane.

Development hints

Compiling the parser

To compile the parser protion of the Hosts PrefPane, you need to have bison installed somewhere. The current compiler setting expects bison to be in /usr/local/opt/bison/bin/. This is where Homebrew installs it (brew install bison).

Catalina Installation

Preparing the app for installation on Catalina (macOS 10.15) or higher is straightforward. Just "Archive" the app from Xcode and go through the normal notarization process.

Preparing the preference pane for installation on Catalina is not that easy. You have to build an installer by using command line tools and deal with all the right developer certificates. Here is a good description of the process using a command line tool as an example project.

Licence

Hosts, a system preference pane to manage your hosts file.
Copyright (C) 2011  PermanentMarkers

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Contact maintainer at [email protected]

More Repositories

1

django-easymode

Quickly build backends for flash/flex websites with Django.
Python
33
star
2

django-finegrained-permissions

Permissions per field instead of per model for django
Python
11
star
3

debianize.sh

Create debian packages from python packages, without all the fuss.
Shell
11
star
4

as3-mixin

Nifty tricks with as3-mixin, mixin functionality for as3
JavaScript
9
star
5

as3-injector

AS3 Dependency Injector
ActionScript
9
star
6

socket.io.stresstest

Stresstest client in c++ for socket.io
C++
8
star
7

puppet-kicker

Cross server puppet notifications
Ruby
6
star
8

python-rfc5424-logging-formatter

A Logging Formatter for Python's logging module to properly handle Syslog RFC5424 messages
Python
6
star
9

as3-callatevent

Do not pollute your class files with event handlers. callAtEvent can create them for you!
ActionScript
5
star
10

pm.recipe.debianize

Buildout recipe to create debian packages from python packages.
Python
5
star
11

python-formulaparser

Parse an arithmetic formula from a string
Python
4
star
12

django-polymorphic-easymode

Infinite power with django_polymorphic and django-easymode
Python
4
star
13

django-sortedsettings

Sort the django settings module's entries alphabetically
Python
4
star
14

pytailor

Turn a naked apple osx 10.6 machine into a python development machine.
Shell
3
star
15

wagtail-extendedsearch

Add some more functionality to the wagtail elasticsearch search backend
Python
3
star
16

robotlegs-dungdungdung

Elegant as3 object factory and databinding
ActionScript
3
star
17

bashyucksyntax

make fabric show the commands it runs
Python
2
star
18

configtype

Load configfile as a type, so you can reference it anywhere using import without worrying about threads and processes.
Python
2
star
19

seo-ville-slugger

This storage backend stores files named after their hash value and adds a symlink with the original name. No duplication and you can SEO your heart out.
Python
2
star
20

django-dedupe-backend

This django storage backend will save you some storage space.
Python
2
star
21

crea-meta

Being creative with metaclasses
Python
2
star
22

.emacs.d

emacs config
Emacs Lisp
1
star
23

voxin

A tornado example
Python
1
star
24

buildout-bash-completion

Plone conf 2012 buildout bash completion
Python
1
star
25

specialunderwear.github.com

github home page
1
star