LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-27-2006, 04:42 PM   #1
louisb
Member
 
Registered: Aug 2003
Posts: 199

Rep: Reputation: 15
DNS and Domain Creation


I'm running RHE 4 AS and I'm trying to create a Domain and DNS server on the same machine. I've included below my DNS Configuration. My machine has two NICs eth0 is connect to my router and eth1 is connect to my internal network. eth1 has an internal IP address of 192.168.20.8/255.255.255.0. My DNS configuration:

named.conf *************************

//
// named.conf for Red Hat caching-nameserver
//

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

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

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

//zone "localhost" IN {
// type master;
// file "localhost.zone";
// allow-update { none; };
//};

zone "20.168.192.in-addr.arpa.zone" IN {
type master;
file "20.168.192.in-addr.arpa.zone";
allow-update { none; };
};

zone "silsby.local" IN {
type master;
file "silsby.local.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};

include "/etc/rndc.key";

hosts ******************************

# Do not remove the following line, or various programs
# that require network functionality will fail
127.0.0.1 localhost.localdomain localhost
192.168.20.8 cscdserver8.silsby.local cscdserver8

/var/named/silsby.local.zone *****************

$TTL 86400
@ IN SOA cscdserver8.silsby.local. root.silsby.local. (
2006022601 ; serial
28800 ; refresh
7200 ; retry
604600 ; expire
86400 ; ttl
)
IN NS 192.168.20.8


/var/named/named.local ***********************

$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.

1 IN PTR localhost.

20.168.192.in-addr.arpa.zone ********************

$TTL 86400
@ IN SOA cscdserver8.silsby.local. root.silsby.local. (
2006022601 ; serial
28800 ; refresh
7200 ; retry
604600 ; expire
86400 ; ttl
)
IN NS 192.168.20.8


When I do a "dig" as shown below I do not get an answer for my domain "silsby.local". What's wrong in the above "dns" config that is preventing for getting an answer for my domain?

[root@cscdserver8 ~]# dig silsby.local

; <<>> DiG 9.2.4 <<>> silsby.local
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 39987
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;silsby.local. IN A

;; AUTHORITY SECTION:
. 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2006022700 1800 900 604800 86400

;; Query time: 124 msec
;; SERVER: 68.94.156.1#53(68.94.156.1)
;; WHEN: Mon Feb 27 17:39:35 2006
;; MSG SIZE rcvd: 105
 
Old 02-28-2006, 03:16 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
Quote:
Originally Posted by louisb
;; SERVER: 68.94.156.1#53(68.94.156.1)
put 127.0.0.1 in /etc/resolv.conf as your nameserver. if that still don't work, recheck your config.
 
  


Reply



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
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM
Domain creation on FreeBSd server gives error !!! apache Linux - Software 0 07-14-2004 06:18 AM
Dns 2 Domain u4113072 Linux - Networking 3 10-08-2002 04:42 PM
Domain, DNS is it possible Kaiser_Sose Linux - Networking 1 02-09-2002 10:10 PM
specifying dns domain chens_83 Linux - General 1 12-31-2001 09:45 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:57 PM.

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