Re: Maybe useful if you use a laptop for web dev...



On 25/11/05 2:13, in article BFACCC84.E1F0%bingbong@xxxxxxxxxxx, "Bonge
Boo!" <bingbong@xxxxxxxxxxx> wrote:

> On 25/11/05 12:46, in article BFACB840.12779F%chrisridd@xxxxxxx, "Chris
> Ridd" <chrisridd@xxxxxxx> wrote:
>
>>> So changing the Location doesn't work as BIND and Apache have spent the last
>>> few hours not working as they can't resolve the IP address.
>>>
>>> I never could make DNS and Apache work if I had it setup to localhost. Other
>>> machines on he network DNS queries failed.
>>
>> The trick is to make them listen to 0.0.0.0, which means all active network
>> interfaces. Programs doing that will automatically listen on new network
>> interfaces as they get addresses, and stop listening on interfaces as they
>> get disconnected. (It also includes localhost.)
>
> Didn't know that. Ta.

The output of netstat will indicate if a port is open on all interfaces or
not, using the notation "*.80" (for HTTP) in the Local Address column.

>> You still have to refer to an actual IP address if you want to contact the
>> server from another machine. Rendezvous might be a good way for other
>> clients to "find" you; Apple includes mod_bonjour for this purpose.
>
> Ok. Well that rules it out as I have to have other machines on my network
> able to test the sites. That was the problem I had.

Bonjour wouldn't help here, then?

> The DNS has to resolve to an IP address. If you set the address of
> machine.domain.whatever to 0.0.0.0 then surely when someone uses that DNS
> server to get the address it will end up looking up its own arse?

It isn't a 'real' IP address, it is just a magic value used when creating a
socket listener. It is not usable in other situations.

Cheers,

Chris

.



Relevant Pages

  • RE: Browser
    ... The new DC browses perfectly in my network places ... DNS Host Name: Doc.HENRYTWOMEN.local ... The net card 'RAS Async Adapter' may not be working because it ... There are no interfaces that have NetBT enabled. ...
    (microsoft.public.win2000.networking)
  • Re: TalkTalk Problem (was FilecoreCk)
    ... Interfaces:- Tick what type of Network card you have, ... Interfaces Configure:- On mine via DHCP is selected and Primary ... Does your Internet connection require a login? ... Domain Name Server (DNS) Address:- Get Automatically from ISP ...
    (comp.sys.acorn.apps)
  • RE: Binding Windows Services to Specific Addresses Only
    ... By default DNS is listening on all interfaces, ... Other interfaces shouldn?t reply to DNS requests. ... Binding Windows Services to Specific Addresses Only ...
    (Focus-Microsoft)
  • Re: Maybe useful if you use a laptop for web dev...
    ... >>> Applescript to change back to my home network Location, reboot BIND, reboot ... interfaces as they get addresses, and stop listening on interfaces as they ...
    (uk.comp.sys.mac)
  • Re: Problem with DNS
    ... The DNS server could not signal the service "NAT". ... Use the DNS manager server properties, interfaces dialog, to verify ... It means that the DNS server is listening on an IP address that is not on ...
    (microsoft.public.windows.server.dns)