-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 28 November 2002 9:49 am, Praedor Tempus wrote:
> I am getting mixed success with my wireless connection
> sharing.  I am finally figuring out certain aspects
> that need to be handled to get it working but one
> baffles me still.
>
> I get a modem connection on box 1 which is ad-hoc
> wireless connected to box 2.  After the connection,
> box 1 can use the internet OK but box 2 doesn't get
> DNS - it can only use the internet if IP addresses are
> used while site names lead to unknown host messages.
>
> I have checked my routing tables and they are fine.  I
> also have iptables setup to NAT.  I am just not able
> to get name resolution on box 2 from box 2.  At the
> moment, to get it working I have had to manually add
> the DNS IP on box 2 assigned by the modem connection.
>
> How do I get name resolution to work?  I am not
> running a local DNS (and would prefer not to).  I
> SHOULD be able to use the DNS settings of box 1 to get
> name resolution on box 2.  What settings need to be
> looked at on which box to get this working?  It HAS
> worked before but I have no idea how/why - while now
> it doesn't.
>
> My iptables-save output is:
>
> # Generated by iptables-save v1.2.5 on Thu Nov 28
> 10:45:49 2002
> *filter
>
> :INPUT ACCEPT [2753:2158267]
> :FORWARD ACCEPT [0:0]
> :OUTPUT ACCEPT [3352:376728]
>
> -A INPUT -i eth0 -p udp -m udp --sport 68 --dport 67
> -j ACCEPT
> -A INPUT -i eth0 -p tcp -m tcp --sport 68 --dport 67
> -j ACCEPT
> -A INPUT -i eth0 -p udp -m udp --sport 67 --dport 68
> -j ACCEPT
> -A INPUT -i eth0 -p tcp -m tcp --sport 67 --dport 68
> -j ACCEPT
> -A INPUT -i eth0 -p udp -m udp --dport 53 -j ACCEPT
> -A INPUT -i eth0 -p tcp -m tcp --dport 53 -j ACCEPT
> -A INPUT -i lo -j ACCEPT
> -A FORWARD -s 192.168.0.0/255.255.255.0 -j ACCEPT
> -A FORWARD -i eth0 -j ACCEPT
> -A FORWARD -m state --state RELATED,ESTABLISHED -j
> ACCEPT
> COMMIT
> # Completed on Thu Nov 28 10:45:49 2002
> # Generated by iptables-save v1.2.5 on Thu Nov 28
> 10:45:49 2002
> *nat
>
> :PREROUTING ACCEPT [202:12816]
> :POSTROUTING ACCEPT [464:37631]
> :OUTPUT ACCEPT [468:37967]
>
> -A POSTROUTING -s 192.168.0.0/255.255.255.0 -j
> MASQUERADE
> -A POSTROUTING -s 192.168.0.0/255.255.255.0 -o ppp0 -j
> MASQUERADE
> COMMIT
> # Completed on Thu Nov 28 10:45:49 2002
>
> My box 1 routing table contains:
>
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags
> Metric Ref    Use Iface
> 128.211.132.5   0.0.0.0         255.255.255.255 UH
> 0      0        0 ppp0
> 192.168.0.0     0.0.0.0         255.255.255.0   U
> 0      0        0 eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U
> 0      0        0 lo
> 0.0.0.0         128.211.132.5   0.0.0.0         UG
> 0      0        0 ppp0
>
> Anyone have any wisdom to put forth?  On box 2, how do
> I setup DNS (with linuxconf?)  Right now, I have box
> 1's IP as its DNS (192.168.0.1).  This is also its
> gateway.
>
> praedor
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com

What is in the resolv.conf on both boxes assuming that they are both *nix 
machines? YOu should have your dns information there. I had to setup 
/etc/resolv.conf on my PDA so that it could use the dns as well.

- -- 
- ------------------------------------------------------------------------
Altoine B
Maximum Time Unlimited
Chicago Based and Operated
http://pgp.mit.edu
- ------------------------------------------------------------------------
61. Yes, I chowned all the files to belong to pvcs.  Is that a problem to
    you?

        --Top 100 things you don't want the sysadmin to say
- ------------------------------------------------------------------------
2.4.19-19nds
Mandrake Linux release 9.1 (Cooker) for i586
- ------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE95mdoxjybQmhmUgYRAukJAJ47EYtev24GroMFLL1FRt8G2CXUeQCgsspH
v8Bsxrf5AAVXf+eqEIalp84=
=I6LJ
-----END PGP SIGNATURE-----


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to