Computing.Net > Forums > Linux > Linux Mandrake, DNS problems

Linux Mandrake, DNS problems

Reply to Message Icon

Original Message
Name: joltz
Date: October 23, 2004 at 23:09:02 Pacific
Subject: Linux Mandrake, DNS problems
OS: Linux Mandrake 10.1 Commu
CPU/Ram: p4 2400mhz 512mb ram
Comment:

Problemt with internet settings - DNS IP -

Im using linux mandrake 10.1 community, with KDE and my internet connection is ADSL permanently connected via a D-LInK DSL-G604T DSL ROUTER.

Problem im experiencing is, i notice alot of sites dont work, like google yahoo altavista and tons more. I cant log into aim/icq/yahoo either but msn works on gaim.
Ive checked my firewall settings and disabled it and it stil does it, browser says it times out on port 80.

So i check my internet settings and my primary DNS server is set to my dlinks modem page which is 10.1.1.1, now this setting does give me a connection to the net, but as i said alot of sites are slow and most time out.
So I enter my isp's DNS server in the secondary field, and viola the net runs fine, everything works and is very fast indeed.
I check my modems configuration page and the DNS server is set correctly to my ISP's.

Now after a while, be 1minute, 10 minutes or evern a hour or more, the settings while change back to just 10.1.1.1 and my secondary DNS i entered disappears and the net stuffs up again.

When the net works fine i check my resolv.conf file when the nets working fine and it shows:

search net.au
nameserver 203.0.178.191
nameserver 10.1.1.1

# ppp temp entry

everytime it reverts back to not working the file shows,

nameserver 10.1.1.1

with no extra text.

So when the settings are fine I try and do in root a:

chmod guo-w /etc/resolv.conf
&/or a
#chmod -w /etc/resolv.conf

which this should set the file as not allowed to be written and read only, but again after a while it stil changes the file an dmy settings again revert back to 10.1.1.1

I have tried setting my ISP's DNS IP addy as primary and using 10.1.1.1 as secondary and I experience the same problem.

I have disabled the firewall from my system and from my modems page.

Im totally stumped as how to fix this, id appreciated any help you guys can offer.

Thanks in advance.


Report Offensive Message For Removal


Response Number 1
Name: ernie
Date: October 23, 2004 at 23:58:02 Pacific
Reply: (edit)

Open MCC. It is located in the Mandrake menu at System > Configuration > Configure Your Computer.

Click Network & Internet in the left column.

Open the Internet Access icon.

Correct your DNS settings here, then click OK in the bottom right corner.

HTH,

Ernie [ewilcox@buckeye-express.com]
ICQ 41060744
Registered Linux User 247790


Report Offensive Follow Up For Removal

Response Number 2
Name: joltz
Date: October 24, 2004 at 05:06:16 Pacific
Reply: (edit)

Yeah thats how i have been entering it al along and i still lose the setting after a while.


Report Offensive Follow Up For Removal

Response Number 3
Name: 3Dave
Date: October 27, 2004 at 02:49:30 Pacific
Reply: (edit)

Can your ADSL router act as a DNS server? Does it have your correct IP DNS servers in it? Are you using DHCP at all or are you able to use a static IP, gateway etc?


Report Offensive Follow Up For Removal

Response Number 4
Name: Sarcas
Date: October 30, 2004 at 08:20:07 Pacific
Reply: (edit)

Just thought I'd pitch in with this:
I've had the same problem as joltz - although I'm running Mandrake 10.0 (with some community updates) and using a Netopia 3300 series adsl modem/gateway/router. I'd already tried the same solutions as joltz, and was persuing another solution with the Control Center (I'll go over this at the end).

To answer 3Dave's question for my system: yes the ADSL router can and does act as a DNS server - the slow resolution seems to be caused by my box throwing DNS queries at the router which dithers before itself asking my ISP's DNS. The router gets these DNS addresses dynamically, and they are correct (when I've manually added nameservers to resolv.conf I used the addresses listed by my router and everything worked smoothly and quickly. Until resolv.conf got changed again). All of this is allocated via DHCP; I suppose I could try switching everything over to a static configuration, but I'm loathe to do so with the advatange that DHCP gives me for the wireless devices that are associated with the network.

Any ideas would be greatfully (I suspect it's to do with Mandrake's automagic Networking wizards that just reset the nameserver entry in resolv.conf to the gateway every so often. I have no idea how to stop this though).

Now..that other idea for joltz: if you reconfigure your connection using the New Collection wizard under the Networking & Internet section there is a step that asks for a fully qualified hostname. It also mentions that you can enter the gateway IP address and DNS addresses, although the format for this entry isn't specified (nor is it mentioned in the help files). I haven't figured out how this works yet, but even so it feels like a slight cludge. I suspect we'd be better off just going static.
Anyway - sorry for the long post. Hope someone can help.


Report Offensive Follow Up For Removal

Response Number 5
Name: 3Dave
Date: November 1, 2004 at 01:53:37 Pacific
Reply: (edit)

You can switch your mandrake machine to static but leave the wireless (I'm guessing) windoze based devices as DHCP providing your are not experiencing the same problem with them. Just set a reservation on your router for mandrake. Or use your mandrake box as the DHCP server.

Your dhcpd daemon will keep writing over your resolv.conf. If you want to use your own resolv.conf you can use a script similar to the following to start and stop your dhcp client:
http://www.rite-group.com/consulting/dhcp_client

If you know what DNS queries mandrake is asking then you can put them into your /etc/hosts file so that the DNS server is not needed to be asked.

The format for giving DNS servers is with IP number only. The gateway can be either an IP, FQDN or hostname. You can check and set your default gateway with the route command.


Report Offensive Follow Up For Removal


Response Number 6
Name: svoy
Date: November 4, 2004 at 09:28:53 Pacific
Reply: (edit)

Hey Finaly I found solutution of problem!

you should write DNS1 and DNS2 of your ISP in your G604T Router configuration manually!
and then save confiruation restart router and start dhcp client (dhclient) on your Mandrake box.

see attached picture.


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Linux Mandrake, DNS problems

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge