Re: basic dns server on openbsd

2006-06-28 Thread S t i n g r a y
Thanks buddy you solved my problem .

regards

 
 *B:B$., B8B8,.B$B:*B(B(B(*B$ Stingray *B:B$., B8B8,.B$B:*B(B(*B$
  

- Original Message 
From: Craig Skinner <[EMAIL PROTECTED]>
To: misc@openbsd.org
Sent: Tuesday, June 27, 2006 12:58:12 AM
Subject: Re: basic dns server on openbsd

On Mon, Jun 26, 2006 at 11:47:59AM -0700, S t i n g r a y wrote:
> Hello there , i cannot seem to configure a basic dns server it seem its not 
> resolving local domain names although i have 
> 
> setup everything as told in the docs, please have a look.
> 
> 
> resolve.conf
> 
> bash-3.1# cat /etc/resolv.conf 
> nameserver 127.0.0.1

You may also want to put upto 2 of your ISP's DNS servers in here as
well, so if named isn't running, *local* clients can still resolve
hosts.

> search clickonline.net
> 
> 
> 
> named.conf
> 
> bash-3.1# cat /var/named/etc/named.conf
> acl clients {
>10.0.0.0/16;

What about localhost?

> };
> 
> options {
> listen-on{ any; };
> allow-recursion { clients; };

Localhost processes can recurse because you've not granted access above.

> };
> 
> 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" IN {


zone "clickonline.net" {


>   type master;
>   file "db.clickonline.net";

This format went out with BIND4, you're using BIND9, right?


   file "clickonline.net";

>   allow-update { none; };
> };
> 
> 
> cat /var/named/master/db.clickonline.net 

Should be:

/var/named/master/clickonline.net 
> $ORIGIN clickonline.net

The above is not needed, it is specified in named.conf

> $TTL 86400
> @ IN SOAdns.clickonline.net. [EMAIL PROTECTED] (
> 2001062501 ; serial
> 21600  ; refresh after 6 hours
> 3600   ; retry after 1 hour
> 604800 ; expire after 1 week
> 86400 ); minimum TTL of 1 day
> IN  NS  dns.clickonline.net.
> IN  A   10.0.0.4
> webserver   IN  A   10.0.0.4
> mailserver  IN  A   10.0.0.2
> dns IN  A   10.0.0.6
> 


Try this instead (your serial number should be today's date + 2 digits,
something from June 2001 is old an may not be reloaded if a more recent
copy of the zone is in memory):

Also, you had the @ sign in the address, this is not allowed:

IN is the default record type, (InterNet), so it is not needed.

$TTL 86400
@SOA (
dns
admin.clickonlinenetworks.com.
2006062600; serial
6H; refresh after 6 hours
1H; retry after 1 hour
1W; expire after 1 week
1D ); client negative caching [RFC 2308]

NS  dns

A10.0.0.4
MXmailserver

webserverA10.0.0.4
mailserverA10.0.0.2
dnsA10.0.0.6



I would update the serial number and then:

# tail -f /var/log/daemon &

# rndc reload clickonline.net

# dig @localhost clickonline.net SOA +short

# dig @localhost clickonline.net NS +short

Until you get sensible results on the localhost, don't even bother
jumping onto another box.

> 
> client window
> 
> 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


On windoze boxes do an "ipconfig /all" and look at the output. Also look
at "ipconfig /renew", "ipconfig /flushdns", and "ipconfig /displaydns"


> 
> *** UnKnown can't find clickonline.net: Server failed
> 
> 
> what could be wrong ?

Shit loads.


-- 
Craig Skinner | http://www.kepax.co.uk | [EMAIL PROTECTED]



Re: basic dns server on openbsd

2006-06-26 Thread Craig Skinner
On Mon, Jun 26, 2006 at 11:47:59AM -0700, S t i n g r a y wrote:
> Hello there , i cannot seem to configure a basic dns server it seem its not 
> resolving local domain names although i have 
> 
> setup everything as told in the docs, please have a look.
> 
> 
> resolve.conf
> 
> bash-3.1# cat /etc/resolv.conf 
> nameserver 127.0.0.1

You may also want to put upto 2 of your ISP's DNS servers in here as
well, so if named isn't running, *local* clients can still resolve
hosts.

> search clickonline.net
> 
> 
> 
> named.conf
> 
> bash-3.1# cat /var/named/etc/named.conf
> acl clients {
>10.0.0.0/16;

What about localhost?

> };
> 
> options {
> listen-on{ any; };
> allow-recursion { clients; };

Localhost processes can recurse because you've not granted access above.

> };
> 
> 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" IN {


zone "clickonline.net" {


>   type master;
>   file "db.clickonline.net";

This format went out with BIND4, you're using BIND9, right?


   file "clickonline.net";

>   allow-update { none; };
> };
> 
> 
> cat /var/named/master/db.clickonline.net 

Should be:

/var/named/master/clickonline.net 
> $ORIGIN clickonline.net

The above is not needed, it is specified in named.conf

> $TTL 86400
> @ IN SOAdns.clickonline.net. [EMAIL PROTECTED] (
> 2001062501 ; serial
> 21600  ; refresh after 6 hours
> 3600   ; retry after 1 hour
> 604800 ; expire after 1 week
> 86400 ); minimum TTL of 1 day
> IN  NS  dns.clickonline.net.
> IN  A   10.0.0.4
> webserver   IN  A   10.0.0.4
> mailserver  IN  A   10.0.0.2
> dns IN  A   10.0.0.6
> 


Try this instead (your serial number should be today's date + 2 digits,
something from June 2001 is old an may not be reloaded if a more recent
copy of the zone is in memory):

Also, you had the @ sign in the address, this is not allowed:

IN is the default record type, (InterNet), so it is not needed.

$TTL 86400
@   SOA (
dns
admin.clickonlinenetworks.com.
2006062600  ; serial
6H  ; refresh after 6 hours
1H  ; retry after 1 hour
1W  ; expire after 1 week
1D ); client negative caching [RFC 2308]

NS  dns

A   10.0.0.4
MX  mailserver

webserver   A   10.0.0.4
mailserver  A   10.0.0.2
dns A   10.0.0.6



I would update the serial number and then:

# tail -f /var/log/daemon &

# rndc reload clickonline.net

# dig @localhost clickonline.net SOA +short

# dig @localhost clickonline.net NS +short

Until you get sensible results on the localhost, don't even bother
jumping onto another box.

> 
> client window
> 
> 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


On windoze boxes do an "ipconfig /all" and look at the output. Also look
at "ipconfig /renew", "ipconfig /flushdns", and "ipconfig /displaydns"


> 
> *** UnKnown can't find clickonline.net: Server failed
> 
> 
> what could be wrong ?

Shit loads.


-- 
Craig Skinner | http://www.kepax.co.uk | [EMAIL PROTECTED]



Re: basic dns server on openbsd

2006-06-26 Thread Bryan Irvine



zone "clickonline.net" IN {
  type master;
  file "db.clickonline.net";
  allow-update { none; };
};



file "/master/db.clickonline.net";



--Bryan