Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > TCP/IP Host File

TCP/IP Host File
Thread Tools
Junior Member
Join Date: Dec 1999
Location: Chandler, Arizona
Status: Offline
Reply With Quote
Dec 12, 2000, 06:41 PM
I'm here at work... I work at a software company. the current software I am testing here is KwikTag (www.kwiktag.com) an internet based software. The only problem is, in order ot test the software in house, I must be able to set a host file that would contain the in house regression server IP addresses, and the hostmask that they would be.

I know that the TCP/IP control panel has an option to 'select a hosts file', but what format does this file have to be in? I tried the format that the windows machines use:

"xxx.xxx.xxx.xxx hostmask"

but that's not working.

Any help would be greatly appreciated.
Dedicated MacNNer
Join Date: Nov 1999
Location: Georgetown, Demerara, Guyana
Status: Offline
Reply With Quote
Dec 13, 2000, 12:21 AM
Hi Jericon,

There's some detailed information on the format of the Hosts file at the end of Apple's TIL article Open Transport: TCP/IP Configuration. As noted in the article, the format is based on a subset of the DNS Master File Format which is described more formally in the official Request For Comments (RFC) 1035, Section 5 (starting on p. 32).

Per RFC 1035, note that the domain/host name usually precedes the IP address, not the other way around. (Actually, the order should be the same on Windows as well.) There's also usually a "type" code between the two items (e.g., A for 'Address').


Senior User
Join Date: May 2000
Location: Australia
Status: Offline
Reply With Quote
Dec 13, 2000, 09:15 PM
Here's a portion of my Hosts file.

It's just a simpletext document with the following format:

ak.cache.imgis.com A
ads25.focalink.com A
adforce.imgis.com A
view.avenuea.com A


(This host file I use for getting rid of banners in hotline)
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Privacy Policy
All times are GMT -4. The time now is 02:11 PM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2