Linux Ubuntu LAMP Server

Discussion in 'Software' started by ufk, 28 Dec 2006.

  1. ufk

    ufk Licenced Fool

    Joined:
    3 Jan 2004
    Posts:
    760
    Likes Received:
    10
    I eventually got round to setting up a LAMP server using Ubuntu 6.06 LTS (dapper drake) as the base, everything so far has gone astonishingly well for a first time Linux install apart from one niggling problem..
    I have configured the networking settings as follows
    Code:
    auto eth0
    iface eth0 inet static
    address 192.168.1.200
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    
    but cannot download updates/packages from the net without pinging the IP address of the server first, basically without a ping i can't access any server....most bizarre and i cant figure it out so any suggestions would be good

    messing around in the command line has been instructive to say the least, I even managed to install webmin from it so I'm impressed with myself :clap:
     
    Last edited: 28 Dec 2006
  2. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Sounds like you have to set up your DNS server...

    Try putting "nameserver <IP>" in your /etc/resolv.conf
     
  3. splashtech

    splashtech What's a Dremel?

    Joined:
    26 Dec 2006
    Posts:
    33
    Likes Received:
    0
    Yeah, for some reason on my 6.06, DHCP did not set up the DNS server correctly (my router acts as a DNS relay, so that should have been used, but it wasnt). If your router is the same, just put its IP into /etc/resolve.conf. If not, put your ISP nameserver(s) into it. Should work fine then. Just remember to change it if you ever change the network setup or move the machine to somewhere else.
     
  4. ufk

    ufk Licenced Fool

    Joined:
    3 Jan 2004
    Posts:
    760
    Likes Received:
    10
    thanks for the suggestion guys, I'll have a go at adding my router IP into /etc/resolve.conf to see if that cures it.

    splashtech on a side note whereabouts in Bournemouth are you? I'm just down the road in sunny Christchurch
     
  5. splashtech

    splashtech What's a Dremel?

    Joined:
    26 Dec 2006
    Posts:
    33
    Likes Received:
    0
    Winton :D I'm a student at the uni.
     
  6. ufk

    ufk Licenced Fool

    Joined:
    3 Jan 2004
    Posts:
    760
    Likes Received:
    10
    Small world I work on castle lane ..winton end :)
     
  7. splashtech

    splashtech What's a Dremel?

    Joined:
    26 Dec 2006
    Posts:
    33
    Likes Received:
    0
    Hehe, small world indeed :)
     
Tags:

Share This Page