nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Problem in DNS

This is a discussion on Problem in DNS within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; hi i m newbee in rhel5. i m using rhel5 in vmware. my main OS is XP. where i m ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-30-2008, 05:11 PM
Junior Member
User
 
Join Date: Jun 2008
My distro: RHEL
Posts: 4
Rep Power: 0
priyank123 is on a distinguished road
Question Problem in DNS

hi
i m newbee in rhel5. i m using rhel5 in vmware. my main OS is XP.
where i m wrong. so pls correct my config file.

thanku

my ip configure detail is

XP IP 192.168.1.10
Rhel5 in vmware 192.168.1.100
DG 192.168.1.1
dns server ip is
69.68.87.85
69.68.87.86

this is my resolve.conf

search jak.com
nameserver 192.168.1.100
nameserver 69.68.87.85
nameserver 69.68.87.86

this is my named.conf

//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named( DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
acl network { 192.168.1.0/24; };
options {
listen-on port 53 { 127.0.0.1; 192.168.1.100; };
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";
forward only;
query-source port 53;
query-source-v6 port 53;
allow-query { localhost; network; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { localhost; network; };
match-destinations { localhost; network; };
recursion yes;


zone "jak.com" IN {
type master;
file "jak.com.zone";
allow-update { network; };
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.100.zone";
allow-update { network; };
};
include "/etc/named.rfc1912.zones";
};
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-30-2008, 06:24 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You have not mentioned your problem.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 07-31-2008, 11:04 PM
Junior Member
User
 
Join Date: Jun 2008
My distro: RHEL
Posts: 4
Rep Power: 0
priyank123 is on a distinguished road
Default hi

well nix
i just want to know that did i configure the those file perfectly or not.


thanku
Reply With Quote
  #4 (permalink)  
Old 08-01-2008, 03:45 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Looks ok to me, but there are tools to check syntax:
  1. Check BIND - DNS Server configuration file for errors with named-checkconf tools
  2. Troubleshoot Linux / UNIX bind dns server zone problems with named-checkzone tool
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 08-05-2008, 07:51 PM
Junior Member
User
 
Join Date: Jun 2008
My distro: RHEL
Posts: 4
Rep Power: 0
priyank123 is on a distinguished road
Default hiiiiiiiiii

named-checkconf -t /var/named/chroot/etc/named.conf

i used this cmd and i got an error that "isc_dir_chroot" invalid file name

so what sould i do?

thanku
Reply With Quote
  #6 (permalink)  
Old 08-05-2008, 09:59 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Try
Code:
named-checkconf -t /var/named/chroot
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks

Tags
bind , dns , domain server , named , named-checkconf


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 On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 02:46 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36