Fedora Linux Support Community & Resources Center
  #1  
Old 14th March 2012, 08:58 AM
1eftHer0 Offline
Registered User
 
Join Date: Jul 2011
Posts: 26
linuxchrome
DNS config problem.

I try to config follow this tutorial but it's not working

http://www.server-world.info/en/note...a_16&p=dns&f=1

every testing is pass but when type command dig that missing message "answer".
If my ip is 172.31.50.86 how i should be setting?
Reply With Quote
  #2  
Old 16th March 2012, 11:29 AM
pjfg
Guest
 
Posts: n/a
linuxopera
Re: DNS config problem.

Other than the fact that you are trying to configure bind, it is not clear what your problem is.

Best practice when posting questions and to give yourself the best opportunity of receiving help is to:

1. State what it is you are trying to achieve.
2. Show what steps you took.
3. The results of your actions, ideally with screen captures, copying of text direct from the terminal or log files.
4. What you wanted or expected to happen.
Reply With Quote
  #3  
Old 16th March 2012, 11:39 AM
1eftHer0 Offline
Registered User
 
Join Date: Jul 2011
Posts: 26
linuxchrome
Re: DNS config problem.

i take all step following the tutorial(i already taken Install bind, Set Zones, Start Bind). but only change ip address and domain name. every thing look like OK. but when i command dig it don't have answer from system. Try to access domain from web. It not found. (every thing same as tutorial but the differences is ip and domain name.)
Reply With Quote
  #4  
Old 16th March 2012, 12:45 PM
pjfg
Guest
 
Posts: n/a
linuxopera
Re: DNS config problem.

Quote:
Originally Posted by 1eftHer0 View Post
i take all step following the tutorial(i already taken Install bind, Set Zones, Start Bind). but only change ip address and domain name. every thing look like OK. but when i command dig it don't have answer from system. Try to access domain from web. It not found. (every thing same as tutorial but the differences is ip and domain name.)
I'd really like to help, but because you didn't still haven't described what it is you are wanting to achieve. Context is everything. Yes, I can see you're trying to setup bind with views but unless you give the bigger picture and start at the beginning anybody trying to help may miss something important.

You're still missing the showing of what went wrong. I can think of many reasons for dig not working but without the actual error or message that you got I'm still in the dark I'm afraid.

And again "It not found" isn't very descriptive. I can only guess (since you've not clarified) that you mean accessing your server via http:80 from an external address

DNS is complex, particularly if you are trying to be the authorative nameserver for your domain. Have you even set up your zone files? The link only shows the configuration for named.conf.
Reply With Quote
  #5  
Old 25th March 2012, 09:39 AM
1eftHer0 Offline
Registered User
 
Join Date: Jul 2011
Posts: 26
linuxchrome
Re: DNS config problem.

/etc/named.conf

Code:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
	#listen-on port 53 { 127.0.0.1; };
	#listen-on-v6 port 53 { ::1; };
	listen-on-v6 { none; };
	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     { localhost; 192.168.1.0/24;};
	recursion yes;

	dnssec-enable yes;
	dnssec-validation yes;
	dnssec-lookaside auto;

	/* Path to ISC DLV key */
	bindkeys-file "/etc/named.iscdlv.key";

	managed-keys-directory "/var/named/dynamic";
};

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

        zone "." IN {
                type hint;
                file "named.ca";
        };
        zone "chkkkk.com" IN {
                 type master;
                file "chkkkk.com.lan";
                allow-update { none; };
				allow-query     { any;};
        };
        zone "1.168.192.in-addr.arpa" IN {
                type master;
                file "1.168.192.db";
                allow-update { none; };
				allow-query     { any;};
        };
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
/var/named/1.168.192.db

Code:
$TTL 86400
@   IN  SOA     dlp.chkkkk.com. root.chkkkk.com. (
        2011110901  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
)
        IN  NS      dlp.chkkkk.com.
        IN  PTR     chkkkk.com.
        IN  A       255.255.255.0

5      IN  PTR     dlp.chkkkk.com.
/var/named/chkkkk.com.lan

Code:
$TTL 86400
@   IN  SOA     chkkkk.com. root.chkkkk.com. (
        2011110901  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
)
        IN  NS      dlp.chkkkk.com.
        IN  A       192.168.1.5
        IN  MX 10   mail.chkkkk.com.

dlp     IN  A       192.168.1.5
ifconfig

Code:
wlan0     Link encap:Ethernet  HWaddr 90:4C::):24:AD::C 
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7590 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8269 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5254025 (5.0 MiB)  TX bytes:1587326 (1.5 MiB)
/etc/resolve.conf

Code:
search chkkkk.com
 nameserver 192.168.1.5
This config can access chkkkk.com from my machine but can't to access from another machine.
Reply With Quote
  #6  
Old 25th March 2012, 11:40 AM
pjfg
Guest
 
Posts: n/a
linuxopera
Re: DNS config problem.

You mean, cannot resolve dlp.chkkkk.com from another host on your LAN (192.168.1.0/24)? Is that the problem?

You see, I'm confused and getting slightly frustrated because the config you were using as your template in your first post was using views, which you are apparently now not using.

You'd really be much better off describing what you are trying to achieve with this little project of yours rather than leaving it to guesswork.
Reply With Quote
  #7  
Old 25th March 2012, 12:13 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfirefox
Re: DNS config problem.

Welll, one error is specifying 255.255.255.0 as the address of dlp.chkkkk.com. root.chkkkk.com in the SOA.

255.255.255.0 is a netmask, not a valid IP number.
Reply With Quote
  #8  
Old 25th March 2012, 01:04 PM
1eftHer0 Offline
Registered User
 
Join Date: Jul 2011
Posts: 26
linuxchrome
Re: DNS config problem.

Quote:
Originally Posted by pjfg View Post
You mean, cannot resolve dlp.chkkkk.com from another host on your LAN (192.168.1.0/24)? Is that the problem?

You see, I'm confused and getting slightly frustrated because the config you were using as your template in your first post was using views, which you are apparently now not using.

You'd really be much better off describing what you are trying to achieve with this little project of yours rather than leaving it to guesswork.
sorry i change a location now my ip is 192.168.1.5 (other computer ip is 192.168.1.1) and cidr is 192.168.1.0/24.

---------- Post added at 07:04 PM ---------- Previous post was at 06:51 PM ----------

Quote:
Originally Posted by jpollard View Post
Welll, one error is specifying 255.255.255.0 as the address of dlp.chkkkk.com. root.chkkkk.com in the SOA.

255.255.255.0 is a netmask, not a valid IP number.
well, i changed it. but also can't access chkkkk.com from 192.168.1.1
Reply With Quote
  #9  
Old 25th March 2012, 01:32 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfirefox
Re: DNS config problem.

You should be able to access dlp.chkkkk.com though.

It looks like you don't have a address record for chkkkk.com.

Note: so far this only addresses forward records. Reverse lookups are not defined (yet).
Reply With Quote
  #10  
Old 26th March 2012, 04:15 AM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: DNS config problem.

Maybe instead of commenting out listen-on in named.conf try making it listen on port 53 { any };
__________________
======
Doug G
======
Reply With Quote
Reply

Tags
config, dns, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem on config NFS satimis Linux Chat 0 30th October 2006 03:47 AM
PHP Config problem.. NiteMonq Using Fedora 6 13th May 2005 03:31 AM
YUM config problem mchapman Using Fedora 3 25th January 2005 03:02 AM


Current GMT-time: 21:24 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat