You are not logged in.

#1 2008-03-10 13:57:24

jargoman
Member
Registered: 2008-03-10
Posts: 33

- SOLVED - router doesn't detect hostname

When I have dhcp set up my router (SpeedStream 6520) lists my hostname correctly but when I configure a static Ip it's listed as uknown. Here are some relevent config files.

NOTE: I have changed my listed domain and ip addresses for security reasons

rc.conf

HOSTNAME="archie"
lo="lo 127.0.0.1"
#eth0="dhcp"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)
gateway="default gw 192.168.0.1"
ROUTES=(gateway)

resolv.conf

search no-domain-set.bellcanada
nameserver 192.168.2.1
nameserver 192.168.2.1

hosts

::1                     localhost.localdomain localhost
127.0.0.1               localhost.localdomain localhost
192.168.2.2             reality.doesntexist.com archie

reality.doesntexist.com is my domain from dyndns.

when I have dhcp set up how does my router automatically know my hostname but when I have static it doesn't. How can I specify this. There is no option on my router.

Last edited by jargoman (2008-03-11 11:23:55)

Offline

#2 2008-03-10 21:35:35

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: - SOLVED - router doesn't detect hostname

You said it yourself: it's all static. Don't expect your systems to do tricks.

You need to add the entries yourself to /etc/hosts on the router (provided it is a *nix box, of course). If no such option is provided you'll have to make do with the router's IP.

And about those 'security reasons': local IPs do not get routed onto the internet. What do you think you need NAT and stuff for?

Last edited by B (2008-03-10 21:36:33)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2008-03-11 11:23:01

jargoman
Member
Registered: 2008-03-10
Posts: 33

Re: - SOLVED - router doesn't detect hostname

Well seeing how I have a piece of crap router I guess you're saying that I'm S.O.L. Oh well I'll mark this as solved.

Thanks

Offline

Board footer

Powered by FluxBB