Question from newbie

Hello,

I have a local network at home for testing some things.
I would like to setup a webserver ( for my local network )
OS is Ubuntu as LAMP server.
Do I need really need to use bind and a DNS server to use this webserver
locally?

Thank you,
Johan Chat [ Di, 25 September 2007 10:04 ] [ ID #1828787 ]

Re: Question from newbie

Post removed (X-No-Archive: yes)
Notifier Deamon [ Di, 25 September 2007 10:08 ] [ ID #1828788 ]

Re: Question from newbie

Davide Bianchi schreef:
> On 2007-09-25, Johan Chat <johan.chat [at] fulladsl.be> wrote:
>> Do I need really need to use bind and a DNS server to use this webserver
>> locally?
>
> No, you do need something to translate your server name into an ip
> address, if you have few (or one) machine, you can easily put an
> entry in the /etc/hosts file and obtain the same result.
>
> Davide
>

Tanks for helping,

I did the /etc/hosts config and it works fine on my ubuntu machines.
Am I right that this only works for fixed server IP adress.
I now have "192.168.1.100 reger" in my /etc/host client machine and that
works but the server adres is fixed.
( this is not a problem but I use multiple vmware test servers)
It would be easier not having to think about it.

I also have not an equivalent solution for my windows comps.
(missing knowledge)

Johan
Johan Chat [ Di, 25 September 2007 10:20 ] [ ID #1828789 ]

Re: Question from newbie

Post removed (X-No-Archive: yes)
Notifier Deamon [ Di, 25 September 2007 10:37 ] [ ID #1828790 ]

Re: Question from newbie

Davide Bianchi schreef:
> On 2007-09-25, Johan Chat <johan.chat [at] fulladsl.be> wrote:
>> I did the /etc/hosts config and it works fine on my ubuntu machines.
>> Am I right that this only works for fixed server IP adress.
>
> Well, if you have a small network, you most probably have only fixed
> IPs. Otherwise, you need a DNS that will be updated by the dhcp server.
>

It is a small network but I use DHCP as my ADSL router has a dhcp server.

> I also have not an equivalent solution for my windows comps.
>
> I think the file is
>
> C:\Windows\System32\driver\hosts
>
Thanks again,
I will try that.


> or similar.
>
> Davide
>
Johan Chat [ Di, 25 September 2007 11:08 ] [ ID #1828791 ]

Re: Question from newbie

Johan Chat wrote:
> Davide Bianchi schreef:
>> On 2007-09-25, Johan Chat <johan.chat [at] fulladsl.be> wrote:
>>> I did the /etc/hosts config and it works fine on my ubuntu machines.
>>> Am I right that this only works for fixed server IP adress.
>>
>> Well, if you have a small network, you most probably have only fixed
>> IPs. Otherwise, you need a DNS that will be updated by the dhcp server.
>>
>
> It is a small network but I use DHCP as my ADSL router has a dhcp server.
>
Then stop using it.


Right?


--
DM davidm [at] cia.com.au

'It would go against respecting principles and truth if you have to
respect and accept anything just because it is the other side's view.'
- Kim Jung Ill
David McKenzie [ Do, 27 September 2007 07:58 ] [ ID #1830625 ]

Re: Question from newbie

David McKenzie schreef:
> Johan Chat wrote:
>> Davide Bianchi schreef:
>>> On 2007-09-25, Johan Chat <johan.chat [at] fulladsl.be> wrote:
>>>> I did the /etc/hosts config and it works fine on my ubuntu machines.
>>>> Am I right that this only works for fixed server IP adress.
>>>
>>> Well, if you have a small network, you most probably have only fixed
>>> IPs. Otherwise, you need a DNS that will be updated by the dhcp server.
>>>
>>
>> It is a small network but I use DHCP as my ADSL router has a dhcp server.
>>
> Then stop using it.
>
>
> Right?
Hello,

DHCP is just plain easy when using laptops.
No trouble configuring anything.

greetings,
>
>
Johan Chat [ Do, 27 September 2007 12:01 ] [ ID #1830629 ]

Re: Question from newbie

Davide Bianchi schreef:
> On 2007-09-25, Johan Chat <johan.chat [at] fulladsl.be> wrote:
>> I did the /etc/hosts config and it works fine on my ubuntu machines.
>> Am I right that this only works for fixed server IP adress.
>
> Well, if you have a small network, you most probably have only fixed
> IPs. Otherwise, you need a DNS that will be updated by the dhcp server.
>
>> I also have not an equivalent solution for my windows comps.
>
> I think the file is
>
> C:\Windows\System32\driver\hosts
>
>

Works like a charm with vista x64
Path is c:\windows\system32\driver\etc\hosts

I really should find some time to learn the Vista UAC.
A bit confusing to have to think about user rights in windows.
Johan Chat [ Do, 27 September 2007 12:51 ] [ ID #1830630 ]

Re: Question from newbie

Post removed (X-No-Archive: yes)
Notifier Deamon [ Do, 27 September 2007 13:05 ] [ ID #1830631 ]
Webserver » alt.apache.configuration » Question from newbie

Vorheriges Thema: My Server HD has crashed - How do I retrieve the MySQL data.
Nächstes Thema: Restrict access with mod_jk / ip address