I'm trying to set up a server with a static IP. I have a kind of weird network setup with everything connected to a router which is connected to another router, which is connected to the modem. I'm not sure if that's relevant. In /etc/rc.conf I've got
interface=eth0 address=192.168.1.140 netmask=255.255.255.0 broadcast=192.168.1.255 # I don't know what this should be gateway=192.168.1.1 # this is the router connected to the modem
Which works. I can connect to the internet but I can't seem to get any DNS to work. For example even though I can ping 22.214.171.124, putting
nameserver 126.96.36.199 nameserver 188.8.131.52
in /etc/resolv.conf.head doesn't work. I've tried setting the gateway to the first router, but then I can't ping any internet IPs.
On my laptop, which is using DHCP, it says
domain home nameserver 192.168.1.1
but using those settings on my server doesn't work either.
What am I doing wrong?
Edit: Ugh stupid. nameserver 192.168.1.1 worked. I must had some typo or something somewhere.
Last edited by silverhammermba (2012-10-05 01:20:24)