Sharing Internet Connection DNS?

This is a discussion on Sharing Internet Connection DNS? within the Linux Networking forums, part of the Linux Forums category; My home network looks like this: internet <--> host1 <--> host2 host1 can resolve host names out on ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-23-2004
Kevin Cosgrove
 
Posts: n/a
Default Sharing Internet Connection DNS?

My home network looks like this:

internet <--> host1 <--> host2

host1 can resolve host names out on the internet just fine.
host2 can do anything it wants to on the internet, but unless the
host name is in /etc/hosts, it can't resolve it. Everything
works with host2 if I use IP addresses. I'm a complete newbie to
DNS stuff, but is that where my trouble lies? How can I get host
name resolving to work on host2?


Thanks....


--
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.
Reply With Quote
  #2 (permalink)  
Old 04-23-2004
Matt
 
Posts: n/a
Default Re: Sharing Internet Connection DNS?

Kevin Cosgrove wrote:

> My home network looks like this:
>
> internet <--> host1 <--> host2
>
> host1 can resolve host names out on the internet just fine.
> host2 can do anything it wants to on the internet, but unless the
> host name is in /etc/hosts, it can't resolve it. Everything
> works with host2 if I use IP addresses. I'm a complete newbie to
> DNS stuff, but is that where my trouble lies? How can I get host
> name resolving to work on host2?
>
>
> Thanks....
>
>


Does your /etc/resolv.conf file on host2 have the same DNS servers as
the /etc/resolv.conf on host1?
Reply With Quote
  #3 (permalink)  
Old 04-23-2004
Scott McMillan
 
Posts: n/a
Default Re: Sharing Internet Connection DNS?

On Fri, 23 Apr 2004 15:53:17 GMT, Kevin@mdhost.cse.tek.com (Kevin
Cosgrove) wrote:

>My home network looks like this:
>
> internet <--> host1 <--> host2
>
>host1 can resolve host names out on the internet just fine.
>host2 can do anything it wants to on the internet, but unless the
>host name is in /etc/hosts, it can't resolve it. Everything
>works with host2 if I use IP addresses. I'm a complete newbie to
>DNS stuff, but is that where my trouble lies? How can I get host
>name resolving to work on host2?
>
>
>Thanks....


What is the contents of /etc/resolv.conf on each system?


Scott McMillan
Reply With Quote
  #4 (permalink)  
Old 04-24-2004
/dev/rob0
 
Posts: n/a
Default Re: Sharing Internet Connection DNS?

On Fri, 23 Apr 2004 14:23:55 -0400, Scott McMillan wrote:
> On Fri, 23 Apr 2004 15:53:17 GMT, Kevin@mdhost.cse.tek.com (Kevin
> Cosgrove) wrote:
>>works with host2 if I use IP addresses. I'm a complete newbie to
>>DNS stuff, but is that where my trouble lies? How can I get host
>>name resolving to work on host2?


One way is as Scott hints, use the same nameservers on each ...

> What is the contents of /etc/resolv.conf on each system?


Another way, pretty easy to manage, is this:
http://www.thekelleys.org.uk/dnsmasq/doc.html
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply

Reply With Quote
  #5 (permalink)  
Old 04-24-2004
Scott McMillan
 
Posts: n/a
Default Re: Sharing Internet Connection DNS?

On Fri, 23 Apr 2004 15:53:17 +0000, Kevin Cosgrove wrote:

> My home network looks like this:
>
> internet <--> host1 <--> host2
>
> host1 can resolve host names out on the internet just fine.
> host2 can do anything it wants to on the internet, but unless the
> host name is in /etc/hosts, it can't resolve it. Everything
> works with host2 if I use IP addresses. I'm a complete newbie to
> DNS stuff, but is that where my trouble lies? How can I get host
> name resolving to work on host2?
>
>
> Thanks....


(It appears my first response did not go through...)
What are the contents of /etc/resolv.conf on each of the hosts?


Scott McMillan
Reply With Quote
  #6 (permalink)  
Old 04-24-2004
Bill Marcum
 
Posts: n/a
Default Re: Sharing Internet Connection DNS?

On Fri, 23 Apr 2004 15:53:17 GMT, Kevin Cosgrove
<Kevin@mdhost.cse.tek.com> wrote:
> My home network looks like this:
>
> internet <--> host1 <--> host2
>
> host1 can resolve host names out on the internet just fine.
> host2 can do anything it wants to on the internet, but unless the
> host name is in /etc/hosts, it can't resolve it. Everything
> works with host2 if I use IP addresses. I'm a complete newbie to
> DNS stuff, but is that where my trouble lies? How can I get host
> name resolving to work on host2?
>
>
> Thanks....
>

Copy the /etc/resolv.conf from host1 to host2, and make sure that host2
can ping the nameservers.


--
Giraffe: a ruminant with a view.
Reply With Quote
  #7 (permalink)  
Old 04-26-2004
Kevin Cosgrove
 
Posts: n/a
Default Re: Sharing Internet Connection DNS?

Matt <not@chance.org> wrote:
> > My home network looks like this:
> >
> > internet <--> host1 <--> host2
> >
> > host1 can resolve host names out on the internet just fine.
> > host2 can do anything it wants to on the internet, but unless the
> > host name is in /etc/hosts, it can't resolve it. Everything
> > works with host2 if I use IP addresses. I'm a complete newbie to
> > DNS stuff, but is that where my trouble lies? How can I get host
> > name resolving to work on host2?

>
> Does your /etc/resolv.conf file on host2 have the same DNS servers as
> the /etc/resolv.conf on host1?


Yes.

--
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0