This is a discussion on Question from newbie within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I have a local network at home for testing some things. I would like to setup a webserver ( for ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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, |
|
|||
|
Davide Bianchi schreef:
> On 2007-09-25, Johan Chat <johan.chat@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 |
|
|||
|
Davide Bianchi schreef:
> On 2007-09-25, Johan Chat <johan.chat@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 wrote:
> Davide Bianchi schreef: >> On 2007-09-25, Johan Chat <johan.chat@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@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 schreef:
> Johan Chat wrote: >> Davide Bianchi schreef: >>> On 2007-09-25, Johan Chat <johan.chat@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, > > |
|
|||
|
Davide Bianchi schreef:
> On 2007-09-25, Johan Chat <johan.chat@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. |