Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#3639 closed bug (invalid)

bindings in /beos/etc/hosts should take precendence over dns

Reported by: rossi Owned by: axeld
Priority: normal Milestone: R1
Component: Network & Internet Version: R1/Development
Keywords: Cc: mdisreali@…
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

On every other OS I use, I can override DNS resolution by adding appropiate entries in my local hosts file.

Nescessary, because my router does weird stuff when accessing internal machines, which are also visible to the outside and have a valid dns entry. Example:

I have an internal webserver, which is exposed to the internet, from the outside I can access this server using www.example.com, from the internal network using the IP address works fine, but the name always resolves to the external IP of my router ...

As said, all other OS I use (Mac OS X and Linux) correctly resolv the name to the internal IP address if included in the local hosts file.

Just using the IP address internally doesn't work, as I do use a lot of vhost magic within apache, which depends on the names and I can't duplicate all the magic using the IP address, as it is always the same ...

Change History (7)

comment:1 Changed 10 years ago by Disreali

That is the same location that I used on BeOS in the past. I have not yet tried it, but it seems logical to me that /boot/home/config/etc/ might work.

comment:2 Changed 10 years ago by Disreali

Cc: mdisreali@… added

comment:3 Changed 10 years ago by Disreali

This issue is now more complicated, as there are /boot/beos/etc/, /boot/home/config/etc/, and and the new /boot/system/etc/ directories. I have not experienced my hosts file working in any of those locations.

comment:4 Changed 10 years ago by Disreali

What is the standard directory to place for hosts files? I still experience this issue of my hosts file being ignored when I have a copy in both /boot/system/etc/ and /boot/home/config/etc/. Is there another folder that the hosts file need to go?

comment:5 Changed 10 years ago by axeld

Currently, it should go into /etc - which works fine over here. At some point in the future, it will join the other network files at /boot/common/settings/network/, though.

comment:6 Changed 9 years ago by aldeck

Resolution: invalid
Status: newclosed

The hosts file should now be located in /boot/common/settings/network/

Should we put an empty "hosts" file there so that people coming from unixes can search it? (cf. newcomer on IRC)

closing as invalid as nothing had to be fixed really.

comment:7 Changed 9 years ago by axeld

Version: R1/pre-alpha1R1/Development

An empty hosts file wouldn't do, as you would at least need to have an entry for localhost in there :-)

Otherwise I wouldn't mind doing so.

Note: See TracTickets for help on using tickets.