Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 02-12-2004, 09:03 PM   #1
LQ Newbie
Registered: Feb 2004
Location: Toronto
Distribution: RedHat Linux
Posts: 2

Rep: Reputation: 0
DNS can't connect to name server


I am trying to set up a DNS server for using a machine with a fresh install of RH9 fully updated.

I get the following error:
named-xfer[20373]: connect( for zone
failed: Connection timed out

It seems that my firewall is not letting signals through to port 53 which named is listening on. My Linksys router is forwarding port 53 among others to my local IP

Another strange thing that has gone wrong while trying to get DNS working and is probably related is that my Mozilla browser can find sites by IP number but can't resolve hosts using domain names.

If anyone has any ideas of what I might be doing wrong, please advise me. I have been struggling with this for weeks now. I have cut and pasted all the relevant configuration files below, please let me know if there is another file that I should include.

Thanks for any assistance,

Named.conf file:
options {
query-source address * port 53;
listen-on {;
directory "/var/named";
forward first;
forwarders {;;

- - -

zone "" {
type master;
file "";
allow-transfer {; };
}; file:

$TTL 600
@ IN SOA (
14 ; Serial
288 ; Refresh
14400 ; Retry
3600000 ; Expire
600 ) ; Minimum
; Name servers

; Mail server for domain
IN MX 10

; Public servers
localhost IN A
ns1 IN A
mail IN A
www IN A
ftp IN A

Network Configuration (GUI):

Host -
Primary DNS -
Secondary DNS -
Tertiary DNS -
DNS Search Path -

Resolve.conf file:

; generated by /sbin/dhclient-script - Rfk added local IP line search nameserver nameserver nameserver

hosts file:

# Do not remove the following line, or various programs
# that require network functionality will fail. localhost.localdomain localhost ns1
Old 02-13-2004, 08:50 AM   #2
Registered: Sep 2003
Posts: 91

Rep: Reputation: 15
Does it work with the firewall disabled?

The problem with Mozilla is it can't find a DNS server; all part of the same problem.

Old 02-13-2004, 01:46 PM   #3
LQ Newbie
Registered: Feb 2004
Location: Toronto
Distribution: RedHat Linux
Posts: 2

Original Poster
Rep: Reputation: 0

Hi Alan,

I have a linksys router serving serveral computers in the house and can't bypass it. I am serving http successfully. The router is set to DMZ and to port forward for

When I go to "dnsreport" dot com and enter the domain I am working on I see an IP there that has nothing to do with me. My static IP is

You are right, whatever it takes the next logical step is to get beyond the router. Also, I removed the RH linux firewall just in case it was interfering.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
dns client cannot resolve on dns server jtvillegas Linux - Software 3 03-12-2016 03:30 PM
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
Do I leave primary and seconday DNS blank for a DNS Server? imsam Linux - Networking 3 10-25-2004 01:48 PM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration