View previous topic :: View next topic |
Author |
Message |
armstrtw n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Oct 2003 Posts: 18
|
Posted: Thu Feb 17, 2005 3:44 am Post subject: name resolution behind linksys router |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
/dev/random l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/19399785604be4823ea8b41.jpg)
Joined: 26 Nov 2004 Posts: 704 Location: Austin, Texas, USA
|
Posted: Thu Feb 17, 2005 3:46 am Post subject: |
|
|
Just add them to /etc/hosts for example let's say cat's IP is 192.168.1.100 add this to /etc/hosts:
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
RSay Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 13 Dec 2003 Posts: 100 Location: Cleveland
|
Posted: Thu Feb 17, 2005 4:40 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
d0nju4n Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Apr 2004 Posts: 283 Location: Rochester, MN
|
Posted: Thu Feb 17, 2005 5:24 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
armstrtw n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Oct 2003 Posts: 18
|
Posted: Thu Feb 17, 2005 4:52 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
padawan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_obi-wan_kenobi.gif)
Joined: 01 Jun 2002 Posts: 37 Location: California, USA
|
Posted: Thu Feb 17, 2005 10:37 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|