LinuxQuestions.org
Review your favorite Linux distribution.
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 08-04-2004, 02:32 PM   #1
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
DNS Service not working all the time


Hi, this is my problem. clients cannot persistently type"nslookup myserver.net, ns1,myserver.net, ns2.myserver.net and get a proper reply. It returns with a reply saying domain not found. I leave the computers on for a while and when i return and try the command again it replies with the servername and ip address. I have no idea why it keeps doing that.


This is my /etc/named.conf file:

Code:
//-----MYSERVER.NET--------------------
zone "myserver.net" in
{
        type master;
        file "myserver.net.zone";
};


zone "ns1.myserver.net" in
{
        type master;
        file "ns1.myserver.net.zone";
};

zone "ns2.myserver.net" in
{
        type master;
        file "ns2.myserver.net.zone";

};
zone "4.16.172.in-addr.arpa" in
{
        type master;
        file "172.16.4.zone";
};

zone "31.16.172.in-addr.arpa" in
{
        type master;
        file "172.16.31.zone";
        forwarders {172.16.4.253;};
};
//--------------------------------
My myserver.net.zone file just contains the names of the 3 nameservers and the addresses myserver.net listens on.


This is my ns1.myserver.net/ns2.myserver.net file(IP addresses different in both files):

Code:
$TTL 1W
@               IN SOA  @   root (
                                42              ; serial (d. adams)
                                2D              ; refresh
                                4H              ; retry
                                6W              ; expiry
                                1W )            ; minimum


                IN NS           ns1.myserver.net.
                IN NS           ns2.myserver.net.
                IN A            172.16.4.253


this is one of reverse address file:



Code:
$TTL 1W
@               IN SOA          myserver.net.  root.myserver.net. (
                                42              ; serial (d. adams)
                                2D              ; refresh
                                4H              ; retry
                                6W              ; expiry
                                1W )            ; minimum


                   IN NS           @
253             IN PTR          myserver.net.
clients can ping the server names but cannot do nslookup.
I hope somebody can help me out with this problem.
 
Old 08-05-2004, 12:30 PM   #2
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Original Poster
Rep: Reputation: 17
Nevermind. I found out the problem was from a misconfigured /etc/resolv.conf fle.
 
Old 08-05-2004, 01:45 PM   #3
BrianWGray
Member
 
Registered: Oct 2003
Posts: 54

Rep: Reputation: 15
Curiosity

so just out of curiousity what was it in the .conf that caused the spuratic operation?
 
Old 08-05-2004, 04:14 PM   #4
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Original Poster
Rep: Reputation: 17
Code:
search myserver.net
#try ns1.myserver.net
nameserver 172.16.4.253
#then try ns2.myserver.net
nameserver 172.20.31.255
#finally dm1.w2200.myserver.net
nameserver 192.168.1.1





#nameserver 172.16.4.253
#nameserver 172.16.31.255
#nameserver 192.168.1.1
#search ns1.myserver.net ns2.myserver.net dm1.w2200.myserver.net
For some reason it didnt like the way it was written. The commented section is where i found the problem. The top section shows the changes i made in the file. Next to nothing changed in the way I wrote it, just the format.

By the way the commented version was written from the YaST GUI.
 
  


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 service error LinuxRam Linux - Networking 4 09-12-2004 05:26 AM
Dns Service praveenv Linux - Newbie 2 09-08-2004 12:24 PM
Dynamic Ip Dns Service murphyyoung Linux - Networking 2 06-19-2004 02:34 PM
DNS ERROR: Name or service not known. rioguia Linux - Networking 25 10-21-2003 09:46 AM
DNS Service ddepuemd Linux - Networking 1 05-16-2002 11:17 AM

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

All times are GMT -5. The time now is 04:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration