Question from newbie
am 25.09.2007 10:04:40 von Johan Chat
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,
Re: Question from newbie
am 25.09.2007 10:08:29 von unknown
Post removed (X-No-Archive: yes)
Re: Question from newbie
am 25.09.2007 10:20:34 von Johan Chat
Davide Bianchi schreef:
> On 2007-09-25, Johan Chat 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
Re: Question from newbie
am 25.09.2007 10:37:15 von unknown
Post removed (X-No-Archive: yes)
Re: Question from newbie
am 25.09.2007 11:08:42 von Johan Chat
Davide Bianchi schreef:
> On 2007-09-25, Johan Chat 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
>
Re: Question from newbie
am 27.09.2007 07:58:45 von David McKenzie
Johan Chat wrote:
> Davide Bianchi schreef:
>> On 2007-09-25, Johan Chat 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@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
Re: Question from newbie
am 27.09.2007 12:01:57 von Johan Chat
David McKenzie schreef:
> Johan Chat wrote:
>> Davide Bianchi schreef:
>>> On 2007-09-25, Johan Chat 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,
>
>
Re: Question from newbie
am 27.09.2007 12:51:26 von Johan Chat
Davide Bianchi schreef:
> On 2007-09-25, Johan Chat 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.
Re: Question from newbie
am 27.09.2007 13:05:31 von unknown
Post removed (X-No-Archive: yes)