LinuxQuestions.org
Visit Jeremy's Blog.
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 10-20-2006, 11:26 AM   #1
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Rep: Reputation: 15
My DNS Server doesnt work, what's wrong?


My /etc/named.conf

Code:
//
// named.conf for Red Hat caching-nameserver
//

options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
         // query-source address * port 53;
        forwarders {
                192.168.1.254;
                };
};

//
// a caching only nameserver config
//
controls {
        inet 192.168.1.2 port 53 allow { 192.168.1.0; } keys { rndckey; };
};


include "/etc/rndc.key";



zone "0.1.168.192.in-addr.arpa" {
        type master;
        file "/var/named/192.168.1.0.rev";
        };
zone "ipcoms.com" {
        type master;
        file "/var/named/ipcoms.com.hosts";
        };
When I try "nslookup" at this linux box, it seems okay, can resolve name to ip. However, when i try to point DNS server on Windows box to that server, use "nslookup" to test, it responds that not found server.

What's wrong???
 
Old 10-20-2006, 12:43 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Can the windows box hit port 53 on your linux dns server?

-twantrd
 
Old 10-20-2006, 12:55 PM   #3
alienux
Member
 
Registered: Sep 2006
Location: Dayton, Ohio
Distribution: Slackware 12, Fedora Core, PCLinuxOS
Posts: 194

Rep: Reputation: 30
Yes, typical linux firewalls do not open port 53 by default. Make sure you open that port on the DNS server if you have a firewall enabled.
 
Old 10-20-2006, 11:40 PM   #4
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
I have opened port TCP/53 and UDP/53 however clients still can not send a query to it!!!
 
Old 10-21-2006, 05:32 AM   #5
alienux
Member
 
Registered: Sep 2006
Location: Dayton, Ohio
Distribution: Slackware 12, Fedora Core, PCLinuxOS
Posts: 194

Rep: Reputation: 30
Two questions:

1. Is the Windows box on the same subnet as the DNS server?

2. Is there any other firewall between the two machines?
 
Old 10-22-2006, 02:26 AM   #6
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
From the windows box, telnet to port 53 on your dns server. That will let you know right away.

-twantrd
 
Old 10-22-2006, 04:09 AM   #7
linuxjamil
Member
 
Registered: Dec 2005
Distribution: Fedora Core 5, Sun Solaris 8
Posts: 122

Rep: Reputation: 15
Thumbs down DNS Entry

zone "0.1.168.192.in-addr.arpa" {
type master;
file "/var/named/192.168.1.0.rev";
};



first of all errors------in the zine entry zone "0. will not be . That means last octet will not be in the zone entry


it will be
zone "1.168.192.in-addr.arpa"
 
Old 10-22-2006, 09:14 PM   #8
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
1. My Windows box stays on the same subnet with Linux box.
2. There's a firewall on Linux box but port 53 is opened. I capture packet by Ethereal and see request and reply packet on port 53.
3. Maybe my reverse lookup zone was wrong as linuxamil comment. I will try to modify it.

Anyways, after i have rebooted Linux box, my BIND seems not running now. I can not nslookup though I am on the Linux. I have stared named deamon:
Code:
[root@spider ~]# ps -ef | grep named
named     3272     1  0 Oct21 ?        00:00:00 /usr/sbin/named -u named -t /var/named/chroot
root     11282 11249  0 21:22 pts/1    00:00:00 grep named
[root@spider ~]#
Any idea?
 
Old 10-22-2006, 11:02 PM   #9
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
hey, my DNS is working now after i've modified the reverse lookup zone. Thank all you guys for ur great help.
 
  


Reply


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 doesnt work in any distro helfire Linux - Networking 12 06-16-2005 08:53 PM
BIND doesnt work on my server jspsandhu Linux - Networking 5 05-28-2005 05:04 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
why doesn't my DNS server work? asit_monty Linux - Networking 0 04-06-2004 07:01 AM
something's wrong with dns server of mine zeroboys Linux - Networking 0 03-17-2004 02:04 PM

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

All times are GMT -5. The time now is 05:08 AM.

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