Jump to content

problem with DNS


Biz
 Share

Recommended Posts

Hello there! ;)

 

I have a apache/postfix server running mandrake 9.2 configured with static ip and connected to a cisco 1721 router.

 

the problem is that this machine can't resolve ip adresses :( I mean, the machine is accepting request forom outside the network, i can view a webpage perfectly and so... here are the simptoms:

 

when i ssh to the machine from inside the network it takes 2 long 2 connect.

when i try to read mail it takes 2 long to connect

if i ping a domain name the request times out (but ping work fine with the ip adress).

 

 

my resolv.conf s like this:

 

search pt

local

nameserver 127.0.0.1

nameserver 194.79.69.222

nameserver 194.79.69.129

 

# ppp temp entry

 

 

 

I tried to delete the first nameserver entry but it keeps appearing after a while :(

 

Can anyone help me with this issue please?

 

Thanks,

 

Pedro

Link to comment
Share on other sites

Welcome to the board.

There are a whole range of entries you can put in /resolv.conf

It depends on what setup you have or want. But if your going to use a search entry (not always needed) then it should be your local domain or host name, example:

search ns1.yoursite.com  yoursite.com

If i were you, i would start by just adding your NS IPs and leave out the search and nameserver 127.0.0.1 entry. Put your primary or main IP first in the list, save the file and then try it out.

(you may need to to restart the network but not always needed)

Link to comment
Share on other sites

Thank you both anon and QChem.

Finally my resolv.conf stopped changing! :D

 

But i still can't ping domain names and now i have another problem... postfix stopped responding. i tried to connect first using thunderbird and then telnet and nothing...

 

when i putted back my old resolv.conf file it started to work fine again.

 

any ideas?

Link to comment
Share on other sites

Sorry, I was assuming it was a home/so setup. I'll try to think of other ideas before you pester networking.  :cheesy:

 

Are the IP addresses of your DNS servers 194.79.69.222 and 194.79.69.129?

 

Yes.. those are the ip adresses of my dns servers.

the server is connected to a router with 2 interfaces: 1 is directly connected to the server and the other one is connected to a switch to give internet access to the poor users. (lol) Those dns servers are from my isp and are the ones the same that are used by the rest of the machines in the network.

 

One more info about this situation... i entered in the graphic mode and checked mcc and found that acording to mcc i'm not connected to internet. I mean.. eth0 is up and configured with a static ip, gateway is also configured but mandrake says it can't connect to internet...

 

thanks for all your attention! :)

Link to comment
Share on other sites

One more info about this situation... i entered in the graphic mode and checked mcc and found that acording to mcc i'm not connected to internet. I mean.. eth0 is up and configured with a static ip, gateway is also configured but mandrake says it can't connect to internet...

 

Can I just ask how you configured the connection in the first place? Using mcc? Are you sure it was set up as a LAN connection and not as a DSL connection or something similar?

 

I might be barking up the wrong tree, but the mdk wizards can make a mess if things don't go exactly right.

Link to comment
Share on other sites

Can I just ask how you configured the connection in the first place? Using mcc? Are you sure it was set up as a LAN connection and not as a DSL connection or something similar?

Hello Qchem,

 

I configured the connection as a Lan connection when I installed mandrake, suing the wizard that comes with the installer...

 

I already did some checks on the config files an they seem to be as they were supposed... :S

 

the only different thing that I did was to set the security level to "high", usually i keep it at "normal".

 

Maybe if i try to install the system again with the normal security settings and without any servers and check if i can connect to internet.. and they, if i can, work from there... babysteps ;)

 

what do you think?

 

Thanks! :)

Link to comment
Share on other sites

Maybe if i try to install the system again with the normal security settings and without any servers and check if i can connect to internet.. and they, if i can, work from there... babysteps

 

This will probably work, but we'll keep that as a last resort for a little while. Have you tried switching back to normal security settings? Do you have the mandrake firewall on?

 

iptables -L

 

as root should let you know if you have any firewall rules in place.

Link to comment
Share on other sites

I didn't install any FW, precisely to prevent that kind of problems.. all the protection is done my an hardware FW.

 

Since the things are working (very poorly, but working) I guess that I'll wait 4 the weekend and do a major system reinstall.

 

meanwhile if someone remebers anything... ;)

 

Thanks for all your help.

Link to comment
Share on other sites

Thank you all for your support.

 

I guess i owe a satisfation to all the guys that tried to help, so here it goes:

 

 

I had to get mad with the ISP that is providing our link so their network team move their asses and start to look where they should :P

 

The problem was that apparently our requests, by some strange reason, started to bounce between 2 routers... they are working on the case.

 

Once again, thank you all guys!

Now that i have more free time and less headches, I will try to help others 2...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...