Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
name resolution behind linksys router
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
armstrtw
n00b
n00b


Joined: 09 Oct 2003
Posts: 18

PostPosted: Thu Feb 17, 2005 3:44 am    Post subject: name resolution behind linksys router Reply with quote

I have two computers (cat and dog for instance) behind a linksys router.

both obtain ip addresses via dhcp

however, when I try (from cat) ping dog, I get a host unknown error.

Same thing when I try (from dog) ping cat

I'd like to be able to use these simple hostnames for my local network (the few computers hooked up to my linksys).

Is bind the way to do this? I'm looking for as simple a solution as possible.

Thanks,
Whit
Back to top
View user's profile Send private message
/dev/random
l33t
l33t


Joined: 26 Nov 2004
Posts: 704
Location: Austin, Texas, USA

PostPosted: Thu Feb 17, 2005 3:46 am    Post subject: Reply with quote

Just add them to /etc/hosts for example let's say cat's IP is 192.168.1.100 add this to /etc/hosts:
Code:

192.168.1.100 cat
Back to top
View user's profile Send private message
RSay
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2003
Posts: 100
Location: Cleveland

PostPosted: Thu Feb 17, 2005 4:40 am    Post subject: Reply with quote

If Cat and Dog are always the same I think it is most convenient to just assign them fixed IP addresses. It can also make it easier to write firewall policy.
Back to top
View user's profile Send private message
d0nju4n
Apprentice
Apprentice


Joined: 19 Apr 2004
Posts: 283
Location: Rochester, MN

PostPosted: Thu Feb 17, 2005 5:24 am    Post subject: Reply with quote

Also, if you add them to /etc/hosts and their IPs change (due to dhcp) then you may run into some problems
_________________
Linux User 355087
Back to top
View user's profile Send private message
armstrtw
n00b
n00b


Joined: 09 Oct 2003
Posts: 18

PostPosted: Thu Feb 17, 2005 4:52 pm    Post subject: Reply with quote

adding the IP addresses to the /etc/hosts file is exactly the quick and dirty fix I'm using now.

However, if the IP addresses change, then I'm out of luck, and that's the exact reason I don't want to use this method in the future.

Thanks for the suggestion.

DNS works for the internet, but not within my local network.

I can resovle the addresses for www.google.com, etc., but not for my other computers on my LAN...

What I'm really asking is whether bind is the tool that people use for local DNS. I've also seen some posts about masq, but I'm unfamiliar with both of those.

Thanks,
Whit
Back to top
View user's profile Send private message
padawan
n00b
n00b


Joined: 01 Jun 2002
Posts: 37
Location: California, USA

PostPosted: Thu Feb 17, 2005 10:37 pm    Post subject: Reply with quote

bind is a complete dns server. If you set it up, your cat and dog can use it as their dns server, instead of your ISP's server, but it's not the easiest program to set up. But that doesn't solve your problem. What you want is your clients, cat and dog, to automatically register their IP address with the dns server after they've been asigned by dhcp.

I've managed to get bind going in the past for a small network with all static IPs, but I don't know how to do the auto-register part. Should be possible though. You would need to set up bind to allow the registration, and set up your clients to send the registration.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum