You are not logged in.

#1 2012-10-05 00:32:20

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

[SOLVED] DNS Server Isn't Working (But I Can Ping It)

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 8.8.8.8, putting

nameserver 8.8.8.8
nameserver 8.8.4.4

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)

Offline

Board footer

Powered by FluxBB