Named on LAN problem

Named on LAN problem

Post by S t i n g » Sun, 25 Jun 2006 19:04:11


Well recently i ask for help regarding my first dns server on LAN & now i have installed & configured it ,
but there is one problem its not workign the way i want it to ...
for example i want to have a local domain called clickonline.net mapping to the ip address of 10.0.0.4 but its not working .. here are my config files.

named.conf

acl clients {
10.0.0.0/16;
::1;
};

options {
listen-on { any; };
allow-recursion { clients; };
};
//forwarders {10.0.0.1;};
zone "." {
type hint;
file "standard/root.hint";
};

zone "localhost" {
type master;
file "standard/localhost";
allow-transfer { localhost; };
};

zone "127.in-addr.arpa" {
type master;
file "standard/loopback";
allow-transfer { localhost; };
};
zone "clickonline.net" {
type master;
file "/var/named/master/db.clickonline.net";
};


my /var/named/master/db.clickonline.net file

$TTL 86400
@ IN SOA ns.clickonline.net. XXXX@XXXXX.COM .
(
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS ns.clickonline.net.

@ IN A 10.0.0.4
mailserver IN A 10.0.0.2
firewall IN A 10.0.0.6


my /etc/resolve.conf file

domain clickonline.net
nameserver 10.0.0.6

the client pc window which is configured to use my named server

C:\Documents and Settings\admin>nslookup clickonline.net
*** Can't find server name for address 10.0.0.6: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 10.0.0.6

*** UnKnown can't find clickonline.net: Server failed

what should i do now ?
regards
Faisal


*., ,.** Stingray *., ,.**
 
 
 

Named on LAN problem

Post by Olaf Laute » Tue, 27 Jun 2006 01:54:30

S t i n g r a y < XXXX@XXXXX.COM > wrote
on Saturday, June 24, 2006 12:04 PM [GMT+1=CET]:


The SOA syntax hat to be going slightly different
than eMail addresses normally do; you need to
replace the "@" in "admin@..." by a dot (".").

named-checkzone is your friend. It will load and
parse your zonefile exactly like named would do
and complain more or less rigorous about any
syntax issues.



You declared ns.clickonline beeing responsible for
your domain, but forget to assign any IP to this host-
name:


Simply add this line

ns IN A 10.0.0.6

to the zone file, don't forget to increase the
SOA's serial, then issue

rndc reload clickonline.net

and report if it's working now.


Just to make it clear: the resolv.conf on your BIND host
has nothing to do with the way your other workstations
will resolve their DNS requests.

 
 
 

Named on LAN problem

Post by b1914 » Tue, 27 Jun 2006 23:20:16

t i n g r a y < XXXX@XXXXX.COM > wrote:


One mistake you are making is this - you are using nslookup as a
debugging tool, which it is not. Look at these lines:

C:\Documents and Settings\admin>nslookup clickonline.net
*** Can't find server name for address 10.0.0.6: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 10.0.0.6

*** UnKnown can't find clickonline.net: Server failed

You have your default server as 10.0.0.6. The first thing that nslookup
does is to verify that that address is registered in DNS and that the
nodename it finds points back to 10.0.0.6. In your case, 10.0.0.6
is not registered in DNS (at least nslookup could not find it), so
nslookup (inconveniently) refuses to use 10.0.0.6 as a DNS server, and
nslookup immediately quits.
----------------------------------------------------------------------
Barry S. Finkel
Computing and Information Systems Division
Argonne National Laboratory Phone: +1 (630) 252-7277
9700 South Cass Avenue Facsimile:+1 (630) 252-4601
Building 222, Room D209 Internet: XXXX@XXXXX.COM
Argonne, IL 60439-4828 IBMMAIL: I1004994


 
 
 

Named on LAN problem

Post by Luca Compa » Tue, 27 Jun 2006 23:47:09


* Insert an A record for ns.clickonline.net
* Configure a reverse class zone file for 10.0.0.*, inserting PTR record
fro 10.0.0.6


Can you paste some logs or give more details about "its not workign the
way i want it to ..."?
 
 
 

Named on LAN problem

Post by Chris Thom » Wed, 28 Jun 2006 02:51:01


Good advice, but sadly named-checkzone will not pick up that particular
error, as XXXX@XXXXX.COM . for SOA.rname is syntactically valid.
It just doesn't mean what the OP thinks it does, mapping in RFC 282x
terms to "admin@clickonline"@net. (I suppose using -D might give you
a clue when it escapes the "@" in the output.)

--
Chris Thompson
Email: XXXX@XXXXX.COM