LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-12-2005, 09:50 PM   #1
SCFan42
LQ Newbie
 
Registered: Aug 2004
Location: Dayton, OH
Distribution: Slackware 10.2
Posts: 25

Rep: Reputation: 15
DNS Lookup problems


I've already searched around the forums some and couldn't find an answer unforunately :/
I've been working on a multipurpose Slackware 10.1 (current) server over the weekend, getting Apache, PHP, MySQL, and the firewall up, but I have yet to my mail (Postfix) 100% working. The main reason I haven't got it working because it can't resolve any host names. I've compared the resolv.conf to my desktop system (another Slackware 10.1), and they're identical. The server is set up behind a router using the DMZ feature on the router to forward the ports. Receiving e-mail has worked, and using SMTP to send e-mail has gotten Postfix to try and send it. And whenever I try to dig out to any site (google) it times out. I've also opened port 53 both ways in my firewall, but it doesn't seem to help.
 
Old 06-12-2005, 10:02 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
can you ping the IPs of your DNS servers??

have you configured the gateway address properly (in /etc/rc.d/rc.inet1.conf)??
 
Old 06-13-2005, 09:49 AM   #3
SCFan42
LQ Newbie
 
Registered: Aug 2004
Location: Dayton, OH
Distribution: Slackware 10.2
Posts: 25

Original Poster
Rep: Reputation: 15
I ping doesn't get out, returns "ping: sendmsg: Operation not permitted" probably because the firewall blocks pings both ways, though my computer can't ping the IPs in resolv.conf either, or at least the pings don't return a response.
My desktop doesn't have a gateway listed and works fine, so I can assume that the server doesn't need it either.
 
Old 06-13-2005, 06:05 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
maybe you should enable PING (icmp type 8) on your firewall so you can do some testing...

if you aren't specifying a gateway address anywhere then you must be using DHCP to obtain your IP configuration and you get your gateway address from there... right??

if you are trying the server with the exact same IP/DNS configuration as your desktop in the exact same port/zone of your router and it doesn't work then i believe it's a fair assumption that the problem lies on the server... maybe check and make sure the iptables rules aren't blocking anything on it??
 
Old 06-13-2005, 11:52 PM   #5
SCFan42
LQ Newbie
 
Registered: Aug 2004
Location: Dayton, OH
Distribution: Slackware 10.2
Posts: 25

Original Poster
Rep: Reputation: 15
I just tested the firewall changing the default DROP to ACCEPT for a minute, and it seems that dig stops working when INPUT or OUTPUT are set to DROP. Is there a way I can monitor my ports for what's being used? Then I could probably find what ports need opening.
 
Old 06-14-2005, 03:50 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
you can add a LOG rule to the end of your INPUT and OUTPUT chains and then look in /var/log/syslog to see the packets as they get dropped...

but optimally you should know beforehand which ports you need to allow access to... like, for the DNS to work you need to allow 53/UDP in your OUTPUT chain, etc...
 
Old 06-14-2005, 01:44 PM   #7
SCFan42
LQ Newbie
 
Registered: Aug 2004
Location: Dayton, OH
Distribution: Slackware 10.2
Posts: 25

Original Poster
Rep: Reputation: 15
Alright, I got it working now, thanks for the help.
Turns out that the port changes from source to destination, I had OUTPUT looking for the source port and INPUT looking for the dest port on UDP 53, but that was where the port changed. I swapped it to OUTPUT looking for the dest port and INPUT looking for the source port and it works now.

Last edited by SCFan42; 06-14-2005 at 01:46 PM.
 
  


Reply



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
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM
DNS lookup arsham Linux - General 2 05-07-2005 08:44 AM
DNS lookup vibhory2j Linux - Software 8 10-19-2004 10:24 AM
Cant lookup dns . Trygve Linux - Networking 2 10-23-2003 03:31 PM
DNS reverse lookup problems... pdmackenzie Linux - Networking 2 09-19-2003 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration