You are not logged in.
Hi,
Recently I've became a proud owner of d-link DIR-300 router.
I have to connect 2 boxes via wires and couple of laptops via wifi.
Normally I would stick to static IP method and don't bother.
But laptops are not the same every now and then, so DHCP reservation by MAC adress is not an option,
so I don't know how to populate /etc/hosts.
Is there any way to use hostnames of connected laptops from router's DNS instead of using their IPs?
I don't know what config files you would like to see, so here are the obvious ones from one of the desktops.
Config files of the rest is similar.
# /etc/rc.conf
HOSTNAME="desktop"
eth0="dhcp"
INTERFACES=(lo eth0)
gateway="default gw 192.168.0.1"
ROUTES=(gateway)
DAEMONS=(syslog-ng hal network sshd !netfs crond fam)
# /etc/resolv.conf
search somedomain.net
nameserver 192.168.0.1
# /etc/hosts
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 desktop.somedomain.net localhost desktop
192.168.0.1 router.somedomain.net router
Offline