LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-11-2004, 09:48 PM   #1
OEP
Member
 
Registered: Apr 2004
Location: AL, USA
Distribution: FC4, Gentoo
Posts: 58

Rep: Reputation: 15
No DNS after sharing net connection


Hey

I have a wifi router and an extra computer shares a connection with my wifi capable computer.
So in drawing:
Router --WiFi --> Comp A --Crossover--> Comp B

Only problem is Comp B has no DNS :/

My ISP's DNS servers are dynamically assigned, and Comp A looks to my router for DNS resolution. I pointed Comp B to the router, but it doesn't work. I pointed Comp B to Comp A (all devices tried); doesn't work... Comp B can ping Internet IP's though, and can ping any machine on my network... so I'm wondering if there's something extra I need to do with the routing tables, IP masquerading (I can't think of why though) to get my DNS to work... here are some IP's for reference...

Router: 192.168.0.1
range: 192.168.0.100 - 192.168.0.199

Comp A:
ath0 (wifi): 192.168.0.111 (DHCP)
eth0 (crossover): 192.168.1.1

Comp B:
eth0: 192.168.1.100
 
Old 08-11-2004, 09:53 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Can't you use same values for nameserver (in /etc/resolv.conf) for computer B as you use for other computers?
 
Old 08-11-2004, 09:59 PM   #3
OEP
Member
 
Registered: Apr 2004
Location: AL, USA
Distribution: FC4, Gentoo
Posts: 58

Original Poster
Rep: Reputation: 15
Well.. that was my reasoning. My other computer is set to 192.168.0.1 but that doesn't work for some reason...

I can ping 192.168.0.1 from Comp B, so it seems as if I would be able to use it as a DNS server too...
 
Old 08-11-2004, 10:03 PM   #4
har5ha
Member
 
Registered: Mar 2004
Location: NY
Distribution: Red Hat 9 [Kernel 2.6.6-1.435]
Posts: 72

Rep: Reputation: 15
Hi,
I believe, u will have to run a dns server on comp A and set ur name server resolution on comp B point to comp A.

Correct me guys if im wrong........................
 
Old 08-11-2004, 10:07 PM   #5
OEP
Member
 
Registered: Apr 2004
Location: AL, USA
Distribution: FC4, Gentoo
Posts: 58

Original Poster
Rep: Reputation: 15
Heh... I was afraid of that...
I read about it and it seems that was the only solution that I could find on the Internet..

I guess I'll set it up for the time being, just for less tedious web browsing.
Thanks for the suggestions all!
 
Old 08-12-2004, 02:43 AM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
why not use an external server like secondarydns.org as ComputerB's nameservers. That will save the need to install and run a caching dns server.
 
Old 08-12-2004, 08:11 AM   #7
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Again,
what is wrong with just copying /etc/resolv.conf from comp A to comp B? It doesn't work? Are you sure the router(192.168.0.1) working as a dns server? Then you have some routing problem with your udp packages.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sharing net connection with xp machine frosty_kgp Linux - Networking 1 08-23-2005 12:44 AM
Sharing he net connection. BradAus Linux - Networking 1 04-05-2005 04:26 AM
Internet connection sharing -DNS problem reetep Linux - Networking 2 03-23-2004 10:21 AM
Internet Sharing with DHCP connection to the Net Earp Linux - Networking 1 06-15-2003 02:57 PM
idea: sharing net connection, method: iptables..., problem: broken net connection :( danny2055 Linux - Networking 4 06-09-2003 07:00 AM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration