LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-24-2008, 11:54 PM   #1
ernst
Member
 
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Rep: Reputation: 15
Skolelinux (debian edu) DNS for external internet access


Hi,
The installation of Skolelinux leaves the system in a state where the local DNS server is set up for only internal name resolution. While I can ping the internet it will not resolve an external URL.

The documentation says that external access needs to be configured in the DNS server but I could not find how. I am not familiar with the setup in Skole.

Thank you for your help
Ernst
 
Old 08-25-2008, 12:06 AM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Could you clarify - do you have a DNS server on your network or do you plan to use the system in question as a DNS server?
 
Old 08-25-2008, 12:14 AM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
How is your machine assigned an IP address? Is it via DHCP or a static entry?

When it is via DHCP, the DHCP server usually tells the machine what DNS to use. Otherwise, you need to add DNS machines to /etc/resolv.conf, for example, lines like:

nameserver 203.12.160.35
nameserver 203.12.160.36

If you do have DHCP but your /etc/resolv.conf file is not being automatically updated, you will have to type in entries as above.
 
Old 08-25-2008, 12:18 AM   #4
ernst
Member
 
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Original Poster
Rep: Reputation: 15
The machine has a statically assigned IP address of 10.0.2.2

Contents of resolv.conf is:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search intern

named is running so it seems that DNS request should be resolved by named on localhost
and named should be told to forward request to external DNS if it cannot resolve locally.
I do not know how to do that.

Last edited by ernst; 08-25-2008 at 12:31 AM.
 
Old 08-25-2008, 01:01 AM   #5
ernst
Member
 
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Original Poster
Rep: Reputation: 15
Just noticed that the webbrowser is configured to go through squid proxy server port 3128.

This may not have any effect on resolver?
 
Old 08-25-2008, 05:25 AM   #6
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Smile

[QUOTE=ernst;3258574]Hi,
The installation of Skolelinux leaves the system in a state where the local DNS server is set up for only internal name resolution. While I can ping the internet it will not resolve an external URL.
[QUOTE]

I assume that by DNS server (there is a choice) that you mean Bind. Bind is one of the more difficult things for a first-timer to set up as it is very versatile and allows many different configurations and the exact configuration depends on how more or less everything else is set up in your networking configuration.

Quote:
Just noticed that the webbrowser is configured to go through squid proxy server port 3128.
Well it does raise the question whether squid is working. Do you actually have squid running succesfully? Does it have the right 'listen on' port (3128 is the default, I believe, but it can be configured to use anything)? Squid also does (this may be configurable) a check on whether address resolution when it starts, and, if I remember correctly, issues an error message and quits if it isn't. Are there any error messages in your logs?
 
Old 08-25-2008, 05:49 AM   #7
ernst
Member
 
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Original Poster
Rep: Reputation: 15
I think this is the solution.

vi /etc/bind/debian-edu/named.conf.options
uncomment the section about 'forwarders' and set the IP addresses to the DNS given by my ISP

/etc/init.d/bind9 restart

I am happy. Now browsing works. Aptitude works.
 
  


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
pppoe internet can ping external IP,but resolving NAT DNS fails deepclutch Debian 8 02-29-2008 04:31 AM
LXer: Debian Edu project releases Skolelinux 3.0 LXer Syndicated Linux News 0 07-24-2007 09:46 AM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 12:33 PM
ipchains ? Unable to access internet ... dns error ! mystique98ls Linux - Newbie 5 09-17-2004 09:06 AM
Internet Sharing can resolve external ip addresses but no access tragic_comic Linux - Newbie 2 10-13-2003 07:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:37 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