Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LAN DNS ?
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
simulacrum
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2002
Posts: 128
Location: St Paul, MN

PostPosted: Thu Jul 14, 2005 3:22 pm    Post subject: LAN DNS ? Reply with quote

I have a Linksys router that provides not only DNS, but DNS for local machines, which is very convenient - if resolution worked right on my machine. Here's what I'm talking about:
Code:

simulacrum ~ # host tombstone
tombstone has address 192.168.100.101

simulacrum ~ # ping tombstone
ping: unknown host tombstone

My hosts file only has only the localhost line and my resolv.conf has only the router specified. What's the deal? I know I can explicitly specify the addresses in my hosts file, but I'd rather not do that.
Back to top
View user's profile Send private message
dashnu
l33t
l33t


Joined: 21 Jul 2004
Posts: 703
Location: Casco Maine

PostPosted: Thu Jul 14, 2005 3:31 pm    Post subject: Reply with quote

take a look at /etc/conf.d/domainname and rc-update add domainname default /etc/init.d/domainname start

maybe ?

I always add the local name to the hosts file like so..

Code:
127.0.0.1     localhost
192.168.1.1   hostname.mydomain.net hostname

_________________
write quit bang
Back to top
View user's profile Send private message
simulacrum
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2002
Posts: 128
Location: St Paul, MN

PostPosted: Thu Jul 14, 2005 7:26 pm    Post subject: Reply with quote

I have /etc/dnsdomainname configured and domainname is in my default runlevel, but how will having the domain name set affect resolving another machines IP?

I have up until this point had my machines defined in hosts, but as I said, I'd rather not do that. Thanks for any help though :)
Back to top
View user's profile Send private message
bone
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 255
Location: Midwest, USA

PostPosted: Thu Jul 14, 2005 11:51 pm    Post subject: Re: LAN DNS ? Reply with quote

simulacrum wrote:
I have a Linksys router that provides not only DNS, but DNS for local machines, which is very convenient - if resolution worked right on my machine. Here's what I'm talking about:
Code:

simulacrum ~ # host tombstone
tombstone has address 192.168.100.101

simulacrum ~ # ping tombstone
ping: unknown host tombstone

My hosts file only has only the localhost line and my resolv.conf has only the router specified. What's the deal? I know I can explicitly specify the addresses in my hosts file, but I'd rather not do that.


Its probably that your dns server doesnt know "tombstone", but I can almost bet it knows "tombstone.yourdomain". Check your /etc/resolv.conf. Mine has my default search domain as well, like this.

Code:

option ndots:0
nameserver 127.0.0.1
domain xxxx.cx



jt
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