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 |
Can't you use same values for nameserver (in /etc/resolv.conf) for computer B as you use for other computers?
|
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... |
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........................ |
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! :) |
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.
|
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. |
All times are GMT -5. The time now is 09:36 AM. |