LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-22-2008, 08:55 AM   #1
gothrog
Member
 
Registered: Jun 2004
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106

Rep: Reputation: 15
DNS Error


I'm having an issue getting an Internal DNS server working on a Fedora 10.

The client machine is a windows 2003 server that has the DNS Server IP set as 192.168.0.2. I can ping the IP, but not the hostname.

When I do a nslookup on the hostname I get:
Can't find server name for address 192.168.0.2: No Server Response

I have the firewall shutoff.
I used the Fed 10 Live disk and I thought that I installed everything I needed using YUM. The named is installed and running so I assume it downloaded all the dependencies. Is there something else I missed?

In named.conf:

server 192.168.0.2{
};
options {
allow-query {localhost; 192.168.0.0/24; };
listen-on port 53 { };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/name/data/cache_dump.db";
statistics-file "/var/name/data/named_stats.txt";
memstatistics-file "/var/name/data/named_mem_stats.txt";
recursion yes;
};

zone "MyMachine" IN {
type master;
allow-query { any; };
allow-update { none; };
file "MyMachine.zone";
};


In MyMachine.zone

$TTL 1D
@ IN SOA @ rname.invalid. (
1
1D
1H
1W
3H )
NS @
IN 1D A 0.0.0.0
MyMachine A 192.168.0.2
AAAA ::1


----------
I also can't do the nslookup on the server. However I can ping the hostname.

Last edited by gothrog; 12-22-2008 at 10:39 AM.
 
Old 12-22-2008, 10:41 AM   #2
gothrog
Member
 
Registered: Jun 2004
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106

Original Poster
Rep: Reputation: 15
I made this change to the /etc/named.conf
listen-on port 53 { any; };

When I do a nslookup on the hostname from the client I get:
Can't find server name for address 192.168.0.2: Timed Out
 
Old 12-22-2008, 10:46 AM   #3
gothrog
Member
 
Registered: Jun 2004
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106

Original Poster
Rep: Reputation: 15
I added this to the /etc/named.rfc1912.zones file.
zone "2.0.168.192.in-addr.arpa" IN {
type master;
file "MyMachine.zone";
allow-update { none; };
};

Now I get this on the client when doing the nslookup:
Can't find server name for address 192.168.0.2: No Information
2.0.168.192.in-addr.arpa
...
...
...
DNS request timed out.
timeout was 2 seconds.

Does anyone know what I'm doing wrong?
 
Old 12-22-2008, 12:22 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
Originally Posted by gothrog View Post
In named.conf:

server 192.168.0.2{
};
You should be able to remove this.

Quote:
...

zone "MyMachine" IN {
type master;
allow-query { any; };
allow-update { none; };
file "MyMachine.zone";
};
You need to make up a domain name, it doesn't have to exist for real (in fact, it shouldn't exist unless you bought it, because otherwise you're making it a "black hole"). It should look something like this:

PHP Code:
zone "my-fake-domain-that-doesnt-exist.com" IN {
    
type master;
    
allow-query localhost192.168.0.0/24; };
    
allow-update none; };
    
file "mfdtde.zone";
};

zone "0.168.192.in-addr.arpa" IN {
    
type master;
    
allow-query localhost192.168.0.0/24; };
    
file "192.168.0.reverse";
    
allow-update none; };
}; 
Quote:
In MyMachine.zone

$TTL 1D
@ IN SOA @ rname.invalid. (
1
1D
1H
1W
3H )
NS @
IN 1D A 0.0.0.0
MyMachine A 192.168.0.2
AAAA ::1
Should look like:

PHP Code:
$TTL 1D
IN SOA  ns1.my-fake-domain-that-doesnt-exist.comhostmaster.my-fake-domain-that-doesnt-exist.com. (
                                
2008122201 serial
                                28800      
refresh
                                300        
retry
                                2419200    
expire
                                3600       
minimum
                                
)
            
IN NS ns1.my-fake-domain-that-doesnt-exist.com.
ns1         IN A 192.168.0.2
windowsbox  IN A 192.168.0.3 
192.168.0.reverse:
PHP Code:
$TTL 1D
IN SOA  ns1.my-fake-domain-that-doesnt-exist.comhostmaster.my-fake-domain-that-doesnt-exist.com. (
                                
2008122201 serial
                                28800      
refresh
                                300        
retry
                                2419200    
expire
                                3600       
minimum
                                
)
     
IN NS ns1.my-fake-domain-that-doesnt-exist.com.
2    IN PTR ns1.my-fake-domain-that-doesnt-exist.com.
3    IN PTR windowsbox.my-fake-domain-that-doesnt-exist.com
 
Old 12-22-2008, 03:09 PM   #5
gothrog
Member
 
Registered: Jun 2004
Distribution: Yellow Dog, Fedora, RedHat, Centos, Ubuntu, Suse Linux
Posts: 106

Original Poster
Rep: Reputation: 15
Thanks chort.

On the server when I do an nslookup I was able to do it on the MyMachine name.

Now I have to do the nslookup using ns1.MyMachine.com. This is working fine on the server.

Unfortunately I'm still having issues on the client side when doing the nslookup.
Error:
DNS request timed out

I'm doing a nslookup -d2 ns1.MyMachine.com. It looks like it is appending on an additional domain name.
Results before error:

QUESTIONS:
ns1.MyMachine.com.xxx.yy.otherDomainThatIsPublicForTheFirstNICard.com, type = A class = IN

DNS request timed out.
timeout was 2 seconds.

There is no "ANSWER:" portion for this one.

Any idea of what I should do about picking up the other domains that are for the work public network?

Or is this alright? I can ping the ns1.MyMachine.com from the client side. Is it possible that I'll have some unknown issue with the DNS? Normally if I can ping I think I'm alright.

Last edited by gothrog; 12-22-2008 at 03:11 PM.
 
  


Reply

Tags
bind, dns, forward, reverse, zones



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 error bunty82 Linux - Server 5 07-31-2008 02:41 PM
DNS Error jackduh Linux - Networking 1 06-18-2008 05:02 PM
dns error rohit_67066 Linux - Server 5 01-29-2008 03:35 AM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM

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

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