Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-17-2001, 12:07 PM
|
#1
|
LQ Newbie
Registered: Dec 2001
Posts: 2
Rep:
|
cannot get dns behind linux gateway
Hi everybody,
I'm trying to install a linux gateway box for a small win network. I use a 2.2 kernel, pppoe connection.
On the linux machine, Internet access works great.
At this point I can ping the outside world from any part of the local network, but DNS services are not available.
I really don't know how to fix this : am I supposed to declare my ISP's DNS server on win hosts ?
Any help/idea/comment/link would be great.
Take care,
bibi
ifconfig result :
eth0 Link encap:Ethernet HWaddr 00:40:05:E1:17:F1
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4751 errors:0 dropped:0 overruns:0 frame:0
TX packets:3718 errors:0 dropped:0 overruns:0 carrier:0
collisions:2 txqueuelen:100
Interrupt:10 Base address:0xe400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:18385 errors:0 dropped:0 overruns:0 frame:0
TX packets:18385 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
ppp0 Link encap:Point-to-Point Protocol
inet addr:my_ip P-t-P:217.128.34.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
ipchains listing :
Chain input (policy ACCEPT):
target prot opt source destination ports
DENY udp ----l- anywhere anywhere any -> 0:1023
DENY tcp ----l- anywhere anywhere any -> 0:1023
DENY tcp -y--l- anywhere anywhere any -> any
DENY icmp ----l- anywhere anywhere echo-request
Chain forward (policy DENY):
target prot opt source destination ports
MASQ all ------ anywhere anywhere n/a
Chain output (policy ACCEPT):
|
|
|
12-17-2001, 07:01 PM
|
#2
|
LQ Newbie
Registered: Jul 2001
Location: Sunnyvale, CA
Posts: 11
Rep:
|
Hello Bibi,
Here are some pointers for you to check/start with:
1. Make sure you have correct entries in file /etc/resolv.conf
1.1 It should have entries like
domain - should contain name of your domain e.g. junk.com
nameserver - should contain IP address of the nameservers for that domain. e.g. 10.1.0.10
2. Make sure your /etc/nsswitch.conf files has 'dns' entry. The lines which says
hosts: files
should look like
hosts: dns files
3. Run the diagnostic tool, nslookup, and see if this machine is able to resolv to the internet.
Hope this helps..
... Atul
|
|
|
12-18-2001, 01:40 AM
|
#3
|
Member
Registered: Dec 2001
Location: Orange County, CA
Distribution: RedHat 7.2, 7.3, 8.0
Posts: 66
Rep:
|
If you are running a DHCP server on your Linux machine to assign addresses to your internal network, make sure you are passing the DNS server addresses to the Windows machines.
This can be set in /etc/dhcpd.conf
If you are setting your windows machines up with static network configurations, make sure you are entering your DNS server addresses on the windows machines.
Hope this helps.
Ryan
|
|
|
12-18-2001, 02:52 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
Quote:
I really don't know how to fix this : am I supposed to declare my ISP's DNS
|
Yes, if you are using statics for the winboxes, you have to give them nameservers to query, the Linux machine is just masq'ing, its not preforming lookups for them. If you run a dhcpd server off of the Linux box, you might have an easier time of it, might not... there's no real reason to do so.
You might want to re-think that IPtables setting. That's wide open, all the time, without a single packet drop either way.
Cheers,
Finegan
|
|
|
12-20-2001, 08:27 PM
|
#5
|
LQ Newbie
Registered: Dec 2001
Posts: 2
Original Poster
Rep:
|
Thank you everybody for your answers.
When reading your gentle answers, I realized that I haven't mentioned the fact that I was not running a dhcp server on my linux box but simply using my ISP's one.
I have just added my ISP nameservers on windows, and it worked
Quote:
You might want to re-think that IPtables setting. That's wide open, all the time, without a single packet drop either way.
|
I know I have to do this ... I'm just making it step to step. Hope I won't need a future post
Thank you again !
Take care,
bibi
|
|
|
All times are GMT -5. The time now is 07:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|