Closed
Bug 197496
Opened 22 years ago
Closed 22 years ago
Camino won't use NetInfo defined machine names if DNS is not active
Categories
(Camino Graveyard :: General, defect)
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 194476
People
(Reporter: paul.mozilla, Assigned: saari)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3b) Gecko/20030210
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3b) Gecko/20030210
I just noticed that Camino 0.7 shares this unresolved bug with mozilla 1.3b
http://bugzilla.mozilla.org/show_bug.cgi?id=194476
Basically, if you start up Camino when not connected to the network, lookups for
NetInfo based machine names fail. This doesn't occur with IE, Safari, or
Chimera 0.6, but it does with Mozilla 1.3b and Camino 0.7.
Reproducible: Always
Steps to Reproduce:
Copied from the mozilla bug:
There is a short article here about how to setup machine names in OSX under
NetInfo. It is basically the MacOS way to use a hosts file.
<http://www.evolt.org/article/comment/18/13138/>
Here's a more command line sort of way (you must be root or use sudo):
niutil -create / machines/fly.ing.quetzal
niutil -createprop / machines/fly.ing.quetzal ip_address 127.0.0.1
niutil -createprop / machines/fly.ing.quetzal serves ./local
Now setup an apache host:
vi /etc/httpd/httpd.conf
In apache, you need to uncomment the NameVirtualHost directive and set to 127.0.0.1:
NameVirtualHost 127.0.0.1
Then setup a vhost as so:
<VirtualHost fly.ing.quetzal>
ServerAdmin paul@burney.ws
ServerName fly.ing.quetzal
DocumentRoot /web/quetzal
</VirtualHost>
(Making sure that DocumentRoot points to a real location)
Restart apache:
apachectl configtest
apachectl restart
Point a browser to the location:
http://fly.ing.quetzal/
lynx fly.ing.quetzal
And you should see the directory contents/index page of that directory.
I remember that in previous versions of OSX, you had to manually setup an
/etc/lookupd/hosts file and then populate it for netinfo to work correctly with
local machine names. Mine looks like this:
LookupOrder = Cache FF NI DNS NIL
ValidateCache = NO
When I do an `nslookup` for the fake domain on the command line `nslookup
fly.ing.quetzal`, it fails, but browsers pick it up just fine. When not
connected to the network, other browsers still find it just fine, except Mozilla
1.3b/1.4a (1.2.1 worked, if I recall correctly).
Hope that helps.
Actual Results:
No connection to locally served web sites
Expected Results:
talked to netinfo and sent the request to localhost with the correct host name.
I was hoping someone on the Camino team would be more familiar with DNS
resolution on Mac OS X and would be able to help the Mozilla guys out with this
issue. It really affects me because I use Camino and Moz for local web
programming and development. If I'm on a train and Camino crashes, I need to
switch to Safari or IE (yuch!)
Comment 1•22 years ago
|
||
this is a dupe of bug 194476. theres no need to file an extra bug on the Camino
product. (same folks usually get around to both)
*** This bug has been marked as a duplicate of 194476 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•