Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > Fedora 12 DNS problen

Forgot Password?
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 11-20-2009   #1 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 10
Exclamation Fedora 12 DNS problen

Hi everybody,

I reinstalled my gateway yesterday and it seems like named is causing issues that it did not do before on other versions. I am running named on the external interface to advertise the domains I'm hosting and on the internal and local interface as a caching server.

The named.conf file follows:

Code:
options {
	listen-on port 53 { any; };
	listen-on-v6 port 53 { ::1; };
	directory 	"/var/named";
	dump-file 	"/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
	allow-query { any; };
	query-source address * port 53;
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

view "localhost_resolver"
{
        match-clients           { localhost; 10.0.0.1; 10.0.0.0/8; };
        recursion yes;

        zone "." IN {
                type hint;
                file "/var/named/named.ca";
        };

    zone "MY_REV_IP.in-addr.arpa" {
	type master;
        notify no;
        file "named.rev.domains";
        allow-query { any; };
    };

    zone "domain1"{
    	type master;
    	file "named.domain1";
    	notify no;
    	allow-query { any; };
    }; 

    zone "domain2"{
    	type master;
    	file "named.domain2";
    	notify no;
    	allow-query { any; };
    }; 

    include "/etc/named.rfc1912.zones";
};

view external {

    match-clients { any ; };
    recursion no;
    
    zone "." IN {
	type hint;
	file "/var/named/named.ca";
    };

    zone "MY_REV_IP.in-addr.arpa" {
	type master;
        notify yes;
        file "named.rev.domains";
        allow-query { any; };
        also-notify { ISP_DNS };
    };

    zone "domain1"{
    	type master;
    	file "named.domain1";
    	notify yes;
    	allow-query { any; };
    	also-notify { ISP_DNS };
    }; 

    zone "domain2"{
    	type master;
    	file "named.domain2";
    	notify yes;
    	allow-query { any; };
    	also-notify { ISP_DNS };
    }; 
};
Also, here is one of the domains config zones:

Code:
$TTL 604800
domain1.    IN      SOA  ns1.domain1.  hostmaster.domain1. (
    200911200; serial
    86400 ; refresh
    7200 ; retry
    1209600 ; expire
    604800 ) ; default_ttl
    IN A	MY_PUBLIC_IP
;
; Name servers for the domain
;
    IN NS		ns1.domain1.
    IN NS		ns2.domain1.
;
; Mail server for domain
;
	IN MX	5	mail
;
; Nodes in domain
;
node1		IN A		MY_PUBLIC_IP
ns1		IN A		MY_PUBLIC_IP
mail		IN A		MY_PUBLIC_IP
radio		IN A		MY_PUBLIC_IP
cubemail	IN A		MY_PUBLIC_IP
node2		IN A		MY_PUBLIC_IP
ns2		IN A		MY_PUBLIC_IP
;
; Aliases to existing nodes in domain
;
www	 IN CNAME	node1
ftp	 IN CNAME	node1
I will attach also the /var/log/maillog section where you can see the domains and if you look, you will notice that named sends notifies on the external "view", so the ISP DNS should receive the advertisements.

Code:
Nov 20 09:08:03 server_name named[9706]: zone MY_IP_REV.in-addr.arpa/IN/external: loaded serial 200911200
Nov 20 09:08:03 server_name named[9706]: zone domain1/IN/external: loaded serial 200911200
Nov 20 09:08:03 server_name named[9706]: zone domain2/IN/external: loaded serial 200911200
Nov 20 09:08:03 server_name named[9706]: zone domain3/IN/external: loaded serial 200911200
Nov 20 09:08:03 server_name named[9706]: zone domain4/IN/external: loaded serial 200911200
Nov 20 09:08:03 server_name named[9706]: zone MY_IP_REV.in-addr.arpa/IN/external: sending notifies (serial 200911200)
Nov 20 09:08:03 server_name named[9706]: zone domain1/IN/external: sending notifies (serial 200911200)
Nov 20 09:08:03 server_name named[9706]: zone domain2/IN/external: sending notifies (serial 200911200)
Nov 20 09:08:03 server_name named[9706]: zone domain3/IN/external: sending notifies (serial 200911200)
Nov 20 09:08:03 server_name named[9706]: zone domain4/IN/external: sending notifies (serial 200911200)
Nov 20 09:08:03 server_name named[9706]: running
Nov 20 09:08:03 server_name named[9706]: client MY_PUBLIC_IP#63545: view localhost_resolver: received notify for zone 'MY_IP_REV.in-addr.arpa'
Nov 20 09:08:03 server_name named[9706]: client MY_PUBLIC_IP#63545: view localhost_resolver: received notify for zone 'domain1'
Nov 20 09:08:04 server_name named[9706]: client MY_PUBLIC_IP#33243: view localhost_resolver: received notify for zone 'domain2'
Nov 20 09:08:04 server_name named[9706]: client MY_PUBLIC_IP#33243: view localhost_resolver: received notify for zone 'domain3'
Nov 20 09:08:04 server_name named[9706]: client MY_PUBLIC_IP#33243: view localhost_resolver: received notify for zone 'domain4
If I do a query from kloth.net (for example), the DNS is answering, but for some reason is not advertising the domains. The iptables rules are the following:

Code:
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  10.0.0.0/8           anywhere            
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:openvpn 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:openvpn 
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:kme-trap-port 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:infowave 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ftp-data 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ftp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:servexec 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:down 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:smtp 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:smtp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:umsp 
ACCEPT     udp  --  anywhere             anywhere            udp spt:domain 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:http 
ACCEPT     udp  --  anywhere             anywhere            udp spt:http 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:webcache 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:50000:51000 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:pop3 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:snmp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:https 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:microsoft-ds 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:openvpn 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:openvpn 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:ntp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:mysql 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:irdmi 
DROP       icmp --  anywhere             anywhere            icmp echo-request 
DROP       icmp --  anywhere             anywhere            icmp echo-reply 
DROP       icmp --  anywhere             anywhere            

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
DROP       tcp  --  anywhere             anywhere            tcp spts:netbios-ns:netbios-ssn 
DROP       udp  --  anywhere             anywhere            udp spts:netbios-ns:netbios-ssn 
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             10.0.0.101          tcp dpt:http 
ACCEPT     tcp  --  anywhere             10.0.0.102          tcp dpt:http 
ACCEPT     tcp  --  anywhere             10.0.0.2            tcp dpt:vnc-server 
ACCEPT     tcp  --  anywhere             10.0.0.3            tcp dpt:5901 
ACCEPT     tcp  --  anywhere             10.0.0.2            tcp dpt:60000 
ACCEPT     udp  --  anywhere             10.0.0.2            udp dpt:60000 
ACCEPT     tcp  --  anywhere             10.0.0.3            tcp dpt:60001 
ACCEPT     udp  --  anywhere             10.0.0.3            udp dpt:60001 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             10.0.0.0/8          
DROP       tcp  --  anywhere             anywhere            tcp spts:netbios-ns:netbios-ssn 
DROP       udp  --  anywhere             anywhere            udp spts:netbios-ns:netbios-ssn 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:ftp-data 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:ftp 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:servexec 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:down 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:smtp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:smtp 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:nicname state NEW 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:umsp 
ACCEPT     udp  --  anywhere             anywhere            udp spt:domain 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:http 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:http 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:webcache 
ACCEPT     tcp  --  anywhere             anywhere            tcp spts:50000:51000 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:pop3 
ACCEPT     udp  --  anywhere             anywhere            udp spt:snmp 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:https 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:microsoft-ds 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:openvpn 
ACCEPT     udp  --  anywhere             anywhere            udp spt:openvpn 
ACCEPT     udp  --  anywhere             anywhere            udp spts:filenet-rpc:65535 dpts:traceroute:33523 state NEW 
ACCEPT     udp  --  anywhere             anywhere            udp spt:ntp 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:mysql 
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:irdmi 
ACCEPT     icmp --  anywhere             anywhere            icmp echo-request
If I do nslookup at the provider I'm getting:

Code:
nslookup domain1
;; Got SERVFAIL reply from ISP_DNS1, trying next server
;; Got SERVFAIL reply from ISP_DNS2, trying next server
Server:		ISP_DNS1
Address:	ISP_DNS1#53

** server can't find domain1: NXDOMAIN
But when I nslookup for it locally or on the internal interface, it answers:

Code:
nslookup domain1 127.0.0.1
Server:		127.0.0.1
Address:	127.0.0.1#53

Name:	domain1
Address: MY_PUBLIC_IP
I tried to do DNS query from outside to yahoo.com and it refuses, so it is not a public DNS, that is fine as in the configuration. So, here, it behaves as it should. I will also attach the log for it:

Code:
Nov 20 09:50:46 server_name named[9706]: client 88.198.39.133#16791: view external: query (cache) 'yahoo.com/A/IN' denied
I don't know if my DNS is sending advertisements. How can I check? Can anybody help me? My domain has been down for more than 24 hours and I'm losing e-mails. LOTS!

Thank you...
bogdan_bartos is offline  



Reply With Quote
Old 11-20-2009   #2 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,360
What are the real names for 'domain1' and 'domain2' and any other domain that is not working?
If you expect help we need real world names to check with.
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 11-20-2009   #3 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 10
In this case domain1 is blueuniverse.org. I found what the issue is, but I need a way to avoid it. When I bought the domain, I had to associate it with 2 nameservers, that NEED to have IPs associated with them. The IPs are actually the same:

ns1.blueuniverse.org as 68.147.9.25
ns2.blueuniverse.org as 68.147.9.25

The registrar is misk.com.

Now the problem is the registrar because it probably doesn't have a DDNS service that I could use to change my IP when it changes dynamically. What would be your advice in this case? Is there a free DDNS service out there to transfer the domain without cost? Do I actually have to move the domain in order to make it work?

Thank you!
bogdan_bartos is offline   Reply With Quote
Old 11-22-2009   #4 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,360
Sorry it has taken me so long to get back. Work is killing me at the moment.

As to DDNS I don't know or could not recommend any as I do not use them. You should be able to search the web and find one that you like.
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 11-22-2009   #5 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 10
I talked to misk.com and they told me that every time a nameserver IP address changes, I have to wait 48 to propagate, so for now I'm stuck with this solutions. The ISP I'm connected to could offer static IP addresses for an amount of money, but they could offer this service at no cost (they are not willing to do it). My main issue was actually coming from the nameserver propagation.

In the end my DNS is configured properly. Thenk you for all the help. And...for the records, I'm in Canada and I'm using Shaw Cable...
bogdan_bartos is offline   Reply With Quote
Old 11-23-2009   #6 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,360
As stated I don't use any of these but this GOOGLE Search I seen one that might be what you are looking for. It is the second one down. Look at all of them you might find something that fits your needs.
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:33 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1