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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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? |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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. |