Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-20-2006, 11:26 AM
|
#1
|
|
Member
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117
Rep:
|
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???
|
|
|
|
10-20-2006, 12:43 PM
|
#2
|
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,430
Rep:
|
Can the windows box hit port 53 on your linux dns server?
-twantrd
|
|
|
|
10-20-2006, 12:55 PM
|
#3
|
|
Member
Registered: Sep 2006
Location: Dayton, Ohio
Distribution: Slackware 12, Fedora Core, PCLinuxOS
Posts: 194
Rep:
|
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.
|
|
|
|
10-20-2006, 11:40 PM
|
#4
|
|
Member
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117
Original Poster
Rep:
|
I have opened port TCP/53 and UDP/53 however clients still can not send a query to it!!!
|
|
|
|
10-21-2006, 05:32 AM
|
#5
|
|
Member
Registered: Sep 2006
Location: Dayton, Ohio
Distribution: Slackware 12, Fedora Core, PCLinuxOS
Posts: 194
Rep:
|
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?
|
|
|
|
10-22-2006, 02:26 AM
|
#6
|
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,430
Rep:
|
From the windows box, telnet to port 53 on your dns server. That will let you know right away.
-twantrd
|
|
|
|
10-22-2006, 04:09 AM
|
#7
|
|
Member
Registered: Dec 2005
Distribution: Fedora Core 5, Sun Solaris 8
Posts: 122
Rep:
|
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"
|
|
|
|
10-22-2006, 09:14 PM
|
#8
|
|
Member
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117
Original Poster
Rep:
|
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?
|
|
|
|
10-22-2006, 11:02 PM
|
#9
|
|
Member
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117
Original Poster
Rep:
|
hey, my DNS is working now after i've modified the reverse lookup zone. Thank all you guys for ur great help.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:07 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|