LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Bind issue (https://www.linuxquestions.org/questions/linux-server-73/bind-issue-636822/)

reaky 04-21-2008 12:36 PM

Bind issue
 
Dear All
We are trying to make a new bind testing server here, We are using RHE4 and bind v 9.2, We configura and make it up and it resolving without any problem and resolve using it from other machines too,But
When we try to make a local zone on it we cualdn ever succed to resolve it I don know why,
we do rndc reconfig and rndc reload sheko-beko.com, But the sam eproblem

It gave us always the following

[root@localhost ~]# dig sheko-beko.com

; > DiG 9.2.4 > sheko-beko.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER- opcode: QUERY, status: NXDOMAIN, id: 27217
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;sheko-beko.com. IN A

;; AUTHORITY SECTION:
com. 151 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1208191360 1800 900 604800 151

;; Query time: 44 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Apr 14 19:57:22 2008
;; MSG SIZE rcvd: 109
---------------------------------------------------------
witout giving the IP

The folowing is the named.conf file and the zone file
---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 202.113.165.70 port 53;
};

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

zone "sheko-beko.com" in {
type master;
file "sheko-beko.com.zone";
};

zone "soso.com" IN {
type master;
file "soso.com.zone";
};

include "/etc/rndc.key";
---------------------------------------------------------

and the zone file (sheko-beko.com.zone)
---------------------------------------------------------
$TTL 86400

@ IN SOA localhost.localdomain. root.localhost.localdomain. (
2008033100 ; Serial
18000 ; Refresh - 5 hour
3600 ; Retry - 1 hour
1209600 ; Expire - 2 weeks
43200 ) ; TTL - 12 hours

IN NS localhost.localdomain.
IN A 211.113.175.200
-------------------------------------------------------

Kindly help me to find what the problem is
thanx so much

GhostCow 04-22-2008 02:30 AM

Quote:

Originally Posted by reaky (Post 3128115)
IN NS localhost.localdomain.
IN A 211.113.175.200

there's 2 problems i can think of...
1. you don't have a zone for localhost.localdomain. try changing it just localhost.

2. there's no whitespace before IN, so it thinks it's the host name itself (in.sheko-beko.com)
so try adding at the start of the A record line "sheko-beko.com."


All times are GMT -5. The time now is 02:48 AM.